<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="background-color:rgb(255,255,255);color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">How can I manage set of codec in inbound calls?</span></blockquote>

<div><br></div><div><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">PCMU,PCMA,G729,GSM&quot;/&gt;</span><br style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

<span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;inbound_codec_prefs=</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">PCMU,PCMA,G729,GSM&quot;/&gt;</span></div>

<div><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">&lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">inbound_codec_prefs</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">}&quot;</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">/&gt;</span><br style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">

<span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">&lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">outbound_codec_prefs</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">}&quot;</span><span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">/&gt;</span></div>

<div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">Your previous configuration used the global list for both parameters.</font></div><div><font color="#222222" face="arial, sans-serif"><br>

</font></div><div>global_codec_prefs isn&#39;t actually then used, there&#39;s a codec-prefs param for convenience only that sets both inbound and outbound at the same time and isn&#39;t actually needed if you&#39;re setting both.</div>

<div><br></div><div><font color="#222222" face="arial, sans-serif">-Steve</font></div><div><font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif"><br></font><br>

<div class="gmail_quote">On 1 February 2013 11:18, Александр Мустафин <span dir="ltr">&lt;<a href="mailto:mustafin.aleksandr@gmail.com" target="_blank">mustafin.aleksandr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello.<br>
<br>
My FS receive INVITE with 2 codecs in SDP: PCMA and PCMU. After hunting<br>
dialplan, this call forwarding to IVR, and I see next message in log:<br>
<br>
2013-01-31 01:23:22.388780 [DEBUG] sofia_glue.c:5094 Audio Codec Compare<br>
[PCMU:0:8000:20:64000]/[PCMU:0:8000:20:64000]<br>
2013-01-31 01:23:22.388780 [DEBUG] sofia_glue.c:3077 Set Codec<br>
sofia/internal/9089080908@PSTN PCMU/8000 20 ms 160 samples 64000 bits<br>
2013-01-31 01:23:22.388780 [DEBUG] switch_core_codec.c:111<br>
sofia/internal/<a href="tel:9089080908" value="+19089080908">9089080908</a>@PSTN Original read codec set to PCMU:0<br>
<br>
And FS send 200 OK to remote side with one codec in SDP: PCMU.<br>
<br>
My parameters:<br>
<br>
In internal.xml (profile)<br>
&lt;param name=&quot;inbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
&lt;param name=&quot;outbound-codec-prefs&quot; value=&quot;$${global_codec_prefs}&quot;/&gt;<br>
<br>
In vars.xml<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;global_codec_prefs=PCMU,PCMA,G729,G722,GSM&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=PCMU,PCMA,G729,GSM&quot;/&gt;<br>
&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;inbound_codec_prefs=PCMU,PCMA,G729,GSM&quot;/&gt;<br>
<br>
This is normal behavior?How can I manage set of codec in inbound calls?<br>
<br>
Best regards, Alexander.<br>
<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>
</blockquote></div><br></div>