[Freeswitch-users] absolute_codec_string question

Michael Collins msc at freeswitch.org
Tue Apr 26 23:53:51 MSD 2011


This email is a perfect example of community members stepping up! Thanks
Steven!!
-MC

On Tue, Apr 26, 2011 at 1:20 AM, Steven Ayre <steveayre at 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 at 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 at 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 at 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.
>>>>
>>>>
>>>> On http://pastebin.freeswitch.org/16167 the SIP trace for:
>>>>
>>>> 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
>>>>
>>>>
>>>> On http://pastebin.freeswitch.org/16169 the SIP trace for:
>>>>
>>>> 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
>>>>
>>>>
>>>> On http://pastebin.freeswitch.org/16170 the SIP trace for:
>>>>
>>>> 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 at 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?
>>>>>
>>>>> Regards,
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> FreeSWITCH-users mailing list
>>>>> FreeSWITCH-users at 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 at 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 at 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 at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110426/c0161408/attachment-0001.html 


More information about the FreeSWITCH-users mailing list