Can Admin manage an extension's DND?

Google show multiple questions in this and other forums where people have asked how an admin can enable or disable an extension’s DND settings. All the answer that I found say that this can be done from the handset itself (by dialling a feature code) or the UCP; the admin GUI doesn’t have the option.

In FreePBX 17 + Asterisk 22, has such a feature been added? I can’t find it.

To clarify, I do not want to change the status of my own extension. Nor do I want to enable/disable a user from having this facility. I want to remotely change it for an extension.

Specifically, one of the people in a ring group has gone home without turning off his PC (he works remotely and uses Zoiper). Asterisk is showing his ext as active and external inbound calls are being routed to him. If only I could enable DND on that particular ext, another agent would get the call. I, or he himself could then disable it tomorrow morning.

If you can’t use UCP, you could quickly provision the extension in something like MicroSIP and toggle it off with the feature code yourself. Perhaps increase max contacts before you do that so you don’t break his registration.

Admin>Asterisk CLI

Enable DND
database put DND 1001 ON

Disable DND
database del DND 1001

Check DND Status
database show DND

These commands take effect immediately, no reload is required.

My question though: why don’t you temporarily update the Ring Group or Call flow rather that putting the extension in DND?

Thanks. Shall try that.

Actually, yes, that is what I ended up doing; removed him from the group. I’ll have to add him back Monday morning.

After using database put DND 1001 ON, the database show dnd 1001 shows: /dnd/1001 : on

However, the admin GUI at /admin/config.php?display=extensions does not show a check mark on DND for that extension. When calling it from another ext, the call goes through.

I will have to double check this when I get in front of a FreePBX instance

I’d expect the show to show the same capitalisation as in the put.

To enable DND: “database put DND 1001 YES”
Has to be capital DND and capital YES.
Otherwise, DND is not activated.
You can remove the other entry “database del dnd 1001”

/DND/1001 : Yes
/dnd/1001 : YES
^ DND is not active

1 Like

I defer to you as always. Still under your tutelage

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.