This email is a perfect example of community members stepping up! Thanks Steven!!<div>-MC<br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 1:20 AM, Steven Ayre <span dir="ltr">&lt;<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</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"><blockquote style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex" class="gmail_quote">
{ignore_early_media,absolute_codec_string=&#39;G729,PCMU&#39;}<br></blockquote><br></div>The problem is that FS splits the variable names using commas. When there&#39;s a comma in a value it gets confused. Using quotation marks doesn&#39;t make any difference - they&#39;re treated as part of the value.<br>


<br>So FS is seeing this:<div class="im"><br>ignore_early_media<br>absolute_codec_string=&#39;G729<br>PCMU&#39;<br><br></div>So the only codec that gets set is the G729.<br><br>There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}.<br>


<br>The ^^ at the start of a value tells FS &#39;treat the following character as a comma&#39;. Now FS sees:<div class="im"><br><br>ignore_early_media<br>absolute_codec_string=^^:G729:PCMU<br><br></div>And sets absolute_codec_string to G729,PCMU.<br>


<br>-Steve<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On 25 April 2011 21:44, Nicolas Brenner <span dir="ltr">&lt;<a href="mailto:nico@clickfono.com" target="_blank">nico@clickfono.com</a>&gt;</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">

Oops, sorry you are right, I copied it wrong, doesn&#39;t fix it though.<div><div></div><div><div><br><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <span dir="ltr">&lt;<a href="mailto:vetali100@gmail.com" target="_blank">vetali100@gmail.com</a>&gt;</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">Maybe I am wrong, but I see a typo in the following string, after &quot;<span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">ignore_early_media&quot;</span>:<div>



<div>
<br></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">originate {ignore_early_media,absolute_codec_string=G729}user/1001 &amp;bridge(user/1000)</span></div>
<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font></div></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif">It should be:</span></div>
<div><span style="border-collapse:collapse;font-family:arial,sans-serif"><br></span></div><div><span style="border-collapse:collapse;font-family:arial,sans-serif"><span style="font-size:13px">originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &amp;bridge(user/1000)</span></span></div>




<div><font face="arial, sans-serif"><span style="border-collapse:collapse"><br></span></font><font color="#888888">Vitalie</font></div><div><div></div><div><div><br></div><div><br><div class="gmail_quote">2011/4/25 Nicolas Brenner <span dir="ltr">&lt;<a href="mailto:nico@clickfono.com" target="_blank">nico@clickfono.com</a>&gt;</span><br>




<blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204, 204, 204);padding-left:1ex">Thanks, yes, here you go:<div><br></div><div><div>I&#39;m making calls from the console to an X-Lite registered on extension 1001 which doesn&#39;t support G729. Calls 1 and 3 below fail because the codec options are not supported, and even though on the third call the absolute_codec_string variable should be &#39;G729,PCMU&#39;, it is not offering both codecs.</div>





<div><br></div><div><br></div><div>On <a href="http://pastebin.freeswitch.org/16167" target="_blank">http://pastebin.freeswitch.org/16167</a> the SIP trace for:</div><div><br></div><div>originate {ignore_early_media,absolute_codec_string=G729}user/1001 &amp;bridge(user/1000)</div>





<div><br></div><div>This is the SDP:</div><div><br></div><div>   v=0</div><div>   o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1</div><div><div>   s=FreeSWITCH</div><div>   c=IN IP4 127.0.0.1</div><div>   t=0 0</div>




</div><div>
   m=audio 24036 RTP/AVP 18 101 13</div><div><div>   a=rtpmap:101 telephone-event/8000</div><div>   a=fmtp:101 0-16</div><div>   a=ptime:20</div><div><br></div><div><br></div></div><div>On <a href="http://pastebin.freeswitch.org/16169" target="_blank">http://pastebin.freeswitch.org/16169</a> the SIP trace for:</div>





<div><br></div><div>originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &amp;bridge(user/1000)</div><div><br></div><div>This is the SDP:</div><div><br></div><div>   v=0</div><div>   o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1</div>




<div>
<div>   s=FreeSWITCH</div><div>   c=IN IP4 127.0.0.1</div><div>   t=0 0</div></div><div>   m=audio 24896 RTP/AVP 0 101 13</div><div><div>   a=rtpmap:101 telephone-event/8000</div><div>   a=fmtp:101 0-16</div><div>
   a=ptime:20</div>
<div><br></div><div><br></div></div><div>On <a href="http://pastebin.freeswitch.org/16170" target="_blank">http://pastebin.freeswitch.org/16170</a> the SIP trace for:</div><div><br></div><div>originate {ignore_early_media,absolute_codec_string=&#39;G729,PCMU&#39;}user/1001 &amp;bridge(user/1000)</div>





<div><br></div><div>This is the SDP:</div><div><br></div><div>   v=0</div><div>   o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1</div><div><div>   s=FreeSWITCH</div><div>   c=IN IP4 127.0.0.1</div><div>   t=0 0</div>




</div><div>
   m=audio 25138 RTP/AVP 18 101 13</div><div><div>   a=rtpmap:101 telephone-event/8000</div><div>   a=fmtp:101 0-16</div><div>   a=ptime:20</div></div></div><div><div></div><div><div><br><br></div><div>
<br></div><div><br><div class="gmail_quote">On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <span dir="ltr">&lt;<a href="mailto:paul@cupis.co.uk" target="_blank">paul@cupis.co.uk</a>&gt;</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"><div>On 25/04/11 18:08, Nicolas Brenner wrote:<br>
&gt; I&#39;m trying to use the<br>
&gt; absolute_codec_string with originate from the console, like so:<br>
&gt;<br>
&gt; originate<br>
&gt; {ignore_early_media,verbose_sdp=true,absolute_codec_string=&#39;G729,PMCU&#39;}sofia/gateway/mygateway/444444<br>
&gt; &amp;bridge(user/1001)<br>
&gt;<br>
&gt; Paul, I am using {absolute_codec_string=&#39;G729,PCMU&#39;}, and I get the same as<br>
&gt; if I don&#39;t quote the string, or if I just specify one codec:<br>
<br>
</div>Can you provide (on <a href="http://pastebin.freeswitch.org" target="_blank">pastebin.freeswitch.org</a>) a complete log of a call,<br>
please?<br>
<div><div></div><div><br>
Regards,<br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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><br>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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><br>
<br></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto: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><br>
<br></blockquote></div><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">

</div>
</div></div><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></div>