]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
always start payloads at 102 to avoid webrtc funk
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 1 Aug 2014 19:59:30 +0000 (00:59 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 1 Aug 2014 19:59:44 +0000 (00:59 +0500)
src/switch_core_media.c

index b04df85757e070ff5eaa4d12e7ced6b26587c58e..45fc724b9982df2f93ee1cbca0b7141964c1e163 100644 (file)
@@ -6192,11 +6192,9 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
        if (!smh->payload_space) {
                int i;
 
-               if (switch_channel_test_flag(session->channel, CF_WEBRTC)) {
-                       smh->payload_space = 102;
-               } else {
-                       smh->payload_space = 98;
-               }
+               /* it could be 98 but chrome reserves 98 and 99 for some internal stuff even though they should not.  
+                  Everyone expects dtmf to be at 101 and Its not worth the trouble so we'll start at 102 */
+               smh->payload_space = 102;
 
                for (i = 0; i < smh->mparams->num_codecs; i++) {
                        smh->ianacodes[i] = smh->codecs[i]->ianacode;