BelledonneCommunications / flexisip

Linphone.org mirror for flexisip (git://git.linphone.org/flexisip.git)
http://flexisip.org
GNU Affero General Public License v3.0
140 stars 68 forks source link

Why Flexi sip is using api.push.apple.com instead of gateway.push.apple.com:2195 ? #119

Closed Omid-Mohajerani closed 3 years ago

Omid-Mohajerani commented 3 years ago

Hi,

I have a problem receiving a push notification. Can it be because Flexi sip is using api.push.apple.com:443 instead of gateway.push.apple.com:2195 ?

When I'm sending push using pusher I can see it delivered to the APN but I'm not getting any VoIP push in linphone.

apns-push-type = voip

{ "aps": { "sound": "", "loc-key": "IM_MSG", "loc-args": ["Pusher"], "call-id": "", "uuid": "", "send-time": "2021-05-01 07:00:45" }, "from-uri": "sip:toto@sip.linphone.org", "display-name": "Pusher", "pn_ttl": 2592000 } 2021-05-01 15:00:47:261 flexisip-debug-AppleClient[0x9b1150][1]: receiving HTTP2 header [:status = 200] 2021-05-01 15:00:47:261 flexisip-debug-AppleClient[0x9b1150][1]: PNR 0xa08c30 succeeded 2021-05-01 15:00:47:261 flexisip-debug-AppleClient[0x9b1150][1]: receiving HTTP2 header [apns-id = 55F7CBBD-8458-0974-94E6-1E7025F46FAF] 2021-05-01 15:00:47:261 flexisip-debug-AppleClient[0x9b1150][1]: stream closed with error code [0] 2021-05-01 15:00:47:261 flexisip-debug-AppleClient[0x9b1150][1]: end of PNR 0xa08c30

Omid-Mohajerani commented 3 years ago

Just to update. My problem was the ".dev" parameter and it works with the default push URL in Flexi sip

https://github.com/BelledonneCommunications/linphone-iphone/blob/deb245bcecdb36f58981a6ee0eca49a0cf36c06a/Classes/LinphoneManager.m

define APPMODE_SUFFIX @".dev