According to https://code.google.com/p/webrtc/issues/detail?id=2768 ; The Chrome WebRTC engine reserves payload 98 and 99, IKR? So, to avoid taking a nasty spill down the stairs and subjecting ourselves to further school absences, we'll just start our payload space at 102 when making WebRTC calls.......

This commit is contained in:
Anthony Minessale 2014-03-07 20:24:16 +05:00
parent f9f36993e8
commit 8d2c6b354e
1 changed files with 5 additions and 2 deletions

View File

@ -6090,8 +6090,11 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
if (!smh->payload_space) {
int i;
smh->payload_space = 98;
if (switch_channel_test_flag(session->channel, CF_WEBRTC)) {
smh->payload_space = 102;
} else {
smh->payload_space = 98;
}
for (i = 0; i < smh->mparams->num_codecs; i++) {
smh->ianacodes[i] = smh->codecs[i]->ianacode;