<p dir="ltr">That's something you should be doing on the phone itself or somewhere else like the dialplan, rather than doing it in the directory. absolute_codec_string is ment to be used where you have no control over the SDP of an endpoint, and in this case it sounds as if you do.</p>
<p dir="ltr">But I think the issue here is that this particular variable is read and relevent actions are taken before you reset the variable via this method. You can use the info dialplan app to figure out when the variable is set as a channel variable.</p>
<p dir="ltr">- BDF</p>
<div class="gmail_quote">On Jun 14, 2013 9:22 PM, "Stanislav Sinyagin" <<a href="mailto:ssinyagin@yahoo.com">ssinyagin@yahoo.com</a>> wrote:<br type="attribution"><blockquote class="gmail_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"> <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 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>