The client sends the list of codecs it supports in the INVITE (PCMA+PCMU).<div><br></div><div>FS will check check that against the list of codecs it supports, and select just *one* codec that&#39;s supported by both. That&#39;s returned by FS in the SDP of the 183 (if any) and 200. If there&#39;s no codec supported by both sides then you get 488.</div>

<div><br></div><div>There are parameters that influence when and which codec is selected, but you end up with only one codec in use for any particular call.</div><div><br></div><div>In this case it&#39;s selected the first supported codec, PCMU.</div>

<div><br></div><div>-Steve</div><div><i> </i> <br><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>