]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: set default bandwidth to 1mb
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 24 Apr 2015 16:17:42 +0000 (11:17 -0500)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:47:25 +0000 (12:47 -0500)
src/switch_core_media.c

index f475da1a04fab859582148f8d506d87a5f053409..7ed3543d0df17a0a41a4d6f3c46b76035431e833 100644 (file)
@@ -2557,6 +2557,10 @@ static void switch_core_session_parse_codec_settings(switch_core_session_t *sess
                        if (!bwv) {
                                bwv = switch_channel_get_variable(session->channel, "rtp_video_max_bandwidth_out");
                        }
+
+                       if (!bwv) {
+                               bwv = "1mb";
+                       }
                        
                        engine->codec_settings.video.bandwidth = switch_parse_bandwidth_string(bwv);
                }
@@ -7701,6 +7705,10 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess
                                        vbw = switch_channel_get_variable(smh->session->channel, "rtp_video_max_bandwidth_in");
                                }
 
+                               if (!vbw) {
+                                       vbw = "1mb";
+                               }
+
                                bw = switch_parse_bandwidth_string(vbw);
                                
                                if (bw > 0) {