I am trying to pass DTMF events from Asterisk via ARI to my own application.
The bridge is created as follows:
[Oct 30 13:02:25] VERBOSE[18234] res_ari.c: <— ARI request received from: 192.168.53.144:38530 —>
POST bridges
Host: 192.168.53.194:8088
Authorization: Basic YXN0ZXJpc2s6YXN0ZXJpc2s=
User-Agent: aricpp
Content-Type: application/json
Content-Length: 0
type: mixing,dtmf_events
body:
Based on the logging, I can see that the DTMF packets are received by Asterisk, but the ChannelDtmfReceived event is never raised.
The log file also indicates there is something wrong with building up the JSON object
[Oct 30 13:02:40] VERBOSE[18245][C-00000010] res_rtp_asterisk.c: Got RTP RFC2833 from 192.168.53.146:10028 (type 101, seq 001968, ts 032320, len 000004, mark 0, event 00000001, end 0, duration 01440)
[Oct 30 13:02:40] VERBOSE[18245][C-00000010] res_rtp_asterisk.c: Got RTP packet from 192.168.53.146:10028 (type 101, seq 001969, ts 032320, len 000004)
[Oct 30 13:02:40] VERBOSE[18245][C-00000010] res_rtp_asterisk.c: Got RTP RFC2833 from 192.168.53.146:10028 (type 101, seq 001969, ts 032320, len 000004, mark 0, event 00000001, end 1, duration 01600)
[Oct 30 13:02:40] DTMF[18245][C-00000010] channel.c: DTMF end ‘1’ received on SIP/9001-0000000b, duration 200 ms
[Oct 30 13:02:40] DTMF[18245][C-00000010] channel.c: DTMF end accepted with begin ‘1’ on SIP/9001-0000000b
[Oct 30 13:02:40] DTMF[18245][C-00000010] channel.c: DTMF end passthrough ‘1’ on SIP/9001-0000000b
[Oct 30 13:02:40] ERROR[17446] json.c: Error building JSON from ‘{s: s, s: o, s: s, s: I, s: o}’: NULL object.
[Oct 30 13:02:40] ERROR[17446] : Got -3 backtrace records
My Asterisk version is 18.24.3
The sip.conf file looks as follows
[general]
alwaysauthreject=yes
allowguest=no
rtptimeout=1000003
rtpholdtimeout=15
rtpkeepalive=5
dtmfmode=auto
transport=udp
[9001]
type=friend
dtmfmode=auto
nat=no
I’m trying to upload the full log file (which includes the ARI logging) but unfortunately I am not allowed