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@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@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