This commit is contained in:
mahald 2025-01-21 00:17:22 +00:00 committed by GitHub
commit dd5eb7795b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -10424,6 +10424,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;