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 ac9c510d99)
This commit is contained in:
Mike Bradeen
2024-06-21 16:56:11 -06:00
committed by Asterisk Development Team
parent 1b702a396b
commit 9fc2ada28c
3 changed files with 33 additions and 7 deletions

View File

@@ -106,6 +106,9 @@ extern "C" {
*/
#define MAX_CHANNEL_ID 152
/*!< DTMF samples per second */
#define DEFAULT_DTMF_SAMPLE_RATE_MS 8000
struct ast_rtp_instance;
struct ast_rtp_glue;