diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 58ef94a53e..7738df69e6 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -10426,6 +10426,12 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess for (i = 0; i < smh->num_rates; i++) { if (smh->rates[i] == 8000 || smh->num_rates == 1) { smh->dtmf_ianacodes[i] = smh->mparams->te; + + val = switch_channel_get_variable(session->channel, "rtp_2833_payload"); + if (!zstr(val)) { + smh->dtmf_ianacodes[i] = atoi(val); + } + smh->cng_ianacodes[i] = smh->mparams->cng_pt; } else { int j = 0;