Content

Page tree

Hello. After following various documentation on SNOM website, I can't get Presence working despite the fact that SIP logs on D717 shows that xml events are sended by the other subscribe phone (which is a snom760-SIP 8.9.3.80). Using BLF is working as expected.

D717 is 115, 760 is 105 in Asterisk dialplan. Subscribe context is:
[MySubscribeContext]
exten = 105,hint,PJSIP/abcdef_105&Custom:DND105,CustomPresence:105
exten = 115,hint,PJSIP/abxdef_115&Custom:DND115,CustomPresence:115

On D717 I used the third Smart Label button and put it in XML Definition using following xml pasted in the Number area (copy taken from modified parameters in configuration state)

<functionKeys e="2">

<fkey idx="1" context="active" short_label_mode="icon_text" short_label="" short_default_text="!!$(::)!!$(generate_via_conditional_label_short)" label_mode="icon_text" icon_type="" reg_label_mode="icon_text" ringer="Silent" label="" lp="on" default_text="!!$(::)!!$(generate_via_conditional_label_full)" perm="">line</fkey>

<fkey idx="2" context="active" short_label_mode="icon_text" short_label="105" short_default_text="!!$(::)!!$(generate_via_conditional_label_short)" label_mode="icon_text" icon_type="" reg_label_mode="icon_text" ringer="Silent" label="" lp="on" default_text="!!$(::)!!$(generate_via_conditional_label_full)" perm="">

<general type="AsteriskPresenceField"/>

<initialization>

<state value="initial"/>

<variable name="subscr_ext" value="105"/>

<variable name="subscr_proxy" value="10.0.70.12"/>

<variable name="pickup_code" value="*8"/>

<variable name="subscr_uri" value="sip:$(subscr_ext)@$(subscr_proxy)"/>

</initialization>

<subscription type="presence" to="<$(subscr_uri)>" for="$(subscr_uri)"/>

<NotifyParsingRules type="applies">

<level1 translates_to="OK">/presence/tuple/contact[.="$(subscr_uri)"]</level1>

</NotifyParsingRules>

<NotifyParsingRules type="state">

<level1 translates_to="AWAY">/presence/pp:person/status/ep:activities/ep:away</level1>

<level1-1 translates_to="AWAY">/presence/tuple/status/basic[.="closed"]</level1-1>

<level2 translates_to="BUSY">/presence/pp:person/status/ep:activities/ep:busy</level2>

<level2-1 translates_to="RINGING">/presence/note[.="Ringing"]</level2-1>

<level2-2 translates_to="IN_A_CALL">/presence/note[.="On the phone"]</level2-2>

<level2-3 translates_to="HOLDING">/presence/note[.="On hold"]</level2-3>

<level3 translates_to="AVAILABLE">/presence/tuple/status/basic[.="open"]</level3>

</NotifyParsingRules>

<action>

<invite when="on press" states="Ringing" target="$(pickup_code)$(subscr_ext)"/>

<invite when="on press" states="Ringing" target="$(pickup_code)$(subscr_ext)"/>

<invite when="on press" states="Registered" target="$(subscr_ext)"/>

<invite when="on press" states="Registered" target="$(subscr_ext)"/>

</action>

</fkey>

</functionKeys>

Led definition:

