[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] No audio on incoming cell call

From: Sylvain Berfini
Subject: Re: [Linphone-developers] No audio on incoming cell call
Date: Tue, 6 Sep 2022 16:53:34 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.1

Hi Tom,

Feel free to open a ticket on github with debug logs (from start of the app to the end of call) showing the issue, and also tell us if you reproduce the issue with linphone-android.


Sylvain Berfini
Head of Mobile & Desktop Apps Department

+33 (0)9 52 63 65 05

Discover our solutions in 3 minutes!

Belledonne Communications, the company behind the Linphone project
Le 31/08/2022 à 16:38, Phelan, Tom a écrit :
I'm developing a liblinphone app for android and am having trouble interacting with incoming cell calls while the app is on a call. When an incoming cell call comes in while the app is in an active call and I choose 'Answer', android puts my app's call on hold and answers the cell call.

Fine so far, but there's no audio in the cell call. If I put the cell call on hold and resume it, the audio works.

This is true for vice versa too -- on a cell call and incoming app call. Answering the app call puts the cell call on hold, but no audio in the answered app call. Putting the app call on hold and resuming fixes the audio.

These scenarios work properly:
  • Place outgoing cell call while on app call
  • Place outgoing app call while on cell call
Any idea what I'm doing wrong?

Here's some code:

Core initialization:
fun initLinphone(appContext: Context) {
    this.appContext = appContext
    val config = factory.createConfigFromString(linphoneConfig)
    lcore = factory.createCoreWithConfig(config, appContext)
    coreVersion = lcore.version
    uoLog("CoreContext.initLinphone: starting liblinphone core, version $coreVersion")

fun initAndroidAccount() {
    uoLog("CoreContext.initAndroidAccount: connection service class name: ${}")
    val compName = ComponentName(appContext,
    phoneAccountHandle = PhoneAccountHandle(compName, "UOPhone")
    val builder = PhoneAccount.builder(phoneAccountHandle, "UOPhone")
    phoneAccount =
    telecomManager = appContext.getSystemService(Context.TELECOM_SERVICE) as TelecomManager

fun login() {
    if (UOSettings.tcn == "") return
    uoLog("CoreContext.login: Registering...")
    domain = "${UOSettings.tcn}"
    val authInfo = factory.createAuthInfo(UOSettings.deviceid, null, UOSettings.secret, null, null, domain, null)
    val accountParams = lcore.createAccountParams()
    val identity = factory.createAddress("sip:${UOSettings.deviceid}@${domain}")
    val address = factory.createAddress("sip:${domain}")
    accountParams.pushNotificationAllowed = true
    accountParams.isRegisterEnabled = true
    val account = lcore.createAccount(accountParams)
    lcore.defaultAccount = account
    lcore.setUserAgent("Unified Office UOPhone Android", BuildConfig.VERSION_NAME)

Linphone-developers mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]