]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7500: add to last commit
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 29 Jan 2015 23:39:14 +0000 (17:39 -0600)
committerMichael Jerris <mike@jerris.com>
Thu, 28 May 2015 17:46:56 +0000 (12:46 -0500)
src/switch_core_media.c

index 3ef020dbd29a3b6a6409b677fb9d218a737c7469..2050bf2fb01cea9b6745e507e42bf86e7fb1f3af 100644 (file)
@@ -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;
                                }