This kinda sounds like a problem in need of mod_xml_curl. If that seems like too much of a hassle then I would fall back to a mod_lua or mod_perl script to do the regex stuff. How is your scripting fu?<div><br></div><div>-MC<br>
<br><div class="gmail_quote">On Tue, Jan 3, 2012 at 3:54 PM, Brian Wiese <span dir="ltr">&lt;<a href="mailto:brian.wiese.freeswitch@gmail.com">brian.wiese.freeswitch@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Michael:<br>
<br>
I sure can!<br>
<br>
What I want to do is create template configurations that I can deploy<br>
to multiple servers.  Part of the requirement of incoming calls is to<br>
configure which extension(s) ring immediately, 6-second delay, and<br>
12-second delay.  I have created groups for these extensions, and by<br>
using group_call I can get the full dial string for each group...<br>
perfect!  Now, I just need a way to delay some of these extensions by<br>
6 or 12 seconds.  I ultimately want to inject leg variables into the<br>
dial string for each extension, so when the group_call is expanded<br>
each of them expand with the extra leg variable I define.<br>
<br>
Hope that helps...  clear as mud?  :)<br>
<br>
~Brian<br>
<br>
On Tue, Jan 3, 2012 at 4:30 PM, Michael Collins &lt;<a href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>&gt; wrote:<br>
&gt; Can you expand upon this question a bit? I&#39;m curious if there&#39;s a less<br>
&gt; hackish way of doing what you want to do. Under what circumstances do you<br>
&gt; need to add the leg variables? Also, can you give us the big picture? What&#39;s<br>
&gt; the problem you&#39;re solving?<br>
&gt;<br>
&gt; -MC<br>
&gt;<br>
&gt; On Mon, Jan 2, 2012 at 8:56 AM, Brian Wiese<br>
&gt; &lt;<a href="mailto:brian.wiese.freeswitch@gmail.com">brian.wiese.freeswitch@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Everyone.<br>
&gt;&gt;<br>
&gt;&gt; I thought I read somewhere that this was possible, but I can&#39;t find it<br>
&gt;&gt; now...<br>
&gt;&gt;<br>
&gt;&gt; I need a way to find-and-replace within a variable.  So, for example,<br>
&gt;&gt; I want to take variables that have values like this:<br>
&gt;&gt;<br>
&gt;&gt; 123abc123abc<br>
&gt;&gt; abc123abc123abc<br>
&gt;&gt;<br>
&gt;&gt; ...and do a find/replace of the &quot;abc&quot; with &quot;xyz&quot; so the variables<br>
&gt;&gt; would now return:<br>
&gt;&gt;<br>
&gt;&gt; 123xyz123xyz<br>
&gt;&gt; xyz123xyz123xyz<br>
&gt;&gt;<br>
&gt;&gt; The use case I&#39;ve run into is that I need to add leg variables to<br>
&gt;&gt; group_call.  In my case, group_call can return any number of members,<br>
&gt;&gt; so I figured I would just replace the first &quot;[&quot; with<br>
&gt;&gt; &quot;[variable-I-want-to-set=...&quot;.<br>
&gt;&gt;<br>
&gt;&gt; Thanks for the help!<br>
&gt;&gt;<br>
&gt;&gt; ~Brian<br>
&gt;&gt;<br>
&gt;&gt; _________________________________________________________________________<br>
&gt;&gt; Professional FreeSWITCH Consulting Services:<br>
&gt;&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt;&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt;&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;&gt;<br>
&gt;&gt; Official FreeSWITCH Sites<br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt;&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;&gt;<br>
&gt;&gt; FreeSWITCH-users mailing list<br>
&gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; _________________________________________________________________________<br>
&gt; Professional FreeSWITCH Consulting Services:<br>
&gt; <a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
&gt; <a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
&gt;<br>
&gt; FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
&gt; <a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
&gt;<br>
&gt; Official FreeSWITCH Sites<br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; <a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
&gt; <a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
&gt;<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<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>