Hello all,
I'm actually using a Snom D335 fw. 10.1.64.14 connected to a FreePBX with Asterisk 16.13.0 .
I've configured phone to monitor extensions with BLF and it is working quite well actually, but I can't understand how to configure a LED OFF status (or any else) for unreachable/inactive/unavailable extensions.
I'm using this configuration on phone
<led_on perm="">ON IN_A_CALL CALLING IN_A_MEETING URGENT_INTERRUPTIONS_ONLY BUSY I-Am-Busy DND_ALL DND_SELF ACTIVE BE_RIGHT_BACK SEIZED CONNECTED ON_HOLD OFFHOOK RINGBACK I-Am-Ready AWAY idle AVAILABLE AVAILABLE_ON_MOBILE AVAILABLE_AT_DESK call_center_status_empty PhoneHasCall PhoneHasMissedCalls CurrentIdentityHasVoiceMessages PhoneHasVoiceMessages seized_local seized_remote active_local active_remote dialog_dnd</led_on>
<led_blink_fast perm="">RINGING PICKUP call_center_status_exceed PhoneHasCallInStateRinging alerting_local alerting_remote</led_blink_fast>
<led_red perm="">CONNECTED 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_red>
<led_green perm="">idle 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 seized_local alerting_local active_local held_local call_parked</led_green>
<led_orange perm="">RINGING AWAY BE_RIGHT_BACK KeyConfigActive dialog_dnd</led_orange>
<led_blue perm=""></led_blue>
<led_call_indicator_usage perm="">PhoneHasCallInStateRinging PhoneHasCallInStateCalling PhoneHasCallInStateRingback PhoneHasCallInStateConnected PhoneHasCallInStateOffhook PhoneHasCallInStateHolding PhoneHasCall PhoneHasMissedCalls DateOngoing DateReminding</led_call_indicator_usage>
I've already searched articles about this issue on community forum, but cannot find nothing viable
Read articles:
How to change the LED colour and behaviour for monitored extensions
How to obtain a SIP trace from a deskphone
HowTo - Extension Monitoring - Asterisk Presence
How to change the LED behaviour for monitored extensions in idle mode
can somebody help me to achieve this goal?
Thanks,
Andrea
12 Comments
Gianmaria Tononi
Nov 17, 2022Hi,
I can see you are actually a Snom partner so I suggest you raise a private ticket, and not a public Community thread, so we can investigate better.
Anyway, since this can help other people: the phone cannot see if another phone is turned off or in a DND state for example, the BLF are based on some Notify SIP messages coming from the PBX.
When the BLF is configured the phone sends a Subscribe message to the PBX, asking for updates via Notify for that extension.
Usually the PBX sends different updates (bury, ringing or idle for example) when a phone is ringing or in a call or in idle state.
There is no direct way to know if a phone sets itself on DND or is powered off on the phone with the active BLFs, the only way could be the PBX sending a specific Notify, but that usually doesn't happen because even the PBX doesn't know the state of the phone.
As said, for further investigation, please raise a private ticket.
Thank you
Andrea Biancalani
Nov 17, 2022Hi Gianmaria,
I solved the problem using this how-to based on XML definitions adding the traslation for Unavailable as following
HOW TO KB: https://service.snom.com/display/wiki/HowTo+-+Extension+Monitoring+-+Asterisk+Presence
Daniel Huhardeaux
Mar 23, 2023Hi Gianmaria, could you please explain how you solved it ? BLF function key doesn't accept XML file and Presence or Definition XML doesn't react with the above XML file (corrected with our datas
), led stay off. We configure another function key on the same phone with BLF to the same extension, it's working great except the UNAVAILABLE status.
Thanks
Andrea Biancalani
Mar 23, 2023Hello Daniel,
you probably have not updated your LED STATUS in settings
This is my configuration
if you don't know how to set them, you can use HTTP requests on dummy page, this is the guide: Can I set or change phone settings via HTTP requests
Provided XML file has to be used paired with "XML definition" feature key, cannot be used with "BLF" one.
Kind regards.
Daniel Huhardeaux
Mar 23, 2023I setup leds - I changed them using dummy-, they are working as expected with BLF. I will try with your definition if it matter. I'm surprised, I already copy/paste your XML in number area of an XML definition functions keys, led desperatly stay off
Are you using FW 10.1.141.13 or still 10.1.64.14 ? BTW, I do my tests against asterisk 20.2.
Thanks for you answer
Andrea Biancalani
Mar 23, 2023Using that configuration on this hardware/firmware: snomD335-SIP 10.1.64.14
Connected to Asterisk 16.28.0
Daniel Huhardeaux
Mar 23, 2023Another one:
[SuscribeContext]
exten = 105,hint,PJSIP/abcde_105&Custom:DND105,Custom:lamp2,CustomPresence:105
exten = 115,hint,PJSIP/abcde_115&Custom:DND115,Custom:lamp5,CustomPresence:115
Same for you (DNDxxx and lampxxx not to take in account)?
Andrea Biancalani
Mar 23, 2023Consider I'm not using PJSIP, but old SIP protocol.
I'm not sure you can use PJSIP for presence hints. Probably you can, but I'm not so confident on this protocol and I prefer to stay on legacy SIP one.
Daniel Huhardeaux
Mar 23, 2023Well, that's effective another one, thanks for feedback. I confirm, still nothing with my led despite the fact that I see NOTIFY presence like
CSeq: 17641 NOTIFY
Event: presence
Subscription-State: active;expires=2137
Allow-Events: presence, dialog, message-summary, refer
Max-Forwards: 70
User-Agent: MyAudio
Content-Type: application/pidf+xml
Content-Length: 463
<?xml version="1.0" encoding="UTF-8"?> <presence entity="sip:105@zone-s" 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>Ringing</note> <tuple id="105"> <status> <basic>open</basic> </status> <contact priority="1">sip:abcde_115@zone-s</contact> </tuple> <dm:person> <rpid:activities> <rpid:on-the-phone /> </rpid:activities> </dm:person> </presence>
Perhaps someone from SNOM will jump in this ...
Andrea Biancalani
Mar 23, 2023Weird.
Had a fast lookup on that xml and it seems compliant to my example
it seems my help stops here, we need a more specific one from Snom support to understand and mitigate this strange behaviour. Sorry
Daniel Huhardeaux
Mar 23, 2023You already did help us a lot, we continue to investigate, many thanks.
Christos Kratimenos
Dec 03, 2023Hello dear Andrea Biancalani , did you manage to solve this issue eventually by the configuration provided? i have followed both guides stated here and here, but i cant seem to get the LED to be red when in a call.