mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-06 10:26:41 +00:00
FS-9474 #resolve [Add variables to set initial volume on mod_conference]
This commit is contained in:
parent
bf3b0ca3d1
commit
1f1e372826
@ -742,6 +742,22 @@ switch_status_t conference_member_add(conference_obj_t *conference, conference_m
|
|||||||
|
|
||||||
conference_video_check_avatar(member, SWITCH_FALSE);
|
conference_video_check_avatar(member, SWITCH_FALSE);
|
||||||
|
|
||||||
|
if ((var = switch_channel_get_variable_dup(member->channel, "conference_join_volume_in", SWITCH_FALSE, -1))) {
|
||||||
|
uint32_t id = atoi(var) - 1;
|
||||||
|
|
||||||
|
if (id > -5 && id < 5) {
|
||||||
|
member->volume_in_level = id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ((var = switch_channel_get_variable_dup(member->channel, "conference_join_volume_out", SWITCH_FALSE, -1))) {
|
||||||
|
uint32_t id = atoi(var) - 1;
|
||||||
|
|
||||||
|
if (id > -5 && id < 5) {
|
||||||
|
member->volume_out_level = id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ((var = switch_channel_get_variable_dup(member->channel, "video_initial_canvas", SWITCH_FALSE, -1))) {
|
if ((var = switch_channel_get_variable_dup(member->channel, "video_initial_canvas", SWITCH_FALSE, -1))) {
|
||||||
uint32_t id = atoi(var) - 1;
|
uint32_t id = atoi(var) - 1;
|
||||||
if (id < conference->canvas_count) {
|
if (id < conference->canvas_count) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user