FS-7500: set default bandwidth to 1mb

This commit is contained in:
Anthony Minessale 2015-04-24 11:17:42 -05:00 committed by Michael Jerris
parent 8d30c18c5a
commit 22a4a4dd7e
1 changed files with 8 additions and 0 deletions

View 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) {