mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-15 00:22:35 +00:00
FS-8114 #resolve [Opus and telephone event payload types collide on REFER]
This commit is contained in:
parent
dbd7db370d
commit
b2f97336e8
@ -7359,6 +7359,15 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
|
||||
smh->dtmf_ianacodes[i] = smh->mparams->te;
|
||||
smh->cng_ianacodes[i] = smh->mparams->cng_pt;
|
||||
} else {
|
||||
int j = 0;
|
||||
|
||||
for (j = 0; j < smh->mparams->num_codecs; j++) {
|
||||
if (smh->ianacodes[i] == smh->payload_space) {
|
||||
smh->payload_space++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
smh->dtmf_ianacodes[i] = (switch_payload_t)smh->payload_space++;
|
||||
smh->cng_ianacodes[i] = (switch_payload_t)smh->payload_space++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user