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)

This commit is contained in:
Marc Olivier Chouinard 2010-08-25 22:00:15 -04:00
parent 86c9bed758
commit 6558276a83
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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) {