V
V
Vladimir Sachkov2019-02-25 13:40:56
Asterisk
Vladimir Sachkov, 2019-02-25 13:40:56

How to switch to DND mode without user intervention?

The question is as follows, I have a certain subscriber whom I want to transfer to DND status, but the problem at the moment is that the PBX itself dials the user on the phone to transfer him to the status (supposedly he himself picked up the phone and dialed the code to switch to this state), the question is, is there a way to transfer the subscriber-user to the DND status without a call from the PBX?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hermiD, 2019-02-28
@hermiD

You can convert to DND like this:
asterisk -rx 'devstate change Custom:DND111 BUSY'
asterisk -rx 'devstate change Custom:DEVDND111 BUSY'
asterisk -rx 'database put DND 111 YES'

replace "111" with the number of the person you want to send to DND.
Check the status of the number:
asterisk -rx 'database get DND 111' If the answer is "Value: YES", then DND is activated on this number.

V
Viktor, 2019-02-25
@awsswa59

The DND mode from the asterisk side is implemented by writing to the internal database
from the phone, dial the number * 76 and see what was recorded by the database show
Then you can write the same records to the database yourself

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question