Asterisk AMI PlayDTMF to instantiate disconnect key combinat

Get help with installing, upgrading and running Asterisk.

Moderators: muppetmaster, Moderator, Support

Asterisk AMI PlayDTMF to instantiate disconnect key combinat

Postby jakehallas » Fri Jan 08, 2016 12:59 pm

I'm currently having a play about with AMI in Asterisk 11. I seem to of hit a snag where utilising the 'PlayDTMF' action will go out on the channel rather than be seen as incoming DTMF.

This is a bit of an issue, I've provided my features.conf file config below:

Code: Select all
Builtin Feature           Default Current
---------------           ------- -------
Pickup                    *8      *8
Blind Transfer            #       #
Attended Transfer                 *2
One Touch Monitor
Disconnect Call           *       *99
Park Call                         #72
One Touch MixMonitor

I'm wanting to execute the *99 key combination over AMI to allow the call to disconnect. My AMI Action looks like this (developed in nodejs):

Code: Select all
    'action': 'playdtmf',
    'channel':, //this is the callers channel
    'digit': '*99'
}, function (err, res) {

I receive a JSON response which tells me everything has been queued successfully. I can also hear the DTMF tones come through the SIP Phone

Code: Select all
{ response: 'Success',
  actionid: 'xxx',
  message: 'PlayDTMF successfully queued' }

I have read references to interposing a Local channel on the first leg. How would I go about interposing a local channel while I have an ongoing call?

Thanks very much in advance!
Posts: 2
Joined: Mon Aug 11, 2014 11:45 pm

Re: Asterisk AMI PlayDTMF to instantiate disconnect key combinat

Postby david55 » Fri Jan 08, 2016 2:53 pm

You do it before you start the outging leg. Incoming dials Local/ Local/ dials outgoing.
Moves Like Spencer
Posts: 12570
Joined: Fri Sep 26, 2008 5:03 am

Return to Asterisk Support

Who is online

Users browsing this forum: Google [Bot] and 1 guest