Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
29d4e7e6
提交
29d4e7e6
authored
2月 05, 2014
作者:
Anthony Minessale
提交者:
Chris Rienzo
2月 05, 2014
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-6181 --resolve
上级
795718c1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
17 行增加
和
4 行删除
+17
-4
mod_conference.c
src/mod/applications/mod_conference/mod_conference.c
+17
-4
没有找到文件。
src/mod/applications/mod_conference/mod_conference.c
浏览文件 @
29d4e7e6
/*
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-201
2
, Anthony Minessale II <anthm@freeswitch.org>
* Copyright (C) 2005-201
4
, Anthony Minessale II <anthm@freeswitch.org>
*
*
* Version: MPL 1.1
* Version: MPL 1.1
*
*
...
@@ -377,6 +377,7 @@ typedef struct conference_obj {
...
@@ -377,6 +377,7 @@ typedef struct conference_obj {
int
comfort_noise_level
;
int
comfort_noise_level
;
int
auto_recording
;
int
auto_recording
;
int
record_count
;
int
record_count
;
int
min_recording_participants
;
int
video_running
;
int
video_running
;
int
ivr_dtmf_timeout
;
int
ivr_dtmf_timeout
;
int
ivr_input_timeout
;
int
ivr_input_timeout
;
...
@@ -2635,8 +2636,8 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
...
@@ -2635,8 +2636,8 @@ static void *SWITCH_THREAD_FUNC conference_thread_run(switch_thread_t *thread, v
}
}
}
}
/* Start
recording if there's more than one participant
. */
/* Start
auto recording if there's the minimum number of required participants
. */
if
(
conference
->
auto_record
&&
!
conference
->
auto_recording
&&
conference
->
count
>
1
)
{
if
(
conference
->
auto_record
&&
!
conference
->
auto_recording
&&
(
conference
->
count
>=
conference
->
min_recording_participants
)
)
{
conference
->
auto_recording
++
;
conference
->
auto_recording
++
;
conference
->
record_count
++
;
conference
->
record_count
++
;
imember
=
conference
->
members
;
imember
=
conference
->
members
;
...
@@ -3904,7 +3905,8 @@ static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t *thread, v
...
@@ -3904,7 +3905,8 @@ static void *SWITCH_THREAD_FUNC conference_loop_input(switch_thread_t *thread, v
/* skip frames that are not actual media or when we are muted or silent */
/* skip frames that are not actual media or when we are muted or silent */
if
((
switch_test_flag
(
member
,
MFLAG_TALKING
)
||
member
->
energy_level
==
0
||
switch_test_flag
(
member
->
conference
,
CFLAG_AUDIO_ALWAYS
))
if
((
switch_test_flag
(
member
,
MFLAG_TALKING
)
||
member
->
energy_level
==
0
||
switch_test_flag
(
member
->
conference
,
CFLAG_AUDIO_ALWAYS
))
&&
switch_test_flag
(
member
,
MFLAG_CAN_SPEAK
)
&&
!
switch_test_flag
(
member
->
conference
,
CFLAG_WAIT_MOD
)
&&
member
->
conference
->
count
>
1
)
{
&&
switch_test_flag
(
member
,
MFLAG_CAN_SPEAK
)
&&
!
switch_test_flag
(
member
->
conference
,
CFLAG_WAIT_MOD
)
&&
(
member
->
conference
->
count
>
1
||
member
->
conference
->
record_count
>=
member
->
conference
->
min_recording_participants
))
{
switch_audio_resampler_t
*
read_resampler
=
member
->
read_resampler
;
switch_audio_resampler_t
*
read_resampler
=
member
->
read_resampler
;
void
*
data
;
void
*
data
;
uint32_t
datalen
;
uint32_t
datalen
;
...
@@ -8902,6 +8904,7 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
...
@@ -8902,6 +8904,7 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
char
*
suppress_events
=
NULL
;
char
*
suppress_events
=
NULL
;
char
*
verbose_events
=
NULL
;
char
*
verbose_events
=
NULL
;
char
*
auto_record
=
NULL
;
char
*
auto_record
=
NULL
;
int
min_recording_participants
=
2
;
char
*
conference_log_dir
=
NULL
;
char
*
conference_log_dir
=
NULL
;
char
*
cdr_event_mode
=
NULL
;
char
*
cdr_event_mode
=
NULL
;
char
*
terminate_on_silence
=
NULL
;
char
*
terminate_on_silence
=
NULL
;
...
@@ -9121,6 +9124,14 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
...
@@ -9121,6 +9124,14 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
verbose_events
=
val
;
verbose_events
=
val
;
}
else
if
(
!
strcasecmp
(
var
,
"auto-record"
)
&&
!
zstr
(
val
))
{
}
else
if
(
!
strcasecmp
(
var
,
"auto-record"
)
&&
!
zstr
(
val
))
{
auto_record
=
val
;
auto_record
=
val
;
}
else
if
(
!
strcasecmp
(
var
,
"min-required-recording-participants"
)
&&
!
zstr
(
val
))
{
if
(
!
strcmp
(
val
,
"1"
))
{
min_recording_participants
=
1
;
}
else
if
(
!
strcmp
(
val
,
"2"
))
{
min_recording_participants
=
2
;
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"min-required-recording-participants is invalid, leaving set to %d
\n
"
,
min_recording_participants
);
}
}
else
if
(
!
strcasecmp
(
var
,
"terminate-on-silence"
)
&&
!
zstr
(
val
))
{
}
else
if
(
!
strcasecmp
(
var
,
"terminate-on-silence"
)
&&
!
zstr
(
val
))
{
terminate_on_silence
=
val
;
terminate_on_silence
=
val
;
}
else
if
(
!
strcasecmp
(
var
,
"endconf-grace-time"
)
&&
!
zstr
(
val
))
{
}
else
if
(
!
strcasecmp
(
var
,
"endconf-grace-time"
)
&&
!
zstr
(
val
))
{
...
@@ -9373,6 +9384,8 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
...
@@ -9373,6 +9384,8 @@ static conference_obj_t *conference_new(char *name, conf_xml_cfg_t cfg, switch_c
conference
->
auto_record
=
switch_core_strdup
(
conference
->
pool
,
auto_record
);
conference
->
auto_record
=
switch_core_strdup
(
conference
->
pool
,
auto_record
);
}
}
conference
->
min_recording_participants
=
min_recording_participants
;
if
(
!
zstr
(
desc
))
{
if
(
!
zstr
(
desc
))
{
conference
->
desc
=
switch_core_strdup
(
conference
->
pool
,
desc
);
conference
->
desc
=
switch_core_strdup
(
conference
->
pool
,
desc
);
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论