Hi,
I’ve been developing an html toolbar to interact with Asterisk through the AMI over TCP.
It’s great, I can send commands, make calls, receive call notifications etc etc.
One of the things I can’t get working is playing a dtmf tone on the Agent channel when an agent is logged in.
We are running Asterisk 1.8.7 and when i play a DTMF tone I get a response back in the AMI saying that the DTMF tone has been queued. However, I don’t get a corresponding AMI action saying that it received the DTMF tone. The other side of the conversation can’t hear the DTMF tone being played but I can on my side.
I’ve tried this on an existing phone line with an IVR and it is unresponsive, this is also the case when getting through to voicemail on asterisk.
Ignore the formatting as I have written a layer in node.js to interpret these commands and send them off in the correct format, and vice versa for receiving them.
DTMF recieved from SIP softphone
Tue, 18 Oct 2011 15:41:12 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“3”,“direction”:“Received”,“begin”:“Yes”,“end”:“No”}
Tue, 18 Oct 2011 15:41:12 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“3”,“direction”:“Received”,“begin”:“No”,“end”:“Yes”}
Tue, 18 Oct 2011 15:41:13 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“4”,“direction”:“Received”,“begin”:“Yes”,“end”:“No”}
Tue, 18 Oct 2011 15:41:13 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“4”,“direction”:“Received”,“begin”:“No”,“end”:“Yes”}
Tue, 18 Oct 2011 15:41:14 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“6”,“direction”:“Received”,“begin”:“Yes”,“end”:“No”}
Tue, 18 Oct 2011 15:41:14 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“6”,“direction”:“Received”,“begin”:“No”,“end”:“Yes”}
Tue, 18 Oct 2011 15:41:14 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“7”,“direction”:“Received”,“begin”:“Yes”,“end”:“No”}
Tue, 18 Oct 2011 15:41:14 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:“7”,“direction”:“Received”,“begin”:“No”,“end”:“Yes”}
Tue, 18 Oct 2011 15:41:15 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:"#",“direction”:“Received”,“begin”:“Yes”,“end”:“No”}
Tue, 18 Oct 2011 15:41:15 GMT - Uncaught event: DTMF - {“event”:“DTMF”,“privilege”:“dtmf,all”,“channel”:“SIP/3467-0000000a”,“uniqueid”:“1318952467.36”,“digit”:"#",“direction”:“Received”,“begin”:“No”,“end”:“Yes”}
DTMF sent from AMI
{ action: ‘PlayDTMF’,
channel: ‘Agent/3467’,
digit: ‘5’,
ActionID: 97253236221149570 }
DTMF response to prior action
{“response”:“Success”,“actionid”:“97253236221149570”,“message”:“DTMF successfully queued”}
But I don’t get a DTMF event fired at me to tell me asterisk has received and acted upon the tone.
I’ve tried tying it up to the agent channel that the agent is logged in with, ie a SIP channel but this has the same issue.
If anyone can help me I’d really appreciate it. The AMI user has full write privileges.
Dan Jenkins