GargoyleSoftware / voip-client-ios

VOIP Client for iPhone
GNU General Public License v2.0
49 stars 37 forks source link

Receiving calls at back ground #6

Open praveengodz opened 10 years ago

praveengodz commented 10 years ago

How can I enable my app for receiving call at background?

The TCP has been enabled in SIP server, is there any thing to be done in addition for this. I can see the plist has been updated for background mode by default.

DavidYKay commented 10 years ago

Not sure. We never explored this feature. You'll want to dig around in the (Linphone) source to see how calls are received.

Once you understand that, I imagine you may need to catch the application:didEnterBackground event and somehow continue listening for calls in there.

Good luck!

On Tue, Nov 26, 2013 at 12:13 AM, Praveen Kumar notifications@github.comwrote:

How can I enable my app for receiving call at background?

The TCP has been enabled in SIP server, is there any thing to be done in addition for this. I can see the plist has been updated for background mode by default.

— Reply to this email directly or view it on GitHubhttps://github.com/GargoyleSoftware/voip-client-ios/issues/6 .

David Young-Chan Kay http://resume.DavidYKay.com DavidYKay@gmail.com

praveengodz commented 10 years ago

Hi David,

Thanks for the Update!!!

As I have checked with this link http://www.linphone.org/docs/liblinphone/group__IOS.html

I am calling the below code in the application:didEnterBackground [[LinphoneManager instance] enterBackgroundMode];

But not getting any proper notification, some times getting notification thats too very delayed after 5 mins to say.

Any possible advise on this?

Thanks!

DavidYKay commented 10 years ago

Not sure on this. Sorry!

I would reach out to the guys at the LinPhone project and see what they know.

On Wed, Nov 27, 2013 at 12:06 AM, Praveen Kumar notifications@github.comwrote:

Hi David,

Thanks for the Update!!!

As I have checked with this link http://www.linphone.org/docs/liblinphone/group__IOS.html

I am calling the below code in the application:didEnterBackground [[LinphoneManager instance] enterBackgroundMode];

But not getting any proper notification, some times getting notification thats too very delayed after 5 mins to say.

Any possible advise on this?

Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/GargoyleSoftware/voip-client-ios/issues/6#issuecomment-29360564 .

David Young-Chan Kay http://resume.DavidYKay.com DavidYKay@gmail.com

praveengodz commented 10 years ago

@DavidYKay In iOS 7 video call is not working

In iOS 7 specific warning is appearing and this warning its not coming in iOS 6.

WARNING: -[ setVideoMinFrameDuration:] is deprecated. Please use AVCaptureDevice setActiveVideoMinFrameDuration

WARNING: -[ setVideoMaxFrameDuration:] is deprecated. Please use AVCaptureDevice setActiveVideoMaxFrameDuration

please help to rectify this warning and make the video call work fine.

DavidYKay commented 10 years ago

Praveen, it appears your solution is listed right in front of you:

[setVideoMinFrameDuration:] is deprecated.

You must change your code to instead use :

[AVCaptureDevice setActiveVideoMinFrameDuration] On Feb 14, 2014 2:39 AM, "Praveen Kumar" notifications@github.com wrote:

@DavidYKay https://github.com/DavidYKay In iOS 7 video call is not working

In iOS 7 specific warning is appearing and this warning its not coming in iOS 6.

WARNING: -[ setVideoMinFrameDuration:] is deprecated. Please use AVCaptureDevice setActiveVideoMinFrameDuration

WARNING: -[ setVideoMaxFrameDuration:] is deprecated. Please use AVCaptureDevice setActiveVideoMaxFrameDuration

please help to rectify this warning and make the video call work fine.

Reply to this email directly or view it on GitHubhttps://github.com/GargoyleSoftware/voip-client-ios/issues/6#issuecomment-35062525 .

praveengodz commented 10 years ago

@DavidYKay thanks for your reply, In MainScreenWithVideoPreview.m AVCaptureDevice is used, but there "setVideoMinFrameDuration" & "setVideoMaxFrameDuration" are not used in that class and also i searched all over but i cant find where it used. And also i'm not sure for this warning is the reason for video call is not working .Please help me to video call work.