mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
res_pjsip_sdp_rtp: Add support for default/mismatched 8K RFC 4733/2833 digits
After change made in624f509
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 commitd59f1a0c44
)
This commit is contained in:
committed by
Asterisk Development Team
parent
56b0c48afe
commit
e86bd1d97d
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user