<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><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="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><br><span></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><span>So, either Wiki is wrong, or there's a bug in the code.<br></span></div><div style="color: rgb(0, 0, 0); font-size: 13.3333px; font-family: Courier
 New,courier,monaco,monospace,sans-serif; background-color: transparent; font-style: normal;"><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 &lt;msc@freeswitch.org&gt;<br> <b><span style="font-weight: bold;">To:</span></b> FreeSWITCH Users Help &lt;freeswitch-users@lists.freeswitch.org&gt; <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 class="y_msg_container"><br><div id="yiv0314289269"><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 class="yiv0314289269gmail_extra"><br><br><div class="yiv0314289269gmail_quote">On Fri, Jun 14, 2013 at 6:15 PM, Stanislav Sinyagin <span dir="ltr">&lt;<a rel="nofollow" ymailto="mailto:ssinyagin@yahoo.com" target="_blank" href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="yiv0314289269gmail_quote" 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;">&nbsp; &lt;user id="7012"&gt;<br>&nbsp;&nbsp;&nbsp; &lt;params&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;param name="a1-hash"
 value="538db5a1dcf95cd9df44bf2ff0430c4b"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/params&gt;<br>&nbsp;&nbsp;&nbsp; &lt;variables&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;variable name="absolute_codec_string" value="G722,PCMA,PCMU"/&gt;<br>&nbsp;&nbsp;&nbsp; &lt;/variables&gt;<br>
&nbsp; &lt;/user&gt;<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 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>