Asterisk AMI set DND ON and OFF programatically

1.8k views Asked by At

I am trying to send an AMI command to asterisk and set the specific extension DND status on and off.

Action: DBPut
Family: DND
Key: SIP/xxx
Val: "YES"

When I use the command above I get response: success, but the extension is still normally receiving calls?

1

There are 1 answers

4
arheops On

1) turn dnd on via web interface

asterisk -rx "database show"

2) turn off

3) do same

4) compare.

5) compare with what your app do(likly you have additional / or something like that)