led_on=ON IN_A_CALL CALLING IN_A_MEETING URGENT_INTERRUPTIONS_ONLY BUSY I-Am-Busy DND_ALL DND_SELF ACTIVE INACTIVE BE_RIGHT_BACK SEIZED CONNECTED ON_HOLD OFFHOOK RINGBACK I-Am-Ready AWAY AVAILABLE AVAILABLE_ON_MOBILE AVAILABLE_AT_DESK call_center_status_empty AudioIsMuted AudioDeviceIsHeadsetRTP AudioDeviceIsSpeakerRTP AudioDeviceIsHeadsetMulticast AudioDeviceIsSpeakerMulticast HeadsetIsActiveNoAudio AudioDeviceIsHeadsetRinging AudioDeviceIsSpeakerRinging AudioDeviceIsHeadsetDialtone AudioDeviceIsSpeakerDialtone AudioDeviceIsHeadsetDTMF AudioDeviceIsSpeakerDTMF AudioDeviceIsHeadsetRingback AudioDeviceIsSpeakerRingback AudioDeviceIsHeadsetMisc AudioDeviceIsSpeakerMisc CurrentIdentityIsDnd PhoneHasCall PhoneHasMissedCalls CurrentIdentityHasVoiceMessages PhoneHasVoiceMessages seized_local seized_remote active_local active_remote dialog_dnd
led_blink_slow=PARKED HOLDING I-Am-Almost-Ready call_center_status_normal PhoneHasCallInStateHolding held_local held_remote KeyConfigActive call_parked
led_blink_medium=RECORDING MESSAGE DateOngoing DateReminding
led_blink_fast=RINGING PICKUP call_center_status_exceed PhoneHasCallInStateRinging alerting_local alerting_remote
led_red=BUSY DND_ALL DND_SELF I-Am-Busy IN_A_CALL IN_A_MEETING URGENT_INTERRUPTIONS_ONLY UNAVAILABLE seized_remote alerting_remote active_remote held_remote
led_green=AVAILABLE AVAILABLE_ON_MOBILE AVAILABLE_AT_DESK I-Am-Ready I-Am-Almost-Ready call_center_status_empty call_center_status_normal call_center_status_exceed AudioDeviceIsHeadsetRTP AudioDeviceIsSpeakerRTP AudioDeviceIsHeadsetMulticast AudioDeviceIsSpeakerMulticast HeadsetIsActiveNoAudio AudioDeviceIsHeadsetRinging AudioDeviceIsSpeakerRinging AudioDeviceIsHeadsetDialtone AudioDeviceIsSpeakerDialtone AudioDeviceIsHeadsetDTMF AudioDeviceIsSpeakerDTMF AudioDeviceIsHeadsetRingback AudioDeviceIsSpeakerRingback AudioDeviceIsHeadsetMisc AudioDeviceIsSpeakerMisc seized_local alerting_local active_local held_local call_parked
led_orange=AWAY INACTIVE BE_RIGHT_BACK KeyConfigActive dialog_dnd
led_blue=CurrentIdentityIsDnd

From D717, SIP log when 105 place a call:

Received from Udp:10.0.70.12:5060 on Udp:192.168.12.115:49294 at Mar 18 17:43:22.851 (1049 bytes):

NOTIFY sip:abcdef_115@192.168.12.115:49294;line=fkzuri69 SIP/2.0
Via: SIP/2.0/UDP 10.0.70.12:5060;rport;branch=z9hG4bKPj99c875a0-5f73-42d1-8a20-d97568c81a6a
From: <sip:105@10.0.70.12>;tag=d12dc28d-7987-4887-9b5a-357eae8f1bd5
To: <sip:abcdef_115@zone-s>;tag=wr3modub7c
Contact: <sip:10.0.70.12:5060>
Call-ID: fae91564ad03-mgykwjysy98g
CSeq: 6800 NOTIFY
Event: presence
Subscription-State: active;expires=3551
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: MyUserAudio
Content-Type: application/pidf+xml
Content-Length: 472

<?xml version="1.0" encoding="UTF-8"?> <presence entity="sip:105@10.0.70.12" xmlns="urn:ietf:params:xml:ns:pidf" xmlns:dm="urn:ietf:params:xml:ns:pidf:data-model" xmlns:rpid="urn:ietf:params:xml:ns:pidf:rpid"> <note>On the phone</note> <tuple id="105"> <status> <basic>open</basic> </status> <contact priority="1">sip:abcdef_115@zone-s</contact> </tuple> <dm:person> <rpid:activities> <rpid:on-the-phone /> </rpid:activities> </dm:person> </presence>


Sent to Udp:10.0.70.12:5060 from Udp:192.168.12.115:49294 at Mar 18 17:43:22.862 (337 bytes):

SIP/2.0 200 Ok
Via: SIP/2.0/UDP 10.0.70.12:5060;rport=5060;branch=z9hG4bKPj99c875a0-5f73-42d1-8a20-d97568c81a6a
From: <sip:105@10.0.70.12>;tag=d12dc28d-7987-4887-9b5a-357eae8f1bd5
To: <sip:abcdef_115@zone-s>;tag=wr3modub7c
Call-ID: fae91564ad03-mgykwjysy98g
CSeq: 6800 NOTIFY
User-Agent: snomD717/10.1.141.13
Content-Length: 0


As you can see, event is sended to the phone but nothing happend on the led.  (sad) Same if 105 is Ringing, nothing happend on 115 even *8 does'nt intercept the call. Also, putting phone in DND does'nt send NOTIFY, is that correct?

What am I doing wrong (if) and how to get Presence working properly with SNOM phones ?

Thanks for your support, any hint welcome (wink)

Daniel

profilePicture

Daniel Huhardeaux

End user

Joined: 15.03.2023

2 Comments

  1. Note: solved via helpdesk ticket.