<p>Have you read the wiki article on the xml dialplan or the chapter on ot in our book?</p>
<p>The thing that tends to be the most difficult to grok is that when the module is parsing the xml, its not doing the things right as it sees them, rather it collects the matching stuff and distills it down to a linear set of instructions. So if you set variables in one action then expect it to exist, you will be disappointed because it has not actually executed the set command, it only adds it to the list of work. However, there is a way to get what you want by adding inline="true" to the action when you set variables so they actually are set immediately and won't count in the list of work. This only works for set and a small list of apps.......</p>
<div class="gmail_quote">On Nov 3, 2012 4:50 PM, "D'Arcy J.M. Cain" <<a href="mailto:darcy@vex.net">darcy@vex.net</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is what I have tried so far:<br>
<br>
<a href="http://pastebin.freeswitch.org/20166" target="_blank">http://pastebin.freeswitch.org/20166</a><br>
<br>
The idea is to replace %BRIDGE_DATA% with ${MyBridgeData}. When I do<br>
that the call goes straight to voicemail. The log line is supposed to<br>
show what MyBridgeData is but all it displays is the literal<br>
"${MyBridgeData}". Can someone point me in the right direction please.<br>
<br>
By the way, here is what this convoluted mess is supposed to do. I<br>
give each of my clients two numbers, a real DID and an internal number<br>
which is +1 999 99x-xxxx where "xxxxx" is the user's client code. When<br>
a call comes in for them I send the call to their main account. If<br>
they have registered the internal number then it will simultaneously<br>
ring that number after 5 seconds. If not and they have registered<br>
their cell number in their control panel then I use that for the<br>
secondary one instead.<br>
<br>
Cheers.<br>
<br>
--<br>
D'Arcy J.M. Cain<br>
System Administrator, Vex.Net<br>
<a href="http://www.Vex.Net/" target="_blank">http://www.Vex.Net/</a> IM:darcy@Vex.Net<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>