linphone-users
[Top][All Lists]
Advanced

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

Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - pu


From: Martin Glaser
Subject: Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working
Date: Mon, 27 Sep 2021 12:26:27 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

Hello Germán and all,

please find attached screenshots of Linphone's configuration on my iPhone.

I have not tried with another iOS device or another ID (I have none).

Yes, I use a linphone.org account.

Best Regards

 Martin


On 26.09.21 20:08, German Cancio wrote:
Martin,

Yes, it really looks as if the push notification has problems to be received by 
the device and/or propagated to the app. But I’m not sure that’s the client 
app’s fault. I have no issues receiving push notifications using my 
Linphone.org account on iOS (running Linphone 4.5.0). Have you tried with 
another iOS device and/or another user ID? To what SIP server are you 
connecting, are you using a linphone.org account? (Neither the call-ID format 
nor the from-URI look like the usual Linphone.org ones, but I might be wrong).

Cheers, Germán


On 26 Sep 2021, at 14:10, Martin Glaser <feed1332@wolke7.net> wrote:

Hello Germán,

right, so I did following test:

13:04 started logging, changed to iPhone launcher, let iPhone switch display 
off (standby)
13:14 called from my other mobile phone - iPhone did not ring - ended the call 
after about 15 seconds
13:16 activated iPhone (display, launcher)
13:17 switched to Linphone - I see the start screen - then I see Calling screen 
- then I select Dismiss - then I go to Settings/Advanced and Send Log

Attached is the full log file, I replaced references to my telephone number and my 
Linphone account by >...<.

Essential seems to be

2021-09-26 13:14:25:290 [linphone/ios] MESSAGE (honeAppDelegate.m:171 ) 
Connecting for UNNotifications
2021-09-26 13:14:25:357 [linphone/ios] MESSAGE (UICompositeView.m:135 ) 
landscape get opposite: {568, 320}
2021-09-26 13:14:25:381 [linphone/ios] ERROR (UICompositeView.m:256 ) 
Exception: Linphone core not initialized yet, ignoring

Notification is then received late here:

2021-09-26 13:17:12:525 [linphone/liblinphone] MESSAGE [PushKit] Notification 
[0x2814e9580] received with payload : {
    aps =     {
        "call-id" = "4e050a6c1953f83b2b5c63f169f4b4be@188.246.0.83:5060";
        "loc-args" =         (
            ">...<"
        );
        "loc-key" = "IC_MSG";
        "send-time" = "2021-09-26 11:14:24";
        sound = "";
        uuid = "<urn:uuid:2fe7ca81-5ab1-004a-9309-270b77e58bc6>";
    };
    customPayload =     {
    };
    "display-name" = ">...<";
    "from-uri" = "sip:>...<@188.246.0.83";
    "pn_ttl" = 50;
}

And there is no INVITE message.

My iPhone is on mobile network only. Wi-Fi is off. Airplane Mode is off. Mobile 
Data is on, Options set to Data Roaming off, Voice&Data LTE, VoLTE on, Low Data 
Mode is off.

Best Regards

Martin


On 19.09.21 19:05, German Cancio wrote:
Martin,

I’d suggest you enable debug logs on the app and then check the log file for 
entries such as the following:

*2021-09-16 08:28:48:232* [Linphone/iOS] MESSAGE (honeAppDelegate.m:560 ) 
[PushKit] Notification [0x280734480] received with payload : {
     aps =     {
         "call-id" = "*be5d70c3-396a-47cb-a10e-1aea69860afd*";
(…)
        "loc-key" = "IC_MSG";
         uuid = "<urn:uuid: bbb157d2-f5c0-005b-8302-442a615003ed>";
     };
}

And also

