gossip icon indicating copy to clipboard operation
gossip copied to clipboard

Cellular call interrupts VoIP call

Open muzammil-hussain opened this issue 11 years ago • 6 comments

Hi, Its known issue that if Voip call is in progress and phone receives a normal cellular call then Voip call is sent to background and after call is disconencted VoIP call is retrievd and is still in progress but media is lost. Can you please check it

muzammil-hussain avatar May 20 '14 15:05 muzammil-hussain

Looks like it's this problem: http://trac.pjsip.org/repos/wiki/Getting-Started/iPhone#interruption

Problem with interruption (by a phone call or an alarm), headset plug/unplug, or Bluetooth input

For devices running iOS 4.0 or later, you need to enable your application to respond to remote-control events. This allows PJSIP to properly receive and process the above events. You can do this by adding the following code in your application:

[[UIApplication sharedApplication] beginReceivingRemoteControlEvents];

For more details, please refer to Apple's doc on ​Remote Control of Multimedia.

pennomi avatar May 20 '14 21:05 pennomi

I have already tried this but it did not work. I get error 14:52:14.774 ERROR: [0x4927000] AVAudioSessionPortImpl.mm:50: ValidateRequiredFields: Unknown selected data source for Port iPhone Microphone (type: MicrophoneBuiltIn)

muzammil-hussain avatar May 21 '14 09:05 muzammil-hussain

Not sure if there is a good way to handle this in GOSSIP. PJSIP probably has some some hook I can plug into, then I can pause or background the calls. Needs further research (aka time).

Feel free to PR if anyone manages to figure this out : )

chakrit avatar Jul 12 '14 17:07 chakrit

Anyone got a way to prevent that error?

jlubeck avatar Sep 12 '14 16:09 jlubeck

Hi, Any Update on this thread

SajjadRaza avatar Dec 15 '15 12:12 SajjadRaza

+1

Joker666 avatar Jul 25 '16 05:07 Joker666