Failure to close mic/speaker after call termination - PJSIP 1.6 on iOS 4

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

 



We are seeing this problem with PJSIP 1.6 on iOS 4. Does anyone else see this? If so were you able to resolve the issue?

After we make and terminate a voip call if you put the application into the background the "double high, red, on call status bar" is still shown. It appears that PJ either leaves the mic or/and speaker open so that iOS 4 thinks that there is an active call when there isn't.

We make the call with pjsua_call_make_call, terminate it with pjsua_call_hangup_all and hook up the media ports in the media state callback.

void PJFacade::OnCallMediaState(pjsua_call_id call_id)
{
    pjsua_call_info ci;

    pjsua_call_get_info(call_id, &ci);

    if (ci.media_status == PJSUA_CALL_MEDIA_ACTIVE)
    {
        // When media is active, connect call to sound device.
        pjsua_conf_connect(ci.conf_slot, 0); // speaker
        pjsua_conf_connect(0, ci.conf_slot); // mic

        iActive_call = call_id;
    }
    else if( call_id == iActive_call )
    {
        iActive_call = PJSUA_INVALID_ID;
    }
}


Thanks,
Darald


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux