Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
6fbfff0f
提交
6fbfff0f
authored
4月 22, 2011
作者:
Marc Olivier Chouinard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
mod_callcenter: Should resolve problem when agent transfered a call to another queue. FS-2888
上级
366f7ca6
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
4 行删除
+9
-4
mod_callcenter.c
src/mod/applications/mod_callcenter/mod_callcenter.c
+9
-4
没有找到文件。
src/mod/applications/mod_callcenter/mod_callcenter.c
浏览文件 @
6fbfff0f
...
...
@@ -1563,9 +1563,11 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
h
->
agent_name
,
h
->
member_cid_name
,
h
->
member_cid_number
,
h
->
queue_name
,
(
h
->
record_template
?
" (Recorded)"
:
""
));
switch_ivr_uuid_bridge
(
h
->
member_session_uuid
,
switch_core_session_get_uuid
(
agent_session
));
/* This is used for the waiting caller to quit waiting for a agent */
switch_channel_set_variable
(
member_channel
,
"cc_agent_uuid"
,
agent_uuid
);
/* This is used for the waiting caller to quit waiting for a agent */
switch_channel_set_variable
(
member_channel
,
"cc_agent_found"
,
"true"
);
/* Wait until the member hangup or the agent hangup. This will quit also if the agent transfer the call */
while
(
switch_channel_up
(
member_channel
)
&&
switch_channel_up
(
agent_channel
)
&&
globals
.
running
)
{
switch_yield
(
100000
);
...
...
@@ -2320,9 +2322,9 @@ SWITCH_STANDARD_APP(callcenter_function)
switch_event_t
*
event
;
switch_time_t
t_member_called
=
switch_epoch_time_now
(
NULL
);
long
abandoned_epoch
=
0
;
const
char
*
agent_uuid
=
NULL
;
switch_uuid_t
smember_uuid
;
char
member_uuid
[
SWITCH_UUID_FORMATTED_LENGTH
+
1
]
=
""
;
switch_bool_t
agent_found
=
SWITCH_FALSE
;
if
(
!
zstr
(
data
))
{
mydata
=
switch_core_session_strdup
(
member_session
,
data
);
...
...
@@ -2479,6 +2481,7 @@ SWITCH_STANDARD_APP(callcenter_function)
while
(
switch_channel_ready
(
member_channel
))
{
switch_input_args_t
args
=
{
0
};
struct
moh_dtmf_helper
ht
;
const
char
*
p
;
ht
.
dtmf
=
'\0'
;
args
.
input_callback
=
moh_on_dtmf
;
...
...
@@ -2486,7 +2489,7 @@ SWITCH_STANDARD_APP(callcenter_function)
args
.
buflen
=
sizeof
(
h
);
/* An agent was found, time to exit and let the bridge do it job */
if
((
agent_uuid
=
switch_channel_get_variable
(
member_channel
,
"cc_agent_uuid"
)))
{
if
((
p
=
switch_channel_get_variable
(
member_channel
,
"cc_agent_found"
))
&&
(
agent_found
=
switch_true
(
p
)))
{
break
;
}
/* If the member thread set a different reason, we monitor it so we can quit the wait */
...
...
@@ -2517,10 +2520,12 @@ SWITCH_STANDARD_APP(callcenter_function)
}
/* Check if we were removed be cause FS Core(BREAK) asked us too */
if
(
h
->
member_cancel_reason
==
CC_MEMBER_CANCEL_REASON_NONE
&&
!
switch_channel_get_variable
(
member_channel
,
"cc_agent_uuid"
))
{
if
(
h
->
member_cancel_reason
==
CC_MEMBER_CANCEL_REASON_NONE
&&
!
agent_found
)
{
h
->
member_cancel_reason
=
CC_MEMBER_CANCEL_REASON_BREAK_OUT
;
}
switch_channel_set_variable
(
member_channel
,
"cc_agent_found"
,
NULL
);
/* Canceled for some reason */
if
(
!
switch_channel_up
(
member_channel
)
||
h
->
member_cancel_reason
!=
CC_MEMBER_CANCEL_REASON_NONE
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
member_session
),
SWITCH_LOG_DEBUG
,
"Member %s <%s> abandoned waiting in queue %s
\n
"
,
switch_str_nil
(
switch_channel_get_variable
(
member_channel
,
"caller_id_name"
)),
switch_str_nil
(
switch_channel_get_variable
(
member_channel
,
"caller_id_number"
)),
queue_name
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论