If the bridge to the user is not successful then the channel variables aren't set. If you need these variables no matter what then you can probably use this:

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set_user

Call that as soon as you know which user you're going to bridge to and it should slurp in all the channel variables for that user even if the bridge is not successful.

-MC

On Tue, Aug 28, 2012 at 7:41 AM, Babak Yakhchali <babak.freeswitch@gmail.com> wrote:
Hi
To add some features to fs, I need to set some variables in xml directory user as:
<include>
  <user id="1000">
    <params>
     ...
    <variables>
 <variable name="profile_id" value="10"/>
 <variable name="dn_id" value="25"/>
  .....
 <variable name="call_timeout" value="7"/>
    </variables>
  </user>
</include>
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.
thanx

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org