[Freeswitch-users] Global Variable Substitution

Michael Collins msc at freeswitch.org
Wed Jan 4 01:30:31 MSK 2012


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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120103/d19d2935/attachment-0001.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list