mod_callcenter del / add agent
stupid gmail sent this before i was finished writing.... Why does mod_callcenter not read the config XML when adding an agent back with the API? callcenter_config agent del agent1 callcenter_config agent add agent1 callback ^ when i run this command, the agent is added back but all the agent's parameters are defaulted... shouldn't it read the callcenter.conf.xml for the default values of the agent? <snip>
On 04.10.2013 17:45, Vik Killa wrote:
callcenter_config agent add agent1 callback ^ when i run this command, the agent is added back but all the agent's parameters are defaulted... shouldn't it read the callcenter.conf.xml for the default values of the agent?
Think of agents like UUIDs. Names are just aliases. Every time an agent is added to the system via agent add, or from callcenter config file, it is a new UUID. That's why parameters are default. Add needed parameters again from CLI. -- Mimiko desu.
this seems silly since if you do reload mod_callcenter, the XML is read from the agent data and the agent is added with those attributes.... why not have the add agent function same as if the module is being reloaded? On Fri, Oct 4, 2013 at 12:40 PM, Mimiko <vbvbrj@gmail.com> wrote:
On 04.10.2013 17:45, Vik Killa wrote:
callcenter_config agent add agent1 callback ^ when i run this command, the agent is added back but all the agent's parameters are defaulted... shouldn't it read the callcenter.conf.xml for the default values of the agent?
Think of agents like UUIDs. Names are just aliases. Every time an agent is added to the system via agent add, or from callcenter config file, it is a new UUID. That's why parameters are default. Add needed parameters again from CLI.
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On 04.10.2013 20:55, Vik Killa wrote:
this seems silly since if you do reload mod_callcenter, the XML is read from the agent data and the agent is added with those attributes.... why not have the add agent function same as if the module is being reloaded?
It's not silly. When you do a reload mod_callcenter, it's actually deletes all config an adds again agents in the same way as you do from CLI. In your case isn't better to just set agent's status to 'Loggd Off' and then 'Available'? Thus retaining agent's settings. -- Mimiko desu.
it's not just logged off to available, it's all of the agent's settings if you 'add' an agent, you need to 'set' each parameter maybe there should be a 'reload' agent API that does what im talking about. like the 'reload queue' api On Fri, Oct 4, 2013 at 3:06 PM, Mimiko <vbvbrj@gmail.com> wrote:
On 04.10.2013 20:55, Vik Killa wrote:
this seems silly since if you do reload mod_callcenter, the XML is read from the agent data and the agent is added with those attributes.... why not have the add agent function same as if the module is being reloaded?
It's not silly. When you do a reload mod_callcenter, it's actually deletes all config an adds again agents in the same way as you do from CLI. In your case isn't better to just set agent's status to 'Loggd Off' and then 'Available'? Thus retaining agent's settings.
-- Mimiko desu.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
turns out to be a simple patch.... http://jira.freeswitch.org/secure/attachment/19367/callcenter_config.agent.r... <snip>
or even better do this with tiers as well.... http://jira.freeswitch.org/secure/attachment/19368/callcenter_config.tier.an... On Mon, Oct 7, 2013 at 10:57 AM, Vik Killa <vipkilla@gmail.com> wrote:
turns out to be a simple patch....
http://jira.freeswitch.org/secure/attachment/19367/callcenter_config.agent.r...
<snip>
participants (2)
-
Mimiko
-
Vik Killa