}
switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "\r\n");
+
+
+ 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) {
+ vbw = "1mb";
+ }
+
+ bw = switch_parse_bandwidth_string(vbw);
+
+ if (bw > 0) {
+ switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "b=AS:%d\r\n", bw);
+ //switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "b=TIAS:%d\r\n", bw);
+ }
+
+
if (v_engine->codec_negotiated) {
const char *of;
}
}
-
- 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) {
- vbw = "1mb";
- }
-
- bw = switch_parse_bandwidth_string(vbw);
-
- if (bw > 0) {
- switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "b=AS:%d\r\n", bw);
- //switch_snprintf(buf + strlen(buf), SDPBUFLEN - strlen(buf), "b=TIAS:%d\r\n", bw);
- }
-
if (sdp_type == SDP_TYPE_REQUEST) {
fir++;
pli++;