mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-07-31 14:18:17 +00:00
FS-9475 #resolve [Video bandwidth not conveyed in SDP for verto]
This commit is contained in:
parent
9e931ab941
commit
47cbd2f628
@ -3465,7 +3465,9 @@ static switch_bool_t verto__invite_func(const char *method, cJSON *params, jsock
|
|||||||
bwval = 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);
|
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;
|
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);
|
switch_channel_set_variable_printf(channel, "rtp_video_max_bandwidth_out", "%d", bwval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user