]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_sdp_rtp: Add support for default/mismatched 8K RFC 4733/2833 digits
authorMike Bradeen <mbradeen@sangoma.com>
Fri, 21 Jun 2024 22:56:11 +0000 (16:56 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 11 Jul 2024 13:22:44 +0000 (13:22 +0000)
commite86bd1d97d4f7af1ad4ed0cc1b48964caaf771a6
tree43e00350d89dbd359796cd9959e4c80994c98148
parent56b0c48afe7ba77941e5c86092e7fb76f8504709
res_pjsip_sdp_rtp: Add support for default/mismatched 8K RFC 4733/2833 digits

After change made in 624f509 to add support for non 8K RFC 4733/2833 digits,
Asterisk would only accept RFC 4733/2833 offers that matched the sample rate of
the negotiated codec(s).

This change allows Asterisk to accept 8K RFC 4733/2833 offers if the UAC
offfers 8K RFC 4733/2833 but negotiates for a non 8K bitrate codec.

A number of corresponding tests in tests/channels/pjsip/dtmf_sdp also needed to
be re-written to allow for these scenarios.

Fixes: #776
(cherry picked from commit d59f1a0c44cb32dad4a22e08b832484e8d72f23c)
include/asterisk/rtp_engine.h
res/res_pjsip_sdp_rtp.c
res/res_rtp_asterisk.c