<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt">at https://wiki.freeswitch.org/wiki/XML_User_Directory_Guide<br><br>it says:<br>Any variables defined in the domain or user will be defined as channel
variables when there is a call to user or when there is an inbound calls
from that user.
<br><br>So, when the user places a call, I see the variables injected into the channel as expected.<br><br>When the call is routed to the user through Local_Extensions via bridge user/7012, there's no indication that these variables are added to the channel.<br><br>You can see a piece of my XML User directory below, and the rest is pretty much like in vanilla config.<br><br><br><div><span><br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Michael Collins <msc@freeswitch.org><br> <b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help
<freeswitch-users@lists.freeswitch.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Sunday, June 16, 2013 6:04 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Freeswitch-users] User variables are not inserted when
bridging to user<br> </font> </div> <div class="y_msg_container"><br><div id="yiv9957207980"><div dir="ltr"><br><div class="yiv9957207980gmail_extra"><br><br><div class="yiv9957207980gmail_quote">On Sat, Jun 15, 2013 at 6:12 PM, Stanislav Sinyagin <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ssinyagin@yahoo.com" target="_blank" href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>></span> wrote:<br>
<blockquote class="yiv9957207980gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;font-family:Courier New, courier, monaco, monospace, sans-serif;"><div><span>I solved the problem by enabling only G722 on the client. But still, the user variables seem to be applied in calls from the user only, and not when a call is bridged to the user. After bridging, only the variables in dial-string are taken into account.</span></div>
<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:Courier New, courier, monaco, monospace, sans-serif;"><br><span></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:Courier New, courier, monaco, monospace, sans-serif;">
<span>So, either Wiki is wrong, or there's a bug in the code.<br></span></div></div></div></blockquote><div>** Citation needed<br><br></div><div>Can you point out what you tried in the wiki? Also, do you have logs and config samples up on the pastebin?<br>
</div><div>-MC<br> <br></div><blockquote class="yiv9957207980gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;font-family:Courier New, courier, monaco, monospace, sans-serif;">
<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:Courier New, courier, monaco, monospace, sans-serif;"><span></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:Courier New, courier, monaco, monospace, sans-serif;">
<span><br></span></div><div><br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;margin-top:5px;padding-left:5px;"> <div style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;">
<div style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1"> <font face="Arial"> <b><span style="font-weight:bold;">From:</span></b> Michael Collins <<a rel="nofollow" ymailto="mailto:msc@freeswitch.org" target="_blank" href="mailto:msc@freeswitch.org">msc@freeswitch.org</a>><br>
<b><span style="font-weight:bold;">To:</span></b> FreeSWITCH Users Help <<a rel="nofollow" ymailto="mailto:freeswitch-users@lists.freeswitch.org" target="_blank" href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>> <br> <b><span style="font-weight:bold;">Sent:</span></b> Sunday, June 16, 2013 2:18 AM<br>
<b><span style="font-weight:bold;">Subject:</span></b> Re: [Freeswitch-users] User variables are not inserted when
bridging to user<br> </font> </div> <div><br><div><div dir="ltr"><div>Look at the discussion on the wiki about inbound late negotiation - that may help you put all the pieces together.<br><br></div>-MC<br><br><a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/wiki/Codec_Negotiation">http://wiki.freeswitch.org/wiki/Codec_Negotiation</a><br>
<br></div><div><br><br><div>On Fri, Jun 14, 2013 at 6:15 PM, Stanislav Sinyagin <span dir="ltr"><<a rel="nofollow" ymailto="mailto:ssinyagin@yahoo.com" target="_blank" href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div style="font-size:10pt;font-family:arial, helvetica, sans-serif;"><div>I'm using the latest 1.2 stable branch.</div>
<div><br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">I want one of my directory users to have specific codec preferences, so I do in my XML directory:</div>
<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;"><br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">
<span style="font-family:Courier New, courier, monaco, monospace, sans-serif;"> <user id="7012"><br> <params><br> <param name="a1-hash"
value="538db5a1dcf95cd9df44bf2ff0430c4b"/><br> </params><br> <variables><br> <variable name="absolute_codec_string" value="G722,PCMA,PCMU"/><br> </variables><br>
</user><br></span></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;"><br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">
But when the call is bridged to user/7012, this variable is not taken into account, and the session inherits the codec from A-leg.</div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">
<br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">When the user dials out, I see this variable in the "info" output, but not when the user extension gets called.</div>
<div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;"><br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">
Any idea why? Wiki says, the user variables should be used in both in- and out- calls, and the source code looks quite right.</div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">
<br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;"><br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;">
thanks<br></div><div style="font-style:normal;font-size:13.3333px;background-color:transparent;font-family:arial, helvetica, sans-serif;"></div></div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a rel="nofollow" target="_blank" href="http://www.cudatel.com/">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.FreeSWITCH.org</a><br><a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.ClueCon.com</a><br>
<a rel="nofollow" target="_blank" href="http://www.ostag.org/">http://www.OSTAG.org</a><br><br>
</div></div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br><a rel="nofollow" target="_blank" href="http://www.cudatel.com/">http://www.cudatel.com</a><br>
<br>Official FreeSWITCH Sites<br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br>
<br>FreeSWITCH-users mailing list<br><a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<br><br></div> </div> </div> </blockquote></div> </div></div><br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a rel="nofollow" ymailto="mailto:consulting@freeswitch.org" target="_blank" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitchsolutions.com/">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a rel="nofollow" target="_blank" href="http://www.cudatel.com/">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://wiki.freeswitch.org/">http://wiki.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a rel="nofollow" ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a rel="nofollow" target="_blank" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a rel="nofollow" target="_blank" href="http://www.freeswitch.org/">http://www.FreeSWITCH.org</a><br><a rel="nofollow" target="_blank" href="http://www.cluecon.com/">http://www.ClueCon.com</a><br>
<a rel="nofollow" target="_blank" href="http://www.ostag.org/">http://www.OSTAG.org</a><br><br>
</div></div></div><br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a ymailto="mailto:consulting@freeswitch.org" 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 ymailto="mailto:FreeSWITCH-users@lists.freeswitch.org"
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><br></div> </div> </div> </blockquote></div> </div></body></html>