[Freeswitch-users] directory variables not set on user channels when bridge does not succeed
Michael Collins
msc at freeswitch.org
Tue Aug 28 18:53:33 MSD 2012
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 at 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 at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120828/e9505689/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list