提交 8a8b70b7 authored 作者: Travis Cross's avatar Travis Cross

comment cleanup

上级 7cb09519
...@@ -2530,17 +2530,17 @@ SWITCH_STANDARD_APP(callcenter_function) ...@@ -2530,17 +2530,17 @@ SWITCH_STANDARD_APP(callcenter_function)
} }
/* Make sure that an agent was not found, since we could have break out before settign it previously */ /* Make sure an agent was found, as we might break above without setting it */
if (!agent_found && (p = switch_channel_get_variable(member_channel, "cc_agent_found"))) { if (!agent_found && (p = switch_channel_get_variable(member_channel, "cc_agent_found"))) {
agent_found = switch_true(p); agent_found = switch_true(p);
} }
/* Stop Member Thread */ /* Stop member thread */
if (h) { if (h) {
h->running = 0; h->running = 0;
} }
/* Check if we were removed be cause FS Core(BREAK) asked us too */ /* Check if we were removed because FS Core(BREAK) asked us to */
if (h->member_cancel_reason == CC_MEMBER_CANCEL_REASON_NONE && !agent_found) { if (h->member_cancel_reason == CC_MEMBER_CANCEL_REASON_NONE && !agent_found) {
h->member_cancel_reason = CC_MEMBER_CANCEL_REASON_BREAK_OUT; h->member_cancel_reason = CC_MEMBER_CANCEL_REASON_BREAK_OUT;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论