[Freeswitch-users] Global Variable Substitution
Brian Wiese
brian.wiese.freeswitch at gmail.com
Wed Jan 4 02:54:20 MSK 2012
Michael:
I sure can!
What I want to do is create template configurations that I can deploy
to multiple servers. Part of the requirement of incoming calls is to
configure which extension(s) ring immediately, 6-second delay, and
12-second delay. I have created groups for these extensions, and by
using group_call I can get the full dial string for each group...
perfect! Now, I just need a way to delay some of these extensions by
6 or 12 seconds. I ultimately want to inject leg variables into the
dial string for each extension, so when the group_call is expanded
each of them expand with the extra leg variable I define.
Hope that helps... clear as mud? :)
~Brian
On Tue, Jan 3, 2012 at 4:30 PM, Michael Collins <msc at freeswitch.org> wrote:
> Can you expand upon this question a bit? I'm curious if there's a less
> hackish way of doing what you want to do. Under what circumstances do you
> need to add the leg variables? Also, can you give us the big picture? What's
> the problem you're solving?
>
> -MC
>
> On Mon, Jan 2, 2012 at 8:56 AM, Brian Wiese
> <brian.wiese.freeswitch at gmail.com> wrote:
>>
>> Hi Everyone.
>>
>> I thought I read somewhere that this was possible, but I can't find it
>> now...
>>
>> I need a way to find-and-replace within a variable. So, for example,
>> I want to take variables that have values like this:
>>
>> 123abc123abc
>> abc123abc123abc
>>
>> ...and do a find/replace of the "abc" with "xyz" so the variables
>> would now return:
>>
>> 123xyz123xyz
>> xyz123xyz123xyz
>>
>> The use case I've run into is that I need to add leg variables to
>> group_call. In my case, group_call can return any number of members,
>> so I figured I would just replace the first "[" with
>> "[variable-I-want-to-set=...".
>>
>> Thanks for the help!
>>
>> ~Brian
>>
>> _________________________________________________________________________
>> 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-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> 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-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list