chakrit / gossip

A SIP client library that wraps PJSIP into a nice and clean ObjC-style OO api.
http://chakrit.github.com/gossip
The Unlicense
167 stars 74 forks source link

Cellular call interrupts VoIP call #9

Open muzammil-hussain opened 10 years ago

muzammil-hussain commented 10 years ago

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

pennomi commented 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.

muzammil-hussain commented 10 years ago

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)

chakrit commented 10 years ago

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 : )

jlubeck commented 10 years ago

Anyone got a way to prevent that error?

SajjadRaza commented 8 years ago

Hi, Any Update on this thread

Joker666 commented 8 years ago

+1