The AMI’s DTMF event are not raised when DTMF originator is a PJSIP channel. I ha has been monitoring AMI DTMF events (DTMFBegi amd DTMFEnd).
I have 2 endpoints one using SIP and the other PJSIP , I make a call beteween these two devices, But If I dial any DTMF key on the PJSIP device while in the call with the SIP device no DTMF event is raised, But it works when I dail any DTMF key from the SIP endpoint.
These are the events generated when I dial a key on the SIP device while in a call with the PJSIP device
PJSIP rtp debug
Sent RTP packet to 186.150.101.237:8006 (type 00, seq 012877, ts 253760, len 000160)
Sent RTP packet to 186.150.101.237:8006 (type 00, seq 012878, ts 253920, len 000160)
Working DTMF on SIP
Got RTP RFC2833 from 186.150.101.237:56692 (type 101, seq 003392, ts 2000640, len 000004, mark 1, event 00000002, end 0, duration 00160)
[Mar 4 13:42:41] DTMF[6159][C-000002e3]: channel.c:4050 __ast_read: DTMF begin '2' received on SIP/102-00000015
[Mar 4 13:42:41] DTMF[6159][C-000002e3]: channel.c:4054 __ast_read: DTMF begin ignored '2' on SIP/102-00000015
That’s the INVITE from the device, that is not what we have told the remote device which is the important part. If the NAT stuff is not working correctly and we aren’t telling them the public IP address then we may not get any RTP from them.