From a0a43ab1eeef126031c6767b868d58ee7a5612ae Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Tue, 18 Aug 2015 10:35:24 -0400 Subject: [PATCH] FS-7971 : adv_rm_rate (telephone-event and CN) --- src/switch_core_media.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 9c85b6e937..01fcd5b1b4 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -4341,7 +4341,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s } if (!strcasecmp(rm_encoding, "telephone-event")) { - if (!best_te || map->rm_rate == a_engine->cur_payload_map->rm_rate) { + if (!best_te || map->rm_rate == a_engine->cur_payload_map->adv_rm_rate) { best_te = (switch_payload_t) map->rm_pt; best_te_rate = map->rm_rate; switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "Set telephone-event payload to %u@%lu\n", best_te, best_te_rate); @@ -4351,7 +4351,7 @@ SWITCH_DECLARE(uint8_t) switch_core_media_negotiate_sdp(switch_core_session_t *s if (!switch_media_handle_test_media_flag(smh, SCMF_SUPPRESS_CNG) && !strcasecmp(rm_encoding, "CN")) { - if (!cng_pt || map->rm_rate == a_engine->cur_payload_map->rm_rate) { + if (!cng_pt || map->rm_rate == a_engine->cur_payload_map->adv_rm_rate) { cng_pt = (switch_payload_t) map->rm_pt; cng_rate = map->rm_rate;