Sorry for the late reply...<br><br>Did you figure this one out yet? I think you can set the uuid of the b-leg to a known value and then do a uuid_dump (or whatever) to check stuff on that uuid:<br><br><action application="set" data="new_uuid=${create_uuid}" inline="true"/><br>
<action application="bridge" data="{origination_uuid=${new_uuid}[leg_timeout=60,var1=<div>555]user/<a href="mailto:100@commsmundi.com" target="_blank">100@default.com</a>|[leg_timeout=60,var1=777]user/<a href="mailto:101@default.com" target="_blank">101@default.com</a>"/></div>
<br>You will have ${new_uuid} on the A leg which contains the B leg uuid. I suppose you could also skip the create_uuid/origination_uuid thing and just use the value in ${signal_bond}. However, personally, I like creating the uuid beforehand and knowing what the B leg's uuid will be.<br>
<br>In any case, you can do a uuid_dump XXXX where XXXX is whatever is in ${new_uuid} (or in ${signal_bond})<br><br>Let us know what happens.<br>-MC<br><br><div class="gmail_quote">On Tue, Mar 6, 2012 at 11:21 AM, Antonio <span dir="ltr"><<a href="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
Hi,<br>
<br>
Is it possible to access a variable that is passed per channel, in some script called in the directory.xml, parameter dial-string?<br>
<br>
I need to be able to set the var1 dynamically from the dialplan, so i can parse it from my lua script.<br>
<br>
Using the set command directly it will set the variables for both channels.<br>
<br>
<br>
For example, I dialed two users:<br>
<br>
<extension name="test" continue="false"><br>
<condition field="destination_number" expression=".*"><br>
<action application="bridge" data="[leg_timeout=60,var1=555]user/<a href="mailto:100@commsmundi.com" target="_blank">100@default.com</a>|[leg_timeout=60,var1=777]user/<a href="mailto:101@default.com" target="_blank">101@default.com</a>"/><br>
</condition><br>
</extension><br>
<br>
then in my directory.xml, i have:<br>
<br>
<param name="dial-string" value="${lua(dial.lua ${dialed_user} ${dialed_domain} ${var1})}"/><br>
<br>
<br>
So when the return dial-string for the user 100 has it's own var1, and when dial the user 102 has another value.<br>
<br>
I already try to uuid_dump in dial.lua, but i can't see the variable var1... <br>
<br>
Using this method, [var1=value], it will set the variable var1 for the B channel, but can i access it from the A channel? Or is there another way to set this variables before processing the dial-string...<br>
<br>
Thanks,<br>
António<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
<table cellpadding="0" cellspacing="0" width="100%">
<tbody><tr>
<td>
<pre>--
Un cordial saludo / Best regards,
_________________________
António Silva
E-mail:<a href="mailto:asilva@wirelessmundi.com" target="_blank">asilva@wirelessmundi.com</a>
</pre>
</td>
</tr>
</tbody></table>
</font></span></div>
<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>
<br></blockquote></div><br>