<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That sounds like a bad reading of the trace.<div><br></div><div>The important line is the 239th:</div><div> m=audio 23344 RTP/AVP 3 18 98 99 9 0 8 101 13</div><div><br></div><div>That means codec 3 is sent first (so GSM), then 18 (so G729).</div><div><br></div><div>I think you should read a little bit on early negotiation.</div><div>If leg A has GSM in 1st position, if your inbound codec list allows GSM, and your outbound codec list is : G729, PCM, GSM, than your outbound INVITE to leg B will have GSM in 1st position, because that was requested by leg A.</div><div><br></div><div>That's in the wiki, it's a part I rewrote myself some weeks ago, in the most readable way I could.</div><div><br><div>
<span class="Apple-style-span" style="font-size: 14px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone </font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space"> </span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: 0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); "> - <span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br><div><div>Le 16/01/2011 à 21:59, Diego Viola a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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>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" data="sofia/internal/$1@38.102.93.70"/><br><br>Here is a SIP trace of a call:<br><br><a href="http://pastebin.freeswitch.org/15042">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>FreeSWITCH-users@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-users<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users<br>http://www.freeswitch.org<br></div></blockquote></div><br></div></body></html>