*2021-09-16 08:28:48:633* [Linphone/belle-sip] MESSAGE channel [0x103e00000]: 
received [2253] new bytes from [TLS://sip.linphone.org:5061]: 
<TLS://sip.linphone.org:5061]:>
INVITE sip:foobar@194.12.139.75:49929;transport=tls 
<sip:foobar@194.12.139.75:49929;transport=tls> SIP/2.0
(…)
Call-ID: *be5d70c3-396a-47cb-a10e-1aea69860afd*

The first log entry gives you the timestamp of when the push notification was 
received, the second one the timestamp of the SIP INVITE for the same call-ID.

Do you have this problem when on multiple mobile and Wifi networks? On some 
Wifi networks, iOS devices may be put to sleep which can cause push 
notifications to arrive (too) late.

Cheers Germán



On 19 Sep 2021, at 14:16, Martin Glaser <feed1332@wolke7.net 
<mailto:feed1332@wolke7.net>> wrote:

Hi,
since a couple of weeks the Linphone App installed on my iPhone does not ring 
anymore when I receive a call as soon as the App is in the background or the 
phone is in standby.

Push Notification is activated and I use Linphone's VoIP server.

I have Linphone in use since 2017 and it was all the time ringing very 
realiably.

Before the issue started, I updated Linphone from version 4.4.1 to version 
4.5.0. The reason why I did this update was that I received before a call while 
the battery was low enough to make the iPhone switch off while the phone was 
ringing and after that all the configuration of Linphone was gone. So I thought 
when I need to redo now all the configuration, I do the update before.
In May I did the update to version 4.4.1 and in this time I had to delete the 
Linphone App and re-install it, because the new version just crashed after the 
normal update (probably because of an incompatible configuration setting or 
something). After the re-install and re-configuration it worked allright again. 
So I thought, maybe there will be again a configuration problem after the 
upgrade to 4.5.0 and I did the update right away as I had to redo the 
configuration anyhow.

Does 4.5.0 have a bug that prevents the reliable ringing? Are there known 
problems with Apple's Notification system?

When I updated to Linphone 4.5.0 I still had iOS 14.3 on my iPhone. I upgraded 
meanwhile to iOS 14.7.1 but that did not improve the situation.

I tried various settings for Notifications but nothing helped.

Linphone 4.5.0 behaves in so far different to older versions as I recognize 
that it seems to stop running quite soon after it was put in the background. I 
recognize this, because Linphone shows me now nearly always the start screen 
when I pull Linphone back in the foreground. Before using 4.5.0 it was normally 
so the just the last selected Linphone screen (usually the dialpad) was shown 
again and the registration was redone.

The other interesting thing I recognized is, that when I receive a call and 
Linphone is not ringing and I open Linphone later (maybe a few minutes or even 
a few hours - I can see how much later, because the call will be picked up by 
an answering machine and I see when people actually called), then Linphone 
suddenly signals a call and rings. It is as if the Notification is stuck 
somewhere and once when I open Linphone it is delivered. When I take the call, 
for sure nothing helpful happens. I usually just cancel the call. But even then 
Linphone seems to be a little disrupted and needs a force-restart. When there 
were multiple calls with Linphone not ringing and I open Linphone later, the 
Linphone signals multiple calls that I have to cancel individually.

I saw on github that other users have opened already issues for similar 
problems. It seems nothing is happening there?
I tried the workaround provided in 
https://github.com/BelledonneCommunications/linphone-iphone/issues/772 
<https://github.com/BelledonneCommunications/linphone-iphone/issues/772> but 
the change of the account password did not help in my case.

If I can provide any logs or information that helps to fix the problem, I will 
happily do, but please guide me in detail what you want me to do.

I will be very grateful for any help on this as I am considerably handicapped 
with the current situation that Linphone does practically never ring when I 
receive a call. Linphone on my iPhone is the only phone I have. I stopped years 
ago to have another fixed-line phone in parallel, because Linphone was so 
reliable.

Best Regards

Martin Glaser
<linphone.log.gz>

Attachment: IMG_3183.PNG
Description: PNG image

Attachment: IMG_3184.PNG
Description: PNG image

Attachment: IMG_3194.PNG
Description: PNG image

Attachment: IMG_3193.PNG
Description: PNG image

Attachment: IMG_3192.PNG
Description: PNG image

Attachment: IMG_3191.PNG
Description: PNG image

Attachment: IMG_3190.PNG
Description: PNG image

Attachment: IMG_3189.PNG
Description: PNG image

Attachment: IMG_3188.PNG
Description: PNG image

Attachment: IMG_3187.PNG
Description: PNG image

Attachment: IMG_3186.PNG
Description: PNG image

Attachment: IMG_3185.PNG
Description: PNG image


reply via email to

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