Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linphone for IOS not receiving calls after 5 minutes not using it #904

Open
asder78 opened this issue Dec 21, 2023 · 5 comments
Open

Linphone for IOS not receiving calls after 5 minutes not using it #904

asder78 opened this issue Dec 21, 2023 · 5 comments
Assignees

Comments

@asder78
Copy link

asder78 commented Dec 21, 2023

I have two linphone acounts

If iphone screen is on, i can call from Windows client to IOS client correctly, it works great

But, if i don't use iphone at all for (aprox) five minutes, if i call from Windows Client to IOS client the call is not presented on the iphone

May be it is a bug, or may be i have to adjust some settings?

Thanks in advance

@Viish
Copy link
Member

Viish commented Dec 21, 2023

Hi Alfredo,

iOS apps can't live while in background. The only way for an app to be waken up is to receive a push notification from an Apple push server.
If you are using our own linphone-iphone app from the App Store you should receive this push. If you don't, please upload debug logs from the app so we can check what happens.

Cheers,

@asder78
Copy link
Author

asder78 commented Dec 21, 2023

Attached you can find a log file
linphone_log.gz

I made a call from Linphone_Win (alfredo_002@sip.linphone.org) to Linphone_IOS (alfredo_003@sip.linphone.org) at 12:26

Linphone_Win ended the call 50 seconds later (aprox); nothing happened at Linphone_IOS

Linphone_IOS waked up at 12:28 with an empty call

There are no logs at 12:26

Logs in that interval are:

2023-12-21 12:18:34:110 [linphone/mediastreamer] MESSAGE [IOS Audio Route Change] Audio unit not initialized, ignore route change
2023-12-21 12:28:48:460 [linphone/liblinphone] MESSAGE [PushKit] Notification [0x281b16d80] received with payload : {
aps = {
"call-id" = STh9d40Q7D;
"loc-args" = (
"Alfredo_Win"
);
"loc-key" = "IC_MSG";
"send-time" = "2023-12-21 11:26:36";
sound = "";
uuid = "urn:uuid:de4db0ee-2768-00a4-a3e6-f78cdd55b03b";
};
customPayload = {
};
"display-name" = "Alfredo_Win";
"from-uri" = "sip:alfredo_002@sip.linphone.org";
"pn_ttl" = 50;
}
2023-12-21 12:28:48:460 [linphone/liblinphone] WARNING Core was Off, before starting it again we need to init it
2023-12-21 12:28:48:460 [linphone/liblinphone] MESSAGE Initializing LinphoneCore 5.2.106
2023-12-21 12:28:48:460 [linphone/liblinphone] MESSAGE Sal nat helper [enabled]
2023-12-21 12:28:48:460 [linphone/liblinphone] MESSAGE [SHARED] setup IosSharedCoreHelpers
2023-12-21 12:28:48:460 [linphone/liblinphone] MESSAGE [SHARED] launch timer
2023-12-21 12:28:48:460 [linphone/liblinphone] MESSAGE [SHARED] unlockSharedCoreIfNeeded : no update during last 30 sec

@Arguillq
Copy link

Hi,

the 5.2.0 version of linphone-iphone is arriving on the stores in the coming days, please give it another try with the new version when available. If it still do not work, we will investigate deeper into this issue

@asder78
Copy link
Author

asder78 commented Dec 22, 2023

I've updated to version 5.2, now available at App Store

I'm, afraid it is still failing

I attach log file, i made a call at 12:08, not ringing until 12:10:50 aprox
linphone_log.txt

It is notorious that there are no messages in log from 12:00:24:060 until 12:10:51:098 (remember a call was made at 12:08)

2023-12-22 12:00:24:060 [linphone/liblinphone] MESSAGE Sal already null
2023-12-22 12:10:51:098 [linphone/liblinphone] MESSAGE [PushKit] Notification [0x280b5d180] received with payload : {

@jimvanm
Copy link

jimvanm commented Apr 22, 2024

I would like to add to this that we have the same problem with the Linphone (iPhone) downloaded from the App Store.
We just ran three tests (with logging turned on and sending the logs right after the call). Three scenarios (and results):

  1. Linphone not running in foreground: call does not ring device
  2. Linphone in foreground (has not been used yet this day): call does not ring device
  3. Linphone used to make call, and then right after we send a call to it: call rings as expected
    We're happy to help troubleshoot this in any way that is helpful to you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants