From: Anthony Minessale Date: Thu, 1 Sep 2016 22:18:26 +0000 (-0500) Subject: FS-9475 #resolve [Video bandwidth not conveyed in SDP for verto] X-Git-Tag: v1.6.11~9^2~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47cbd2f62838d434bf65dd247243a1389427d2b2;p=thirdparty%2Ffreeswitch.git FS-9475 #resolve [Video bandwidth not conveyed in SDP for verto] --- diff --git a/src/mod/endpoints/mod_verto/mod_verto.c b/src/mod/endpoints/mod_verto/mod_verto.c index ca2153eefe..816d65f301 100644 --- a/src/mod/endpoints/mod_verto/mod_verto.c +++ b/src/mod/endpoints/mod_verto/mod_verto.c @@ -3464,8 +3464,10 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock } else if (bandwidth->valueint) { bwval = bandwidth->valueint; } - - if (bwval <= 0 || (core_bw && bwval < core_bw)) { + + if (bwval < 0) bwval = 0; + + if (core_bw && bwval && bwval < core_bw) { switch_channel_set_variable_printf(channel, "rtp_video_max_bandwidth_in", "%d", bwval); } } @@ -3484,7 +3486,9 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock bwval = bandwidth->valueint; } - if (bwval <= 0 || (core_bw && bwval < core_bw)) { + if (bwval < 0) bwval = 0; + + if (core_bw && bwval && bwval < core_bw) { switch_channel_set_variable_printf(channel, "rtp_video_max_bandwidth_out", "%d", bwval); } }