[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-users] linphone-iphone does register with push token but does

From: Serge Wagener
Subject: [Linphone-users] linphone-iphone does register with push token but does not react on push notification
Date: Mon, 3 Apr 2017 13:51:52 +0200


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:address@hidden:27864;;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:

  {'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 ?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]