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

No Incoming Calls at All. #967

Open
awptechnologies opened this issue Dec 3, 2024 · 12 comments
Open

No Incoming Calls at All. #967

awptechnologies opened this issue Dec 3, 2024 · 12 comments

Comments

@awptechnologies
Copy link

awptechnologies commented Dec 3, 2024

I will post update tomorrow with ios version and linphone version.

Either Way i am using latest app from app store and latest ios.

I can call from the linphone app on iPhone but no matter what i do i can not call to iPhone. As soon as i do it goes straight to the users voicemail without ringing the phone. This happens when the app is not in focus but it also happens even when i am in the app. I use androids in the business and they have no problems at all.

Is there a specific set of instructions so that the iPhone can receive calls from the linphone app?

In-case anyone needs to know i am using my own SIP. I host FreePBX on premise and all other devices work wonderfully with linphone. Linux Desktops and Android are flawless. I figured i would let you know incase there is a setting inside freepbx to ensure notifications are pushed to the device.

@benoit-martins
Copy link
Contributor

Hi,

Thank you for reporting this issue.

Given that you're using your own SIP and hosting FreePBX on-premise, it's possible that there might be a configuration setting within FreePBX that needs to be adjusted to ensure proper call notifications are pushed to the iPhone.

Here are a few things to check and try:

  • Push Notifications: Ensure that push notifications are properly set up for your iPhone. Linphone requires push notifications to be configured correctly for iOS to receive calls when the app is not in focus. You may want to verify that your FreePBX server is sending push notifications, and check if there’s any setting for enabling SIP push notifications specifically for iOS devices.
  • APNs Configuration: If you're using push notifications, confirm that your APNs (Apple Push Notification Service) settings are properly configured in FreePBX or any intermediary SIP service you're using.
  • Firewall and NAT Settings: Sometimes, misconfigured firewall or NAT settings can cause issues with call routing. Ensure that your FreePBX firewall settings are correctly set up for SIP traffic and that the necessary ports are open.
  • SIP Settings: Double-check the SIP registration and outbound proxy settings on your iPhone to ensure they are correct.

Since other devices (Android, Linux desktops) are working fine, the issue seems to be specific to the iOS configuration. I recommend looking into these settings and ensuring that the proper mechanisms for receiving calls are in place for the iPhone.

Best regards,

@awptechnologies
Copy link
Author

After further testing i have come to some conclusions.

With push notifications on i can't even receive a call with the app open.
As soon as i turn off push notifications i can then receive a call when app is open.

I agree maybe its something in free pbx but i have no idea which setting below is a screenshot of advanced settings in freepbx extension. Do you by chance see a setting that will help?

Screenshot From 2024-12-05 05-48-45
Screenshot From 2024-12-05 05-49-09
Screenshot From 2024-12-05 05-49-27
Screenshot From 2024-12-05 05-49-49

@awptechnologies
Copy link
Author

Even if i have to purchase something in app im willing to do so. I love that this is opensource and i despise the idea of going with another app. This works amazing on android and i know apple sucks but most of my employees have them. Anything i can do to make this work i am willing to try.

@Viish
Copy link
Member

Viish commented Dec 11, 2024

Hi @awptechnologies,

If you can't receive a call when an app is opened and push are enabled but it works if push are disabled, it probably means that you're using UDP as transport protocol and packets are getting lost (push notifications info makes packets bigger).
Switch to TCP or TLS as transport protocol to see if it improves things.

Cheers,

@awptechnologies
Copy link
Author

I enabled tcp in freepbx and switched to tcp on my android app and all is working so i know that it is enabled correctly. I will try on iphone at work tomorrow and see if it is fixed. Thank you for the suggestion. I will get back and let you guys know.

@awptechnologies
Copy link
Author

So far nothing. The same thing is happening. It goes straight to voicemail. Seems like it doesn't even give the iPhone a chance to answer.

@Viish
Copy link
Member

Viish commented Dec 11, 2024

@awptechnologies please attach logs from the iPhone for such scenario.

@awptechnologies
Copy link
Author

675ba07e847c3_44b39bbba340e9d7c2d5.gz

Here are the log files from iphone

@Viish
Copy link
Member

Viish commented Dec 14, 2024

Thanks but the log is way too short, it doesn't show anything, not even a REGISTER.

@awptechnologies
Copy link
Author

ya i enabled deug logs didnt know exactly what i should of seen. I will let logs run a day or two and continue messing with it. Give me until monday and i will try to have more in depth logs for you.

@awptechnologies
Copy link
Author

I am still working on figuring out logs. I don't know if it is acceptable to say this, but because of the necessity of getting my employees up and running i tried Groundwire. It worked out of the box for iPhone. Calls in background come through in the same format as normal calls. I support this project and don't plan on leaving. I use it on my cpus and android but because of the time crunch i had to try something else on iPhone. I just wanted to post this in case it helps. That at least tells me nothing on my pbx server is wrong and its something to do with the config on linphone.

@merzak274j
Copy link

@awptechnologies I spent some time working on this and I think it’s important to highlight that Linphone does not provide push notifications the same way that groundwire does. That is to say, linphone only shares their push server for accounts made using the linphone service. See #791

On the iOS App Store, the description explains

* Since IOS10, SIP connections in background are no longer allowed. Therefore, only Linphone accounts (sip.linphone.org accounts) can receive calls when the app is closed, thanks to push notifications integrated within our server.
* Group chat features only available for Linphone accounts (sip.linphone.org accounts).

Since groundwire charges a fee, they maintain their own push service and make it available to their users.

To get Linphone push notifications to work with a 3rd party service, I think it’s necessary to build your own version of the app and maintain your own APN.

Alternatively you could forward the calls to the user’s phone number, which would then ring on their iPhone. The user could use Linphone for outgoing calls.

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