提交 77dcd007 authored 作者: Italo Rossi's avatar Italo Rossi

FS-10660: [mod_callcenter] Park agent session before play cc_warning_tone -…

FS-10660: [mod_callcenter] Park agent session before play cc_warning_tone - avoid double playback causing distorted audio
上级 a88bc673
...@@ -1779,6 +1779,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa ...@@ -1779,6 +1779,8 @@ static void *SWITCH_THREAD_FUNC outbound_agent_thread_run(switch_thread_t *threa
/* Playback this to the agent */ /* Playback this to the agent */
if (cc_warning_tone) { if (cc_warning_tone) {
switch_ivr_park_session(agent_session);
switch_channel_wait_for_flag(agent_channel, CF_PARK, SWITCH_TRUE, 5000, NULL);
playback_array(agent_session, cc_warning_tone); playback_array(agent_session, cc_warning_tone);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论