Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working

2021-10-17 Thread Martin Glaser

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  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 = "";
    };
    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 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 

Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working

2021-09-26 Thread German Cancio
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 26 Sep 2021, at 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  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 = "";
>>   };
>>   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 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 = "";
>>>};
>>> }
>>> 
>>> And also
>>> 
>>> *2021-09-16 08:28:48:633* [Linphone/belle-sip] MESSAGE channel 
>>> [0x103e0]: received [2253] new bytes from 
>>> [TLS://sip.linphone.org:5061]: 
>>> INVITE 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 >>> > 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 

Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working

2021-09-26 Thread German Cancio
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  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 = "";
>};
>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 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 = "";
>> };
>> }
>> 
>> And also
>> 
>> *2021-09-16 08:28:48:633* [Linphone/belle-sip] MESSAGE channel 
>> [0x103e0]: received [2253] new bytes from [TLS://sip.linphone.org:5061]: 
>> 
>> INVITE 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 >> > 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 

Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working

2021-09-19 Thread German Cancio
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 = "";
};
}

And also

2021-09-16 08:28:48:633 [Linphone/belle-sip] MESSAGE channel [0x103e0]: 
received [2253] new bytes from [TLS://sip.linphone.org:5061]:
INVITE 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  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 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-users mailing list
> Linphone-users@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/linphone-users

___
Linphone-users mailing list

Re: [Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working

2021-09-19 Thread ael via Linphone-users
On Sun, Sep 19, 2021 at 02:16:50PM +0200, Martin Glaser wrote:
> 
> Does 4.5.0 have a bug that prevents the reliable ringing? Are there known 
> problems with Apple's Notification system?

I too have had troubles with incoming calls not ringing. But with a
quite different environment (linux desktop) and version 
Desktop  - Qt5.15.2
Core 4.4.21

Using the sipgate registrar.

Annoyingly, the few test calls I make from another device seem to ring
properly.

ael


___
Linphone-users mailing list
Linphone-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/linphone-users


[Linphone-users] Linphone on iOS does not ring anymore reliably - push notification not working

2021-09-19 Thread Martin Glaser

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 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-users mailing list
Linphone-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/linphone-users