[Freeswitch-users] Mod_callcenter reload xml error

asilva at wirelessmundi.com asilva at wirelessmundi.com
Wed Feb 16 03:22:17 MSK 2011


Hi,

Is it possible to reload mod_callcenter to force it to reload / reset the
configuration form the XML and synchronized it to callcenter database. 
I'm using the latest git and i couldn't find any option that allows me to
do that...

My idea is to add / or remove queues or even change some parameters, or
add more agents to the xml and with a single command reload the new
configuration.  
I notice that i have 

callcenter_config queue load | unload   
callcenter_config agent add | del  

is very painful to add or remove one element by one when i remove it form
the xml. 

I tried to reload the mod_callcenter:
# reload mod_callcenter
R: 
+OK module unloaded
+OK Reloading XML
+OK module loaded

[...]
2011-02-16 01:34:38.155841 [DEBUG] mod_callcenter.c:1045 Updated Agent
cc1_queue1_agent1 set contact = [call_timeout=30]loopback/101/local
2011-02-16 01:34:38.156843 [DEBUG] mod_callcenter.c:1045 Updated Agent
cc1_queue1_agent1 set status = Available
2011-02-16 01:34:38.157845 [DEBUG] mod_callcenter.c:1045 Updated Agent
cc1_queue1_agent1 set wrap_up_time = 40
2011-02-16 01:34:38.159849 [DEBUG] mod_callcenter.c:1045 Updated Agent
cc1_queue1_agent1 set type = callback
2011-02-16 01:34:38.161865 [DEBUG] mod_callcenter.c:1166 Updated tier:
Agent cc1_queue1_agent1 in Queue cc1_queue1 set level = 1
2011-02-16 01:34:38.163868 [DEBUG] mod_callcenter.c:1166 Updated tier:
Agent cc1_queue1_agent1 in Queue cc1_queue1 set position = 5


Seams to work, in the messages i see only the agents that are defined in
the XML, but when i do:

# callcenter_config agent list (i still have the previous agents that
where defined)

freeswitch at internal> callcenter_config agent list
name|system|uuid|type|contact|status|state|max_no_answer|wrap_up_time|reject_delay_time|busy_delay_time|last_bridge_start|last_bridge_end|last_offered_call|last_status_change|no_answer_count|calls_answered|talk_time|ready_time
cc1_queue1_agent1|single_box||callback|[call_timeout=30]loopback/101/local|Available|Waiting|0|40|0|0|0|0|0|1297815798|0|0|0|0
cc1_queue1_agent2|single_box||callback|[call_timeout=30]loopback/105/local|Available|Waiting|0|40|0|0|0|0|0|1297815798|0|0|0|0
+OK

Is it a bug in the CLI? 

Can anyone point me how to reload the XML configuration for the callcenter
without doing it manually queue by queue, agent by agent, or tier by tier?

Thanks,

António Silva











More information about the FreeSWITCH-users mailing list