<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] Codec negotiation bug?</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>You are prefing G729, so its going to try it first<BR>
<BR>
<BR>
On 4/12/13 5:00 PM, "Juan Antonio Ibañez Santorum" <<a href="juanito1982@gmail.com">juanito1982@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hello,<BR>
<BR>
I am doing some codec negotiation (early) tests but FS does not work as I expected.<BR>
<BR>
I can read at wiki: "</SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10pt'>When FS calls leg B, the list of codecs in outbound-codec-prefs for the SIP profile is reorganized by pushing the codec negotiated above for leg A at the top. If B does not accept any of the codecs, the calls fails, obviously</SPAN></FONT><SPAN STYLE='font-size:11pt'>"<BR>
<BR>
Codec prefs setted as:<BR>
<BR>
<X-PRE-PROCESS cmd="set" 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>
FS select PCMA for A leg<BR>
<BR>
FS offers following SDP to B leg:<BR>
<BR>
v=0<BR>
o=FreeSWITCH 1365781615 1365781616 IN IP4 176.31.117.49<BR>
s=FreeSWITCH<BR>
c=IN IP4 176.31.117.49<BR>
t=0 0<BR>
m=audio 19780 RTP/AVP 8 101 13<BR>
a=rtpmap:101 telephone-event/8000<BR>
a=fmtp:101 0-16<BR>
a=ptime:30<BR>
m=audio 19780 RTP/AVP 18 0 8 3 101 13<BR>
a=rtpmap:101 telephone-event/8000<BR>
a=fmtp:101 0-16<BR>
a=ptime:20<BR>
<BR>
Session progress from B leg contains:<BR>
<BR>
v=0<BR>
o=root 3311 3311 IN IP4 91.192.110.234<BR>
s=session<BR>
c=IN IP4 91.192.110.234<BR>
t=0 0<BR>
m=audio 16194 RTP/AVP 18 8 0 101<BR>
a=rtpmap:18 G729/8000<BR>
a=fmtp:18 annexb=no<BR>
a=rtpmap:8 PCMA/8000<BR>
a=rtpmap:0 PCMU/8000<BR>
a=rtpmap:101 telephone-event/8000<BR>
a=fmtp:101 0-16<BR>
a=silenceSupp:off - - - -<BR>
a=ptime:20<BR>
a=sendrecv<BR>
<BR>
FS codec comparison debug look as:<BR>
<BR>
sofia_glue.c:5094 Audio Codec Compare [G729:18:8000:20:8000]/[PCMA:8:8000:30:64000]<BR>
sofia_glue.c:5094 Audio Codec Compare [G729:18:8000:20:8000]/[G729:18:8000:20:8000]<BR>
sofia_glue.c:3077 Set Codec sofia/external/0034950004588 G729/8000 20 ms 160 samples 8000 bits<BR>
<BR>
FS start comparing G729 instead PCMA selected in A leg<BR>
<BR>
Is that ok? is there any way to get selected PCMA for B leg without using late negotiation nor disabling transcoding<BR>
<BR>
Regards<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</SPAN></FONT>
</BODY>
</HTML>