No DTMFBegin/DTMFEnd events after PlayDTMF action

Hi, I’m using Asterisk 13.12.2 and the scenario is the following:

  1. extension 91200 is in conversation with 99200 (both pjsip extensions)
  2. from AMI I execute the action PlayDTMF:

Action: PlayDTMF
Channel: PJSIP/99200-00000021
Digit: 5
Duration: 500

Response: Success
Message: DTMF successfully queued

  1. Extension 99200 listen the audio tone, but no event (DTMFBegin, DTMFEnd) is generated by asterisk, so I can not use dtmf tones to do some actions

If I use the physical phone keyboard, the events are generated: asterisk console output

[2017-03-25 22:43:59] DTMF[10005][C-00000019]: channel.c:4058 __ast_read: DTMF begin ‘5’ received on PJSIP/91200-00000022
[2017-03-25 22:43:59] DTMF[10005][C-00000019]: channel.c:4069 __ast_read: DTMF begin passthrough ‘5’ on PJSIP/91200-00000022
[2017-03-25 22:43:59] DTMF[10005][C-00000019]: channel.c:3972 __ast_read: DTMF end ‘5’ received on PJSIP/91200-00000022, duration 140 ms
[2017-03-25 22:43:59] DTMF[10005][C-00000019]: channel.c:4013 __ast_read: DTMF end accepted with begin ‘5’ on PJSIP/91200-00000022
[2017-03-25 22:43:59] DTMF[10005][C-00000019]: channel.c:4042 __ast_read: DTMF end passthrough ‘5’ on PJSIP/91200-00000022

I previously use the same action on asterisk 11 and everything was working.

dtmf mode on /etc/asterisk/pjsip.endpoint.conf is set to dtmf_mode=rfc4733
I need to have same behavior of physical phone using PlayDTMF action, is there any way ?

PlayDTMF is for playing DTMF to a channel. The events you’ve mentioned are for DTMF coming FROM a channel. They wouldn’t be output in this scenario.

I try to better explain my needs.
I’ve this in my features.conf:


I can trigger it using physical phone, but not with PlayDTMF, like I did with Asterisk 11.
How can I do it using AMI on asterisk 13 ?
This is just an example, I want to play DTMF to execute any custom features.conf code defined by user.

Only by interposing a local channel.