Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
94c11e41
提交
94c11e41
authored
2月 04, 2016
作者:
Chris Rienzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-8806 Change group_confirm_cancel_timeout to apply only to the legs that answer the call.
上级
a0841e86
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
+6
-7
switch_ivr_originate.c
src/switch_ivr_originate.c
+6
-7
没有找到文件。
src/switch_ivr_originate.c
浏览文件 @
94c11e41
...
@@ -117,7 +117,7 @@ typedef struct {
...
@@ -117,7 +117,7 @@ typedef struct {
uint8_t
ignore_ring_ready
;
uint8_t
ignore_ring_ready
;
int
monitor_early_media_ring_count
;
int
monitor_early_media_ring_count
;
int
monitor_early_media_ring_total
;
int
monitor_early_media_ring_total
;
in
t
cancel_timeout
;
switch_bool_
t
cancel_timeout
;
int
continue_on_timeout
;
int
continue_on_timeout
;
int
ringback_ok
;
int
ringback_ok
;
int
sending_ringback
;
int
sending_ringback
;
...
@@ -262,9 +262,6 @@ static int check_per_channel_timeouts(originate_global_t *oglobals,
...
@@ -262,9 +262,6 @@ static int check_per_channel_timeouts(originate_global_t *oglobals,
time_t
elapsed
=
switch_epoch_time_now
(
NULL
)
-
start
;
time_t
elapsed
=
switch_epoch_time_now
(
NULL
)
-
start
;
if
(
oglobals
->
cancel_timeout
>
0
)
{
return
0
;
}
for
(
i
=
0
;
i
<
max
;
i
++
)
{
for
(
i
=
0
;
i
<
max
;
i
++
)
{
if
(
originate_status
[
i
].
peer_channel
&&
switch_channel_get_state
(
originate_status
[
i
].
peer_channel
)
!=
CS_DESTROY
&&
if
(
originate_status
[
i
].
peer_channel
&&
switch_channel_get_state
(
originate_status
[
i
].
peer_channel
)
!=
CS_DESTROY
&&
switch_channel_get_state
(
originate_status
[
i
].
peer_channel
)
!=
CS_REPORTING
)
{
switch_channel_get_state
(
originate_status
[
i
].
peer_channel
)
!=
CS_REPORTING
)
{
...
@@ -738,8 +735,10 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
...
@@ -738,8 +735,10 @@ static uint8_t check_channel_status(originate_global_t *oglobals, originate_stat
if
(
!
zstr
(
oglobals
->
key
))
{
if
(
!
zstr
(
oglobals
->
key
))
{
struct
key_collect
*
collect
;
struct
key_collect
*
collect
;
if
(
oglobals
->
cancel_timeout
<
0
)
{
if
(
oglobals
->
cancel_timeout
==
SWITCH_TRUE
)
{
oglobals
->
cancel_timeout
=
1
;
/* cancel timeout for this leg only */
originate_status
[
i
].
per_channel_progress_timelimit_sec
=
0
;
originate_status
[
i
].
per_channel_timelimit_sec
=
0
;
}
}
if
((
collect
=
switch_core_session_alloc
(
originate_status
[
i
].
peer_session
,
sizeof
(
*
collect
))))
{
if
((
collect
=
switch_core_session_alloc
(
originate_status
[
i
].
peer_session
,
sizeof
(
*
collect
))))
{
...
@@ -2277,7 +2276,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
...
@@ -2277,7 +2276,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
#endif
#endif
if
(
switch_true
(
switch_event_get_header
(
var_event
,
"group_confirm_cancel_timeout"
)))
{
if
(
switch_true
(
switch_event_get_header
(
var_event
,
"group_confirm_cancel_timeout"
)))
{
oglobals
.
cancel_timeout
=
-
1
;
oglobals
.
cancel_timeout
=
SWITCH_TRUE
;
}
}
if
((
var
=
switch_event_get_header
(
var_event
,
"group_confirm_key"
)))
{
if
((
var
=
switch_event_get_header
(
var_event
,
"group_confirm_key"
)))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论