Awesome! that worked perfectly. Thanks Steve.


On Tue, Apr 26, 2011 at 4:21 AM, Steven Ayre <steveayre@gmail.com> wrote:
Oh, and you'll need a version since 14 April 2011 for it to work in {}. It'll work in [] since September 2010.

-Steve



On 26 April 2011 09:20, Steven Ayre <steveayre@gmail.com> wrote:
{ignore_early_media,absolute_codec_string='G729,PCMU'}

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.

So FS is seeing this:

ignore_early_media
absolute_codec_string='G729
PCMU'

So the only codec that gets set is the G729.

There is a workaround for this. You want to use {ignore_early_media,absolute_codec_string=^^:G729:PCMU}.

The ^^ at the start of a value tells FS 'treat the following character as a comma'. Now FS sees:


ignore_early_media
absolute_codec_string=^^:G729:PCMU

And sets absolute_codec_string to G729,PCMU.

-Steve



On 25 April 2011 21:44, Nicolas Brenner <nico@clickfono.com> wrote:
Oops, sorry you are right, I copied it wrong, doesn't fix it though.


On Mon, Apr 25, 2011 at 3:35 PM, Vitalie Colosov <vetali100@gmail.com> wrote:
Maybe I am wrong, but I see a typo in the following string, after "ignore_early_media":

originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)

It should be:

originate {ignore_early_media=true,absolute_codec_string=G729}user/1001 &bridge(user/1000)

Vitalie


2011/4/25 Nicolas Brenner <nico@clickfono.com>
Thanks, yes, here you go:

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.



originate {ignore_early_media,absolute_codec_string=G729}user/1001 &bridge(user/1000)

This is the SDP:

   v=0
   o=FreeSWITCH 1303734153 1303734154 IN IP4 127.0.0.1
   s=FreeSWITCH
   c=IN IP4 127.0.0.1
   t=0 0
   m=audio 24036 RTP/AVP 18 101 13
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=ptime:20



originate {ignore_early_media,absolute_codec_string=PCMU}user/1001 &bridge(user/1000)

This is the SDP:

   v=0
   o=FreeSWITCH 1303733515 1303733516 IN IP4 127.0.0.1
   s=FreeSWITCH
   c=IN IP4 127.0.0.1
   t=0 0
   m=audio 24896 RTP/AVP 0 101 13
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=ptime:20



originate {ignore_early_media,absolute_codec_string='G729,PCMU'}user/1001 &bridge(user/1000)

This is the SDP:

   v=0
   o=FreeSWITCH 1303733520 1303733521 IN IP4 127.0.0.1
   s=FreeSWITCH
   c=IN IP4 127.0.0.1
   t=0 0
   m=audio 25138 RTP/AVP 18 101 13
   a=rtpmap:101 telephone-event/8000
   a=fmtp:101 0-16
   a=ptime:20




On Mon, Apr 25, 2011 at 2:20 PM, Paul Cupis <paul@cupis.co.uk> wrote:
On 25/04/11 18:08, Nicolas Brenner wrote:
> I'm trying to use the
> absolute_codec_string with originate from the console, like so:
>
> originate
> {ignore_early_media,verbose_sdp=true,absolute_codec_string='G729,PMCU'}sofia/gateway/mygateway/444444
> &bridge(user/1001)
>
> Paul, I am using {absolute_codec_string='G729,PCMU'}, and I get the same as
> if I don't quote the string, or if I just specify one codec:

Can you provide (on pastebin.freeswitch.org) a complete log of a call,
please?


_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org




_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org