Open muzammil-hussain opened 10 years ago
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.
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)
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 : )
Anyone got a way to prevent that error?
Hi, Any Update on this thread
+1
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