PJSIP on iOS not sending media when running in background on incoming call

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

 



Hello,

I?m developing an iOS Voip App based on PJSIP which makes an outbound
call. When the App is "in call" the iPhone can still receive incoming
calls. iOS handles this by taking away all audio in- and outputs from the
application and sending a broadcast message
(?OnAudioSessionInterruptionNotification"). In the case an incoming call
is received I would like to let PJMEDIA generate a tone (using the tone
generator) and play this to the callee.

I?ve got everything in place; the tone generator plays the tone, the event
is captured, the conference is configured correctly. But for some reason
the callee does not hear anything.

I've tested the generated tone by injecting it in the conference during an
active call, but while I?d expect only the microphone would be forcefully
removed from the conference by iOS when a call comes in, I would still
expect the generated tone to be played out. Even reconnecting the tonegen
to the conference (pjsua_conf_connect) and restarting the conference
(ca_stream_start) does not solve the issue

Does anybody know what causes this behaviour? Abd even better; how to make
the tone generator play out to the callee?

Could it be that PJMEDIA relies on some sample clock of iOS which is not
available anymore when a call comes in?

I?m using PJSIP v2.1.0 and using coreaudio_dev.m (rev.4617) with some
alterations regarding the handling of interruptions.

Any help is appreciated!

Best regards,

Tom






[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