[Freeswitch-dev] [mod_callcenter] dynamic queues
eschmidbauer at gmail.com
Tue Oct 13 16:01:51 MSD 2015
You can already dynamically add/remove queues by using mod_xml_curl +
To add a queue on the fly:
1. update xml (mod_xml_curl)
2. fs_cli> callcenter_config queue load test-queue
FS will make a request to your xml-curl server with something like this:
[section] => 'configuration'
[tag_name] => 'configuration'
[key_name] => 'name'
[key_value] => 'callcenter.conf'
[Event-Calling-Function] => 'load_queue'
[CC-Queue] => 'test-queue'
You can also use the same steps to add/remove agents and tiers.
On Mon, Oct 12, 2015 at 2:39 PM, Tomas Boros <tomas.boros92 at gmail.com>
> I have already created a pull request for this.
> On 12 October 2015 at 19:45, Michael Jerris <mike at jerris.com> wrote:
>> It might require some refactoring of those functions to split the
>> validation from the xml parsing. Italo might have some more comments on a
>> best approach.
>> > On Oct 11, 2015, at 5:47 AM, Tomas Boros <tomas.boros92 at gmail.com>
>> > Hello fs developers
>> > I am working on a feature for mod_callcenter, which will enable
>> creation of queues via fs_cli.
>> > Queues right now can be created via xml or DB backend, but for a
>> clustered environment I think it would be usable to create and destroy
>> queues live.
>> > I am new to the code, so I need some help:
>> > 1. I found, that number of arguments for fs_cli is limited to 6. Is it
>> possible to override this limit?
>> > 2. Do the freeswitch code has builtin variable validators? I found
>> something like queue_set_config in the code, which looks like a it, but it
>> is used in context with function switch_xml_config_parse_event, which loads
>> and validates the data from XML files. I need to validate the values coming
>> from arguments of the function.
>> > 3. Do you think this is simply a correct approach of creating queues,
>> do this make sense :) ?
>> > Thank you,
>> > Thomas Boros
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> Official FreeSWITCH Sites
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> Official FreeSWITCH Sites
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2014 Aug 4-7, 2014
More information about the FreeSWITCH-dev