mod_callcenter: Default the level to 0 since the new tier system will wait x…

mod_callcenter: Default the level to 0 since the new tier system will wait x second at level 1... just level 0 that will ring agent right away (if set to do so)
上级 86c9bed7
......@@ -25,7 +25,7 @@
<!--<agent name="1000@default" type="callback" contact="[call_timeout=10]user/1000@default" status="Available" max-no-answer="3" wrap-up-time="10" reject-delay-time="10" busy-delay-time="60" />-->
</agents>
<tiers>
<!-- if no level or position is provided, they will default to 1. You should do this to keep db value on restart -->
<!-- if no level or position is provided, they will default to 0. You should do this to keep db value on restart -->
<!-- <tier agent="1000@default" queue="support@default" level="0" position="1"/> -->
</tiers>
......
......@@ -1243,7 +1243,7 @@ static switch_status_t load_config(void)
cc_tier_add(queue_name, agent, cc_tier_state2str(CC_TIER_STATE_READY), atoi(level), atoi(position));
} else {
/* default to level 1 and position 1 within the level */
cc_tier_add(queue_name, agent, cc_tier_state2str(CC_TIER_STATE_READY), 1, 1);
cc_tier_add(queue_name, agent, cc_tier_state2str(CC_TIER_STATE_READY), 0, 1);
}
} else {
if (level) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论