]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_sdp_rtp: Use negotiated DTMF Payload types on bitrate mismatch
authorMike Bradeen <mbradeen@sangoma.com>
Wed, 21 Aug 2024 16:11:31 +0000 (10:11 -0600)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 12 Sep 2024 18:45:46 +0000 (18:45 +0000)
commitfe46b20fbc127b143fcb70ef81d9359b03bbbcec
tree22fede116445104114d22d46f22f2f0554e3a7ce
parent81f2d13e206ba5875fea1fc1972c2f207e3a0370
res_pjsip_sdp_rtp: Use negotiated DTMF Payload types on bitrate mismatch

When Asterisk sends an offer to Bob that includes 48K and 8K codecs with
matching 4733 offers, Bob may want to use the 48K audio codec but can not
accept 48K digits and so negotiates for a mixed set.

Asterisk will now check Bob's offer to make sure Bob has indicated this is
acceptible and if not, will use Bob's preference.

Fixes: #847
(cherry picked from commit a8567b92f09e775f010b61a08f1cc58d8daaa302)
include/asterisk/rtp_engine.h
main/rtp_engine.c
res/res_pjsip_sdp_rtp.c
res/res_rtp_asterisk.c