› VitalPBX Community Support › General Discussion › AMI Action help
I have a AMI connection and receive DND info from payload.hint sip/ptpbx201&Custom:DND_201
does anyone know how I would send info back to Asterisk to execute DND_201
is it done by a Action message ?
Here’s a list of AMI actions you can use:
https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+AMI+Actions
I saw that but it’s a little above my ability, could you give me a hint on how to use and I will take it from there.
One way to remove the DND is from the CLI:
asterisk -rx "database del CustomDevstate 9999"
Where 9999 is the extension number. To see if it is busy or on DND:
asterisk -rx "database show" | grep "9999"
From this you could script it in some way. I don’t think there’s anything in the AMI for changing the UserEvent state.