From 8d2c6b354e12db902a4a9b32f89434a201343e67 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Mar 2014 20:24:16 +0500 Subject: [PATCH] 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....... --- src/switch_core_media.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 3c3e267aaa..e7c19aed67 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -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;