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>&lt;action application=&quot;set&quot; data=&quot;new_uuid=${create_uuid}&quot; inline=&quot;true&quot;/&gt;<br>
&lt;action application=&quot;bridge&quot; data=&quot;{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>&quot;/&gt;</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&#39;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">&lt;<a href="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</a>&gt;</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>
&lt;extension name=&quot;test&quot; continue=&quot;false&quot;&gt;<br>
&lt;condition field=&quot;destination_number&quot; expression=&quot;.*&quot;&gt;<br>
    &lt;action application=&quot;bridge&quot; data=&quot;[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>&quot;/&gt;<br>

&lt;/condition&gt;<br>
&lt;/extension&gt;<br>
<br>
then in my directory.xml, i have:<br>
<br>
&lt;param name=&quot;dial-string&quot; value=&quot;${lua(dial.lua ${dialed_user} ${dialed_domain} ${var1})}&quot;/&gt;<br>
<br>
<br>
So when the return dial-string for the user 100 has it&#39;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&#39;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>