[Freeswitch-dev] [mod_callcenter] dynamic queues

E. Schmidbauer eschmidbauer at gmail.com
Tue Oct 13 16:01:51 MSD 2015


Tomas,
You can already dynamically add/remove queues by using mod_xml_curl +
callcenter API
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.

Thanks,
Emmanuel

On Mon, Oct 12, 2015 at 2:39 PM, Tomas Boros <tomas.boros92 at gmail.com>
wrote:

> Hello,
>
> I have already created a pull request for this.
>
>
> https://freeswitch.org/stash/projects/FS/repos/freeswitch/pull-requests/553/overview
>
>
> 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>
>> wrote:
>> >
>> > 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
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-dev mailing list
>> FreeSWITCH-dev at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20151013/0ca7912d/attachment-0001.html 


Join us at ClueCon 2014 Aug 4-7, 2014
More information about the FreeSWITCH-dev mailing list