I’m running FreePBX 14 with Asterisk 16 and we use AMI to initiate calls. Essentially what we do is to ring the extension and when the user picks up we then dial the external number. The problem we are running into is if the user is on DND, the call goes directly to voicemail which looks like a pickup and so the outbound number is dialed. This results in a voicemail being created.
What we would like to do is to turn off DND on the extension before we send the call. I can’t find any documentation on how to turn off DND via the AMI API.