[asterisk-bugs] [JIRA] Feedback Requested: (ASTERISK-19634) Sending DTMF tones using the AMI through the agent proxy channel doesnt work as expected

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Jul 19 17:32:21 CDT 2012


     [ https://issues.asterisk.org/jira/browse/ASTERISK-19634?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-19634:
------------------------------------

    Assignee: Dan Jenkins  (was: Rusty Newton)
      Status: Waiting for Feedback  (was: Reopened)

bq. I will feedback once I have double made sure that this works as expected over DAHDI etc, my test rig isn't currently connected via DAHDI. I will let you know the results of this.

Dan, do you have any additional test results, or should we close this one out as not reproducible?

> Sending DTMF tones using the AMI through the agent proxy channel doesnt work as expected
> ----------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-19634
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-19634
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Core/ManagerInterface
>    Affects Versions: 1.8.9.1
>         Environment: AMI,CentOS,Xorcom
>            Reporter: Dan Jenkins
>            Assignee: Dan Jenkins
>         Attachments: ASTERISK_19634_log
>
>
> I'm trying to send DTMF tones using the AMI to a call generated and connected to the agent proxy channel. However It doesn't work as expected. I get back an AMI DTMF successfully queued event after sending the request, but I never receive a "played" event and can't hear the tone on the other end of the phone call.
> Below are some examples, please excuse the format, my NodeJS module returns the information in json format, I can get the raw output from the AMI if absolutely necessary, it's just not as easy to do than the current format.
> I have 3 examples, the first is the DTMF tone events coming from a SIP phone whilst logging into the Agent Channel. Ignore the "identifier" block of the json, however everything else is as it comes back from the AMI, just in JSON format.
> {noformat}
> Tue, 03 Apr 2012 16:00:36 GMT Uncaught event: OriginateResponse - {"event":"OriginateResponse","privilege":"call,all","actionid":"79769627843052140","response":"Success","channel":"SIP/3467-00001406","context":"agentlogin","exten":"*88883467","reason":"4","uniqueid":"1333468832.72586","calleridnum":"<unknown>","calleridname":"Agent Login","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:40 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"3","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:40 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"3","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:41 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"4","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:41 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"4","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:41 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"6","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:41 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"6","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:42 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"7","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:42 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"7","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:43 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"#","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:00:43 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/3467-00001406","uniqueid":"1333468832.72586","digit":"#","direction":"Received","begin":"No","end":"Yes","identifier":"ami"} 
> {noformat}
> As you can see, the call is requested and you can see the DTMF tone being played, these events come through.
> This example is a call being generated through the AMI, a response to that, a debug message to state that the call is being bridged between the caller and agent 3467. After this, a load of DTMF events being sent from the customer's end over a SIP trunk. As you can see, Asterisk receives these events and plays them back, the agent can hear these. 
> {noformat}
> //dtmf from connected phone - customer
> Tue, 03 Apr 2012 16:02:49 GMT Uncaught event: OriginateResponse - {"event":"OriginateResponse","privilege":"call,all","actionid":"26441132626496256","response":"Success","channel":"Agent/3467","context":"from-internal","exten":"07872992670","reason":"4","uniqueid":"1333468969.72587","calleridnum":"<unknown>","calleridname":"Dan Jenkins","identifier":"ami"}  
> Tue, 03 Apr 2012 16:02:57 GMT sending call event to AGENT 3467  
> Tue, 03 Apr 2012 16:03:07 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"2","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:07 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"2","direction":"Sent","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:07 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"2","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:07 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"2","direction":"Sent","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:10 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"5","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:10 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"5","direction":"Sent","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:10 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"5","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:10 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"5","direction":"Sent","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:11 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"8","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:11 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"8","direction":"Sent","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:11 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"8","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:11 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"8","direction":"Sent","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:12 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"0","direction":"Received","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:12 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"0","direction":"Sent","begin":"Yes","end":"No","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:13 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"SIP/voipcheap-00001407","uniqueid":"1333468969.72588","digit":"0","direction":"Received","begin":"No","end":"Yes","identifier":"ami"}  
> Tue, 03 Apr 2012 16:03:13 GMT Uncaught event: DTMF - {"event":"DTMF","privilege":"dtmf,all","channel":"Agent/3467","uniqueid":"1333468969.72587","digit":"0","direction":"Sent","begin":"No","end":"Yes","identifier":"ami"}
> {noformat}
> Thirdly, the agent tries to send DTMF tones using the AMI command and the Agent Proxy Channel. This has also been tried attaching the playback to the SIP channel the agent is logged in with, but this has the same outcome. In the example, you can see the information that was sent ("PlayDTMF") and the response saying that the DTMF tones had been successfully queued. However, you never receive the corresponding "DTMF" event, and the person on the other end of the call never receives the tone.
> {noformat}
> { action: 'PlayDTMF',
>   channel: 'Agent/3467',
>   digit: '8',
>   ActionID: 91302454913966350 }
> Tue, 03 Apr 2012 16:03:55 GMT Uncaught event: no event - {"response":"Success","actionid":"91302454913966350","message":"DTMF successfully queued","identifier":"ami_send_recieve"}  
> { action: 'PlayDTMF',
>   channel: 'Agent/3467',
>   digit: '2',
>   ActionID: 81097833276726300 }
> Tue, 03 Apr 2012 16:04:08 GMT Uncaught event: no event - {"response":"Success","actionid":"81097833276726300","message":"DTMF successfully queued","identifier":"ami_send_recieve"}  
> {noformat}
> Either the AMI should be telling me that the DTMF hasn't been queued due to the Agent Channel not supporting this functionality or the tone should be played. If this isn't the correct way of doing this, how do I go about playing DTMF tones on a call for an agent so that it gets actioned the other end of the call? Whether that be Agent Proxy to Another Agent Proxy / Agent Proxy to normal extension / Agent Proxy to an AGI script / Agent Proxy to external caller through DAHDI/SIP/IAX.
> Please let me know if you need any more information.
> Dan Jenkins

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list