Awesome! that worked perfectly. Thanks Steve.<div><br><br><div class="gmail_quote">On Tue, Apr 26, 2011 at 4:21 AM, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com">steveayre@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Oh, and you'll need a version since 14 April 2011 for it to work in {}. It'll work in [] since September 2010.<br>
<br>-Steve<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On 26 April 2011 09:20, Steven Ayre <span dir="ltr"><<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>></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><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='G729,PCMU'}<br></blockquote><br></div>The problem is that FS splits the variable names using commas. When there's a comma in a value it gets confused. Using quotation marks doesn't make any difference - they're treated as part of the value.<br>
<br>So FS is seeing this:<div><br>ignore_early_media<br>absolute_codec_string='G729<br>PCMU'<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 'treat the following character as a comma'. Now FS sees:<div><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><br><br><br><div class="gmail_quote">On 25 April 2011 21:44, Nicolas Brenner <span dir="ltr"><<a href="mailto:nico@clickfono.com" target="_blank">nico@clickfono.com</a>></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'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"><<a href="mailto:vetali100@gmail.com" target="_blank">vetali100@gmail.com</a>></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 "<span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px">ignore_early_media"</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 &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 &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"><<a href="mailto:nico@clickfono.com" target="_blank">nico@clickfono.com</a>></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'm making calls from the console to an X-Lite registered on extension 1001 which doesn'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 'G729,PCMU', 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 &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 &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='G729,PCMU'}user/1001 &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"><<a href="mailto:paul@cupis.co.uk" target="_blank">paul@cupis.co.uk</a>></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>
> I'm trying to use the<br>
> absolute_codec_string with originate from the console, like so:<br>
><br>
> originate<br>
> {ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444<br>
> &bridge(user/1001)<br>
><br>
> Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as<br>
> if I don'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></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>