<div>Thanks Paul!</div><div><br></div>You are totally right, I was looking for the a=rtpmap:18 G729/8000 line. I find it weird that it is automatically inserted for SPEEX, but not for other codecs.<div><br></div><div>Another thing I noticed, is I can&#39;t specify more than one codec, according to what I&#39;ve read about other issues, this has something to do with a comma parsing problem on the console (for some reason commas can&#39;t be escaped, this also affects trying to originate calls from ESL).</div>
<div><br></div><div>So for absolute_codec_string=G729 I get this SDP (with verbose_sdp=true):</div><div><br></div><div><div>   v=0</div><div>   o=FreeSWITCH 1303718366 1303718367 IN IP4 127.0.0.1</div><div>   s=FreeSWITCH</div>
<div>   c=IN IP4 127.0.0.1</div><meta charset="utf-8"><div>   t=0 0</div><div>   m=audio 29882 RTP/AVP 18 101 13</div><div>   a=rtpmap:18 G729/8000</div><div>   a=rtpmap:101 telephone-event/8000</div><div>   a=fmtp:101 0-16</div>
<div>   a=ptime:20</div></div><div><br></div><div><br></div><div>But for absolute_codec_string=G729,PCMU I get no additional m= lines in the SDP:</div><div><br></div><div><div>   v=0</div><div>   o=FreeSWITCH 1303716332 1303716333 IN IP4 127.0.0.1</div>
<meta charset="utf-8"><div>   s=FreeSWITCH</div><div>   c=IN IP4 127.0.0.1</div><meta charset="utf-8"><div>   t=0 0</div><div>   m=audio 32008 RTP/AVP 18 101 13</div><div>   a=rtpmap:18 G729/8000</div><div>   a=rtpmap:101 telephone-event/8000</div>
<div>   a=fmtp:101 0-16</div><div>   a=ptime:20</div></div><div><br></div><div><br><div><br><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 12:06 PM, Paul Cupis <span dir="ltr">&lt;<a href="mailto:paul@cupis.co.uk">paul@cupis.co.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On 25/04/11 16:22, Nicolas Brenner wrote:<br>
&gt; I&#39;m trying to force the use of a specific codec when originating a call from<br>
&gt; the command line.<br>
<br>
</div><div class="im">&gt;    m=audio 17054 RTP/AVP 0 8 98 18 101 13<br>
<br>
</div><div class="im">&gt;    m=audio 24894 RTP/AVP 0 101 13<br>
<br>
</div><div class="im">&gt; And it doesn&#39;t matter the value I give to the absolute_codec_string, I will<br>
&gt; get the same SDP, except if I specify SPEEX, then I&#39;ll get the same SDP as<br>
&gt; the one above. Am I missing something, or is this the way it&#39;s supposed to<br>
&gt; work?<br>
<br>
</div>Looks okay to me. Perhaps you are not looking at the m=audio line in the<br>
SDP which you will is different - this reflects the difference in the<br>
offered codecs.<br>
<br>
You might be expecting to see all of the codecs itemised in the a=fmtp<br>
lines - this is known as verbose-sdp and is disabled by default.<br>
<br>
Have a look at:<br>
<a href="http://wiki.freeswitch.org/wiki/Variable_verbose_sdp" target="_blank">http://wiki.freeswitch.org/wiki/Variable_verbose_sdp</a><br>
<br>
Regards,<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>
</blockquote></div><br></div></div>