That's why then. Unless you have disable-transcoding FS will offer all of those to the endpoint. The endpoint picks which one it wants to use. FS will then transcode if necessary.<br><br>The way to avoid that would be disable-transcoding (FS will pick the aleg codec and then only offer that on the bleg), or use absolute_codec_string.<br>
<br>-Steve<br><br><br><div class="gmail_quote">On 16 January 2011 21:57, Diego Viola <span dir="ltr"><<a href="mailto:diego.viola@gmail.com">diego.viola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
>From what I can tell the global_codec_prefs variable is used in the<br>
internal profile, which is the profile I'm using<br>
<br>
<param name="inbound-codec-prefs" value="$${global_codec_prefs}"/><br>
<param name="outbound-codec-prefs" value="$${global_codec_prefs}"/><br>
<br>
freeswitch@internal> sofia status profile internal<br>
<br>
CODECS IN G729,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM<br>
CODECS OUT G729,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM<br>
<br>
Still I don't know why FS is picking G7221<br>
<div><div></div><div class="h5"><br>
On Sun, Jan 16, 2011 at 6:45 PM, Steven Ayre <<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>> wrote:<br>
> Are those variables being used in the outbound-codec-prefs or codec-prefs<br>
> params in the sip profile?<br>
><br>
> What does the "sofia status profile NAME" output show for "CODECS OUT"?<br>
><br>
> -Steve<br>
><br>
><br>
><br>
> On 16 January 2011 20:59, Diego Viola <<a href="mailto:diego.viola@gmail.com">diego.viola@gmail.com</a>> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I'm experiencing some strange issue with codecs. I have the following<br>
>> in my vars.xml file:<br>
>><br>
>> <X-PRE-PROCESS cmd="set"<br>
>><br>
>> data="global_codec_prefs=G729,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM"/><br>
>> <X-PRE-PROCESS cmd="set" data="outbound_codec_prefs=G729,PCMU,PCMA,GSM"/><br>
>><br>
>> "inbound-late-negotiation" and "disable-transcoding" are commented in<br>
>> my internal SIP profile. So I guess I'm in Early Negotiation (default<br>
>> behavior) mode.<br>
>><br>
>> However, when I send a call to my provider, and I look at the SIP<br>
>> trace I see that FS is sending another codec, not G729 as I specified<br>
>> in the global_codec_prefs / outbound_codec_prefs parameters.<br>
>><br>
>> I'm sending calls like this:<br>
>><br>
>> <action application="bridge"<br>
>> data="sofia/internal/$<a href="mailto:1@38.102.93.70">1@38.102.93.70</a>"/><br>
>><br>
>> Here is a SIP trace of a call:<br>
>><br>
>> <a href="http://pastebin.freeswitch.org/15042" target="_blank">http://pastebin.freeswitch.org/15042</a><br>
>><br>
>> I'm not understanding why FS is sending an INVITE with the G7221 codec<br>
>> in line 240, if I'm telling it explicitly that I want G729 as the<br>
>> priority when possible in the codec prefs options. But I see G729 in<br>
>> the 200 OK in line 291.<br>
>><br>
>> I've been told to use absolute_codec_string=G729 in my dialplan or<br>
>> enable late negotiation, but why if I'm already telling it to use G729<br>
>> in the codec prefs?<br>
>><br>
>> my softphone IP: 190.23.80.10<br>
>> provider IP: 38.102.93.70<br>
>> FS IP: 77.92.65.126<br>
>><br>
>> calls flow like this:<br>
>><br>
>> softphone -> FS -> provider<br>
>><br>
>> Any help appreciated.<br>
>><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>
><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>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Diego Viola<br>
Representative of Bridgecom LLC<br>
Phone: +595 971 320 520<br>
GTalk: <a href="mailto:diego.viola@gmail.com">diego.viola@gmail.com</a><br>
MSN: <a href="mailto:diegoev@msn.com">diegoev@msn.com</a><br>
LinkedIn: <a href="http://www.linkedin.com/pub/diego-viola/15/886/609" target="_blank">http://www.linkedin.com/pub/diego-viola/15/886/609</a><br>
<a href="http://www.bridgecom.com.py" target="_blank">www.bridgecom.com.py</a><br>
</font><div><div></div><div class="h5"><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>
</div></div></blockquote></div><br>