]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
wip
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Jan 2013 15:34:27 +0000 (09:34 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 1 Apr 2013 02:27:17 +0000 (21:27 -0500)
src/switch_core_media.c

index b99f9024b59d08d67abf8eac050490d8a4ab5198..47876e4be94f144212a9dd71813d6f81d6d48264 100644 (file)
@@ -4354,7 +4354,8 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
                                        "v=0\n"
                                        "o=%s %010u %010u IN %s %s\n"
                                        "s=%s\n"
-                                       "c=IN %s %s\n" "t=0 0\n"
+                                       "c=IN %s %s\n" 
+                                       "t=0 0\n"
                                        "%s",
                                        username, smh->owner_id, smh->session_id, family, ip, username, family, ip, srbuf);
 
@@ -4382,6 +4383,10 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
                
                switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "\n");
 
+               if (switch_channel_test_flag(session->channel, CF_WEBRTC)) {
+                       switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "c=IN %s %s\n", family, ip);
+               }
+
 
                if (smh->mparams->rtcp_audio_interval_msec) {
                        switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "a=rtcp:%d IN %s %s\n", port + 1, family, ip);