Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
df7a4fc9
提交
df7a4fc9
authored
7月 10, 2013
作者:
Raymond Chandler
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-4123 --resolve slightly modified patch applied
上级
6240d521
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
25 行增加
和
0 行删除
+25
-0
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+25
-0
没有找到文件。
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
df7a4fc9
...
@@ -7543,6 +7543,8 @@ SWITCH_STANDARD_APP(conference_function)
...
@@ -7543,6 +7543,8 @@ SWITCH_STANDARD_APP(conference_function)
/* if the conference exists, get the pointer to it */
/* if the conference exists, get the pointer to it */
if (!conference) {
if (!conference) {
const char *max_members_str;
const char *max_members_str;
const char *endconf_grace_time_str;
const char *auto_record_str;
/* couldn't find the conference, create one */
/* couldn't find the conference, create one */
conference = conference_new(conf_name, xml_cfg, session, NULL);
conference = conference_new(conf_name, xml_cfg, session, NULL);
...
@@ -7562,11 +7564,19 @@ SWITCH_STANDARD_APP(conference_function)
...
@@ -7562,11 +7564,19 @@ SWITCH_STANDARD_APP(conference_function)
if (zstr(conference->moh_sound)) {
if (zstr(conference->moh_sound)) {
conference->moh_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_moh_sound"));
conference->moh_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_moh_sound"));
}
}
/* Set perpetual-sound from variable if not set */
/* Set perpetual-sound from variable if not set */
if (zstr(conference->perpetual_sound)) {
if (zstr(conference->perpetual_sound)) {
conference->perpetual_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_perpetual_sound"));
conference->perpetual_sound = switch_core_strdup(conference->pool, switch_channel_get_variable(channel, "conference_perpetual_sound"));
}
}
/* Override auto-record profile parameter from variable */
if (!zstr(auto_record_str = switch_channel_get_variable(channel, "conference_auto_record"))) {
conference->auto_record = switch_core_strdup(conference->pool, auto_record_str);
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
"conference_auto_record set from variable to %s\n", auto_record_str);
}
/* Set the minimum number of members (once you go above it you cannot go below it) */
/* Set the minimum number of members (once you go above it you cannot go below it) */
conference->min = 1;
conference->min = 1;
...
@@ -7583,6 +7593,21 @@ SWITCH_STANDARD_APP(conference_function)
...
@@ -7583,6 +7593,21 @@ SWITCH_STANDARD_APP(conference_function)
}
}
}
}
/* check for variable to override endconf_grace_time profile value */
if (!zstr(endconf_grace_time_str = switch_channel_get_variable(channel, "conference_endconf_grace_time"))) {
uint32_t grace_time_val;
errno = 0; /* sanity first */
grace_time_val = strtol(endconf_grace_time_str, NULL, 0); /* base 0 lets 0x... for hex 0... for octal and base 10 otherwise through */
if (errno == ERANGE || errno == EINVAL || (int32_t) grace_time_val < 0) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR,
"conference_endconf_grace_time variable %s is invalid, not setting a time limit\n", endconf_grace_time_str);
} else {
conference->endconf_grace_time = grace_time_val;
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG,
"conference endconf_grace_time set from variable to %d\n", grace_time_val);
}
}
/* Indicate the conference is dynamic */
/* Indicate the conference is dynamic */
switch_set_flag_locked(conference, CFLAG_DYNAMIC);
switch_set_flag_locked(conference, CFLAG_DYNAMIC);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论