<br><br><div class="gmail_quote">On Fri, Apr 12, 2013 at 3:16 PM, Ken Rice <span dir="ltr">&lt;<a href="mailto:krice@freeswitch.org" target="_blank">krice@freeswitch.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<font face="Monaco, Courier New"><span style="font-size:11pt">You are prefing G729, so its going to try it first</span></font></div></blockquote><div><br>In other words, you have G729 listed in your codec prefs ahead of PCMA. If you changed it to something like this it would probably work:<br>
<br>&lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=PCMA,PCMU,G729,GSM&quot;/&gt;<br>-MC<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><font face="Monaco, Courier New"><span style="font-size:11pt"><div><div class="h5"><br>
<br>
<br>
On 4/12/13 5:00 PM, &quot;Juan Antonio Ibañez Santorum&quot; &lt;<a href="http://juanito1982@gmail.com" target="_blank">juanito1982@gmail.com</a>&gt; wrote:<br>
<br>
</div></div></span></font><blockquote><font face="Monaco, Courier New"><div><div class="h5"><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: &quot;</span><font><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></div>
</div><span style="font-size:11pt">&quot;<div><div class="h5"><br>
<br>
Codec prefs setted as:<br>
<br>
  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;global_codec_prefs=G729,G7221@32000h,G7221@16000h,G722,PCMU,PCMA,GSM&quot;/&gt;<br>
  &lt;X-PRE-PROCESS cmd=&quot;set&quot; data=&quot;outbound_codec_prefs=G729,PCMU,PCMA,GSM&quot;/&gt;<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>
</div></div><hr size="3" align="CENTER" width="95%"></span></font><font><font face="Consolas, Courier New, Courier"><span style="font-size:10pt">_________________________________________________________________________<br>

Professional FreeSWITCH Consulting Services:<br>
<a href="http://consulting@freeswitch.org" target="_blank">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="http://FreeSWITCH-users@lists.freeswitch.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br>
</font></span></span></font></font></blockquote><span class="HOEnZb"><font color="#888888"><font><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" target="_blank">http://www.FreeSWITCH.org</a><br>
<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
</u></font><a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
</span></font>
</font></span></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><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>