DND
From Snom Asterisk Portal
Contents |
Feature description
DND is short for “Do Not Disturb”. If this mode is activated i.e. by pressing the "DND" button, incoming calls will no longer be accepted so you can work completely undisturbed by the phone.
Note: The contact type “VIP” overrides the DND mode. I.e., a call from a number you have defined as contact type “VIP” will be put through to your phone even when DND is active.
Instead of answering the SIP INVITE with the SIP code "180 Ringing", the phone returns "480 Do Not Disturb" to the PBX. "480 Do Not Disturb" is interpreted "circuit-busy" by the Asterisk.
Configure Asterisk
If the curtuit is busy, Asterisk will jump to the active priority +101, if that priority exists in the given extension.
Example:
exten => 71,1,Dial(SIP/71)
exten => 71,n,Congestion() ; Dial failed, play a congestion
exten => 71.102,Mailbox(sb${EXTEN})
In this example, the Mailbox "71" is executed when the circuit is busy (or DND).
If you need to differenciate between a real BUSY and a DND, you can check the values of the Asterisk channel variables ${DIALSTATUS} and ${HANGUPCAUSE}. A BUSY signal generates DIALSTATUS=BUSY and HANGUPCAUSE=17 (which means USER_BUSY). To the opposite, a DND signal generates DIALSTATUS=CONGESTION and HANGUPCAUSE=38 (which apparently means NETWORK_OUT_OF_ORDER)
Note: on a real congestion, Asterisk will not jump to priority+101 but to the next priority: Congestion.
Example:
exten => 71,1,Dial(SIP/71)
exten => 71,n,Congestion() ; Dial failed, play a congestion
exten => 71.102,ExecIf($["${HANGUPCAUSE}"=="38"]|Mailbox|su${EXTEN})
exten => 71.103,ExecIf($["${HANGUPCAUSE}"!="38"]|Busy)
If the callee is in DND mode (HANGUPCAUSE=38) the caller is presented with a mailbox. Otherwise, send a busy signal if the callee is on the phone, but already talking. (busy)
Configure snom phones
snom 3xx
By default, no special configuration steps are needed to enable the DND feature on your snom 3xx. Make sure, that Block DND is disabled in the Web User Interface.
- Go to "Advanced" > tab "Behavior" > section "Keys" > "Block DND". Set this option to "off".
You can also configure a softkey or a free function key with the Key Event F_DND. The LED of this function key turns permanenty "on" when DND is enabled. Go to the Web User Interface under "Function Keys" for configuration.
snom m3
To set your handset to DND mode, go to the Web User Interface under "Telephony Settings" > section "Outgoing Identity to be used for:" > "DND". Set this option to "DND".
How to use
See snom knowledgebase for usage on snom 3x0.
