Hi Tom, The incoming call is causing an interruption which is stopping pjsip's core audio stream (see coreaudio_dev.c). Your intuition is correct, pjmedia uses the audio device to clock media processing, so while the stream is stopped, media doesn't flow. I've never tried to run pjmedia while a regular iphone call is in progress, perhaps you can use the null audio device mode during the interruption. Regards, Bill On 9/22/14 11:54 AM, Tom van der Geer wrote: > 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 > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org