If the bridge to the user is not successful then the channel variables aren&#39;t set. If you need these variables no matter what then you can probably use this:<br><br><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user</a><br>
<br>Call that as soon as you know which user you&#39;re going to bridge to and it should slurp in all the channel variables for that user even if the bridge is not successful.<br><br>-MC<br><br><div class="gmail_quote">On Tue, Aug 28, 2012 at 7:41 AM, Babak Yakhchali <span dir="ltr">&lt;<a href="mailto:babak.freeswitch@gmail.com" target="_blank">babak.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">Hi<div>To add some features to fs, I need to set some variables in xml directory user as:</div><div><div>&lt;include&gt;</div>
<div>  &lt;user id=&quot;1000&quot;&gt;</div><div>    &lt;params&gt;</div><div>     ...</div><div>
    &lt;variables&gt;</div><div><span style="white-space:pre-wrap">        </span>  &lt;variable name=&quot;profile_id&quot; value=&quot;10&quot;/&gt;</div><div><span style="white-space:pre-wrap">        </span>  &lt;variable name=&quot;dn_id&quot; value=&quot;25&quot;/&gt;</div>

<div><span style="white-space:pre-wrap">        </span>  .....</div><div><span style="white-space:pre-wrap">        </span>  &lt;variable name=&quot;call_timeout&quot; value=&quot;7&quot;/&gt;</div><div>
    &lt;/variables&gt;</div><div>  &lt;/user&gt;</div><div>&lt;/include&gt;</div></div><div>as documentation says these variables are set on every inbound or outbound channel for this user. when I try to call to user/1000 if call succeeds everything is ok but if call ends with results like no_answer, in xml_cdr that is sent to my cdr logger url, there is no sign of any variables set in directory as above. is this normal? because if I set these on bleg (user/1000) using export they appear in xml cdr.</div>

<div>thanx</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><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br><br>