cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3460
Views
6
Helpful
1
Comments
ciscodotcom1
Level 1
Level 1

Purpose: Augment the DND function so that the Asterisk server is aware that DND is set on the handset.

FreePBX sets *78 and *79 to enable and disable DND for an extension, provided they are set as enabled in Admin -> Feature Codes.  

This configuration makes the phone dial those feature codes as well as using it's own built in DND function to display the Do Not Disturb banner.

This is a snippet from an XML configuration:

<!-- DND with Asterisk -->  
<Idle_Key_List group="Phone/Programmable_Softkeys">
  em_login|1;acd_login|1;acd_logout|1;astate|2;avail|3;unavail|3;redial|5;dir|6;cfwd|7;psk1|8;lcr|9;pickup|10;gpickup|11;unpark|12;em_logout
</Idle_Key_List>
<PSK_1 group="Phone/Programmable_Softkeys">fnc=sd;ext=*78;nme=dnd;ext2=*79;nme2=-DND</PSK_1>
<DND_Act_Code group="Regional/Vertical_Service_Activation_Codes">*78</DND_Act_Code>
<DND_Deact_Code group="Regional/Vertical_Service_Activation_Codes">*79</DND_Deact_Code>
<Service_Annc_Base_Number group="Regional/Vertical_Service_Announcement_Codes">*7</Service_Annc_Base_Number>
<Service_Annc_Extension_Codes group="Regional/Vertical_Service_Announcement_Codes">DDT:8;DDF:9</Service_Annc_Extension_Codes>
<DND_Serv group="Phone/Supplementary_Services">Yes</DND_Serv>
<Service_Annc_Serv group="Phone/Supplementary_Services">Yes</Service_Annc_Serv>
<!-- /DND with Asterisk -->

To configure directly from a phone's web interface (refer to the XMl config above):

Regional - set the feature codes, set the vertical service base code code to *7, then add DDT:8;DDF:9 to the extension codes list. 

Phone - Enable softkeys, define PSK1 and override the contents in Idle Key (note dnd is replaced with psk1 at position 8), enable Service Annc Service function and make sure that the DND service is also enabled (default).

Notes:  Firmware must be recent to support toggle psk - I think 7.4.x and up.  Ensure you can dial *78/79 first before doing this!

You can set the feature codes to simply beep rather than saying "Do not disturb activated" in FPBX -> Settings -> Advanced Settings -> Feature Codes Beep Only

Comments
bepstein111
Level 1
Level 1

Found this only a little bit confusing.

Just for anyone in the future, here's what I did:

  1. Open Phone's webUI
  2. Click Admin Login, then advanced
  3. Navigate to the Regional Tab
    1. Made sure DND Act Code and DND Deact Code were both set correctly (*78 and *79)
    2. Under "Vertical Service Announcement Codes", "Service Annc Base Number" is set to *7
    3. "Service Annc Extension Codes" is set to DDT:8;DDF:9
  4. Navigate to Phone Tab
    1. Under "Supplementary Services", set "Service Annc Serv" to yes
    2. Make sure "DND Serv" is also set to yes
    3. Down at bottom of page, under "Programmable Softkeys", set "Programmable Softkey Enable" to yes
    4. Change "Idle Key List" to "em_login|1;acd_login|1;acd_logout|1;astate|2;avail|3;unavail|3;redial|5;dir|6;cfwd|7;psk1|8;lcr|9;pickup|10;gpickup|11;unpark|12;em_logout" (remove quotes)
    5. Set PSK 1 to "fnc=sd;ext=*78;nme=dnd;ext2=*79;nme2=-DND" (remove quotes)
  5. Save and that's it! My DND button changed to a dnd button (lowercase) and now dials *78/*79 alternatively!
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: