[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: |
Sun, 17 Oct 2021 17:47:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 |
Hello Germán, dear Linphone developers and all,
I was able to solve my problem.
I uninstalled Linphone, re-installed it freshly from the App Store, configured
my linphone.org account and ringing was working again.
Changing step by step the configuration to the settings from before the re-install, I found that when I change the
options "Show message in notification", "Auto-answer after notification", "Animations"
and "Start at boot" to off in the Advanced page, the iPhone does again not ring anymore. Reverting the
options back to on, does not bring back the ringing. So I decided to re-install again and keep the settings unchanged.
I guess there is a bug, that does not correctly write back changes to these options to
some storage that is then used by the software. "Enable smart address book"
also is buggy, it always flips back to on how often ever I switch it to off.
I am not sure what the two notification related options do exactly. I thought so far that
"Show message in notification" would result in not giving the notification any content
for the message leaving Apple and the notification system and all possible persons that can see the
content on the lock screen in the dark about the reason for the notification. "Auto-answer
after notification" I understood so that Linphone would when activated immediately and
automatically take the incoming call. Apparently not.
So I think with that information the issue can be easily fixed.
Best Regards
Martin
On 26.09.21 20:25, German Cancio wrote:
Martin,
Well, reading more carefully through your mail I see that you are indeed using
a Linphone.org account and that the app does indeed wake up within the
timeframe of what a push notification would take to arrive (the 3 lines you
quote at 13:14:25). I’m afraid I don’t understand why the app then goes back to
sleep. But it really points to the app successfully receiving, but then holding
back the Push Notification.
In my own logs, I can’t find anything like what you got:
2021-09-26 13:14:25:381 [linphone/ios] ERROR (UICompositeView.m:256 )
Exception: Linphone core not initialized yet, ignoring
Maybe one of the Linphone developers may have an idea on whether this is
pointing to the root cause.
Cheers Germán
On 27.09.21 12:26, Martin Glaser wrote:
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.
...
Does 4.5.0 have a bug that prevents the reliable ringing? Are there known
problems with Apple's Notification system?
...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working,
Martin Glaser <=