<div>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?</div>
<div><br></div><div>-MC<br><br><div class="gmail_quote">On Mon, Jan 2, 2012 at 8:56 AM, Brian Wiese <span dir="ltr"><<a href="mailto:brian.wiese.freeswitch@gmail.com">brian.wiese.freeswitch@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Everyone.<br>
<br>
I thought I read somewhere that this was possible, but I can't find it now...<br>
<br>
I need a way to find-and-replace within a variable. So, for example,<br>
I want to take variables that have values like this:<br>
<br>
123abc123abc<br>
abc123abc123abc<br>
<br>
...and do a find/replace of the "abc" with "xyz" so the variables<br>
would now return:<br>
<br>
123xyz123xyz<br>
xyz123xyz123xyz<br>
<br>
The use case I've run into is that I need to add leg variables to<br>
group_call. In my case, group_call can return any number of members,<br>
so I figured I would just replace the first "[" with<br>
"[variable-I-want-to-set=...".<br>
<br>
Thanks for the help!<br>
<br>
~Brian<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div>