Hi,

Asterisk 11.13.1 at home, self compiled Linphone iOS 3.16 (core 3.11) on my
iPhone (iOS 10.3).

I want to video call my linphone-iphone if someone rings  my SIP doorbell.
All this works so far. But since on iOS TCP connection is no longer enough
to keep the connection from linphone to asterisk open, i want to send a
push notification when the phone is unregistered. I'll call a python AGI
script to do all this. Of course i activated PUSH on my account settings in
linphone.

Linphone registers via TCP and i see token in REGISTER message:

 Reg. Contact : sip:[email protected]
> :27864;app-id=lu.yyy.yyyyyy.voip.prod;pn-type=apple;pn-tok=724D00EC1153019C5E21XXXXXX875EC09A76F19F8D9C55DE89B7FE1B24597F25;pn-msg-str=IM_MSG;pn-call-str=IC_MSG;pn-call-snd=notes_of_the_optimistic.caf;pn-msg-snd=msg.caf;pn-timeout=0;pn-silent=1;transport=tcp


My python script (using apns2 package) successfully sends a push message
containing the following:

{
> 'aps':
>   {'sound': 'notes_of_the_optimistic.caf',
>    'alert': {'loc-key': 'IC_MSG', 'loc-args': ['123456']},
>    'badge': '1'
>   },
> 'call-id': '123456'
> }


on iPhone console log i see that apns daemon receives a push notification.
But Linphone does not react. Nothing happens.


Any clue what i could have done wrong ?


Serge
_______________________________________________
Linphone-users mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/linphone-users

Reply via email to