From: Anthony Minessale Date: Thu, 29 Jan 2015 23:39:14 +0000 (-0600) Subject: FS-7500: add to last commit X-Git-Tag: v1.6.2~614^2~460 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1422158271d04ac64c1865d40f9c8d1528b275a9;p=thirdparty%2Ffreeswitch.git FS-7500: add to last commit --- diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 3ef020dbd2..2050bf2fb0 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -7287,7 +7287,12 @@ SWITCH_DECLARE(void) switch_core_media_gen_local_sdp(switch_core_session_t *sess } - if ((vbw = switch_channel_get_variable(smh->session->channel, "rtp_video_max_bandwidth"))) { + if (!(vbw = switch_channel_get_variable(smh->session->channel, "rtp_video_max_bandwidth"))) { + vbw = switch_channel_get_variable(smh->session->channel, "rtp_video_max_bandwidth_in"); + } + + + if (vbw) { int v = atoi(vbw); bw = v; }