Dtmf codec rates when transcoding

193 views
Skip to first unread message

Sergey Zyrianov

unread,
Oct 5, 2023, 11:53:46 AM10/5/23
to rtpe...@googlegroups.com
Hello,

I got a question on DTMF rates when transcoding.

A supports AMR/AMR-WB and DTMF with rates 8000 and 16000

B supports only PCMA and DTMF rate of 8000

1. AMR-WB is selected towards A to transcode from PCMA
2. DTMF from B is passed through without jumping to 16000

if this is A's SDP:

m=audio 50010 RTP/AVP 99 97 105 96 a=rtpmap:99 AMR-WB/16000/1 a=fmtp:99 mode-change-capability=2;max-red=0 a=rtpmap:97 AMR/8000/1 a=fmtp:97 mode-change-capability=2;max-red=0 a=rtpmap:105 telephone-event/16000 a=fmtp:105 0-15 a=rtpmap:96 telephone-event/8000 a=fmtp:96 0-15
B's answer looped via rtpengine includes 2 DTMF PTs
m=audio 39682 RTP/AVP 99 96 105

Rtpengine transcodes PCMA to 99 but allows pass through of 96(rate 8000Hz) which makes troubles for A to insert tones into the stream with different rate.

Is this expected behaviour from Rtpengine point of view ?


BR, Sergey

Richard Fuchs

unread,
Oct 10, 2023, 8:07:02 AM10/10/23
to rtpe...@googlegroups.com

Really depends on which version you're running and what the exact signalling looks like. There have been numerous changes and improvements made regarding DTMF over the years.

Cheers

Sergey Zyrianov

unread,
Oct 13, 2023, 6:46:59 AM10/13/23
to rtpe...@googlegroups.com
lets say head of master or latest release - what would be expect behaviour ?

BR, Sergey 

--
You received this message because you are subscribed to the Google Groups "rtpengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/0b02a862-db21-43a6-9e1d-478703bca099%40sipwise.com.

Richard Fuchs

unread,
Oct 13, 2023, 8:34:35 AM10/13/23
to rtpe...@googlegroups.com
On 13/10/2023 06.46, [EXT] 'Sergey Zyrianov' via rtpengine wrote:
> lets say head of master or latest release - what would be expect
> behaviour ?

Latest version should produce DTMF payload types matching the audio
codecs advertised (absent any signalling flags overriding it).

Cheers

Reply all
Reply to author
Forward
0 new messages