<div dir="ltr">How are you creating a B leg? Bridging to user/ ?<br clear="all"><div><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:small">-Avi</span></div></div><br><div class="gmail_quote">

On Tue, May 14, 2013 at 3:07 PM, Alex Lake <span dir="ltr">&lt;<a href="mailto:alex@digitalmail.com" target="_blank">alex@digitalmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I&#39;ve just discovered a yawning hole in my knowledge of Freeswitch...<br>
<br>
When I make an internal call, I would like to be able to set variables<br>
that are originator specific.<br>
<br>
I had previously done this in the directory part of conf with things<br>
like this:<br>
<br>
&lt;include&gt;<br>
  &lt;user id=&quot;9903301&quot;&gt;<br>
...<br>
   &lt;variables&gt;<br>
    &lt;variable name=&quot;tenant_id&quot; value=&quot;9903&quot;/&gt;<br>
    &lt;variable name=&quot;a_ext&quot; value=&quot;301&quot;/&gt;<br>
    &lt;variable name=&quot;accountcode&quot; value=&quot;301&quot;/&gt;<br>
    &lt;variable name=&quot;user_context&quot; value=&quot;dp9903&quot;/&gt;<br>
    &lt;variable name=&quot;internal_caller_id_name&quot; value=&quot;Internal from x301<br>
alex&quot;/&gt;<br>
   &lt;/variables&gt;<br>
  &lt;/user&gt;<br>
&lt;/include&gt;<br>
<br>
But when I try to extract those variables in a lua script (eg. the<br>
extension handling &quot;201&quot;), they don&#39;t seem to be there.<br>
<br>
It&#39;s as though they weren&#39;t exported from A-Leg to B-Leg.<br>
<br>
What am I missing?<br>
<br>
How can I arrange for variables set in the &lt;user&gt; to be readable in the<br>
b-leg dialplan?<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>