Receive DTMF jsSIP

I’m trying to receive DTMF commands from my Asterisk to jsSIP, I can see the DTMF arriving in Asterisk, but it simply doesn’t reach the browser using jsSIP, can anyone help me?

My code:
session.on(‘newDTMF’, (e) => {
console.log(‘Evento DTMF recebido:’, e.dtmf.tone);
});

pjsip.js

dtmf_mode=rfc4733
I was try info and auto.

Please provide logging, from Asterisk, and as plain text, not as screenshots.

Please don’t expect us to have to guess which address is which.

My guess is that some of the UDP here is actually SRTP DTMF packets. The Asterisk RTP and DTMF logs would show those based on clear text versions.

As of right now, there is simply no interface for receiving DTMF tones off a PeerConnection(), only sending:

Maybe one day there will be.

If its sent as SIP Info message check for the “INFO” message.

INFO sip:7007471000@example.com SIP/2.0
Via: SIP/2.0/UDP alice.uk.example.com:5060
From: <sip:7007471234@alice.uk.example.com>;tag=d3f423d
To: <sip:7007471000@example.com>;tag=8942
Call-ID: 312352@myphone
CSeq: 5 INFO
Content-Length: 24
Content-Type: application/dtmf-relay

Signal=5
Duration=160

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.