[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Latest iPhone build not receiving calls when a

From: Richard Zinn
Subject: Re: [Linphone-developers] Latest iPhone build not receiving calls when app is in background
Date: Tue, 17 Dec 2013 10:57:10 -0800

I'm not able to reproduce the problem right now unfortunately, but I've captured a log of what it looks like when in TCP mode and backgrounded and it does recognize a call coming in.  And once I can reproduce the problem again I'll capture the same logs and compare.

Regarding the push notification stuff, thanks for the pointer.  Our SIP provider is building in push notification support specifically for this so we will try and match what it looks like you were doing with your implementation.  It appears the JSON message should look like this:


 "aps": {

    "badge": 1,

    "alert": {

        "loc-key": "IC_MSG",//for call or "IM_MSG" for text message


    "sound": "ring.caf",

    "call-id": "14086742964"



On Tue, Dec 17, 2013 at 12:52 AM, BIENKOWSKI Guillaume <address@hidden> wrote:
It depends heavily on your phone setup.
If you have lots of apps in the background, Linphone could be killed and its TCP socket goes with it.

In this case, if you're using, you'll still be able to receive calls and messages through Push notifications.
If you're using another sip provider, it is up to them to support push notifications.
The message format is not clearly specified in the documentation, but it is available in the code, in LinphoneAppDelegate.m, - (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo

As for the calls not reaching in, could you take a look at the logs? TCP should be reliable.


On Mon, Dec 16, 2013 at 8:41 PM, Richard Zinn <address@hidden> wrote:
Thanks Seamus.  I've got it set to this now and the interesting thing now is that it only works some of the time.  Do you know why it would only work part of the time?  When it isn't working, doing a hard reboot of the phone seems to fix it.  I've tried things like killing other SIP apps and Skype, and none of that seems to help.

Also, does this app support getting push notifications in the background to wake up for incoming calls?  If so, is there a spec for what the push notification message should look like?

Thanks again.

On Mon, Dec 16, 2013 at 5:02 AM, Seamus Cantillon <address@hidden> wrote:
Change the transport to TCP.  This is a limitation in iOS.  You'll only get notifications in the background when listening on TCP connections.

On Tue, Dec 3, 2013 at 3:28 PM, Richard Zinn <address@hidden> wrote:
I looked through the archives and this problem hasn't been reported since March of 2011.  I can do SIP registration just fine, and even receive calls when the app is in the foreground, but when the app is backgrounded I don't get anything.

Also the app outputs no log information when the app is backgrounded, so I'm unsure how to go about debugging this.  Any thoughts on what to look at?  The network settings are all the defaults, UDP, default port, etc.



Linphone-developers mailing list

Linphone-developers mailing list

Linphone-developers mailing list

Linphone-developers mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]