Compare commits
2 Commits
dd5eb7795b
...
fa0acd66a0
Author | SHA1 | Date |
---|---|---|
mahald | fa0acd66a0 | |
mahald | 1cabda64e2 |
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue