]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
mod_callcenter: Default the level to 0 since the new tier system will wait x second...
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 26 Aug 2010 02:00:15 +0000 (22:00 -0400)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 26 Aug 2010 02:00:15 +0000 (22:00 -0400)
conf/autoload_configs/callcenter.conf.xml
src/mod/applications/mod_callcenter/mod_callcenter.c

index 4da0c26b021fa30f7d51e9104a99e64ee62cf1b9..2e93a4e753c5ff89a22d151d3ee9931f79cfacd8 100644 (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>
 
index 44a5622d3ef7a08fba8527c94e92ce0c921e5dd6..49f30de4ac461a3a7b5b0d7ecb0f4a77a497e4a4 100644 (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) {