List DND-enabled extensions
If the DND is set using the DND feature of the IP-Phone then there is no way you can list them. Otherwise, if it is set using FreePBX feature code (*78) then here is the way to do it:in linux prompt run:
# asterisk -rx “database show DND” or
#asterisk -rx “database show” | grep “/DND/”
# asterisk -rx "database show DND"
/DND/1002 : YES
/DND/1004 : YES
/DND/1006 : YES
/DND/1007 : YES
To remove DND from an extension run:
# asterisk -rx “database del DND ext.”