Answer the question
In order to leave comments, you need to log in
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
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.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question