[Freeswitch-users] ILBC takes precedence regardless of the codec prefs

Emrah lists at kavun.ch
Thu Dec 13 09:30:29 MSK 2012


Just answering my own question.
I was already doing it by using absolute_codec_string.

Thanks Ken
On Dec 13, 2012, at 1:15 AM, Emrah <lists at kavun.ch> wrote:

> thanks.
> How do you make FS's codec choice take precedence on outbound negotiations?
> I already have inbound-codec-negotiation = scrooge.
> 
> Cheers
> On Dec 13, 2012, at 1:01 AM, Ken Rice <krice at freeswitch.org> wrote:
> 
>> Keep in mind there are settings for who's codec list to follow for
>> preference order, FreeSWITCH's or the endpoints...
>> 
>> K
>> 
>> 
>> On 12/12/12 11:55 PM, "Emrah" <lists at kavun.ch> wrote:
>> 
>>> Hey Steven,
>>> 
>>> I operate in late negotiation mode and work with the dialplan, no global
>>> values on any call.
>>> I finally fixed it using absolute_codec_string.
>>> 
>>> Thanks a lot for your reply.
>>> 
>>> E
>>> On Dec 12, 2012, at 3:05 PM, Steven Ayre <steveayre at gmail.com> wrote:
>>> 
>>>> In your example FS is selecting the G711 alaw (PCMA) '8' codec. The client
>>>> offers it, the FS reply only returns the codec it has selected.
>>>> 
>>>> Try a debug level log of the call. It will show you a description of the
>>>> codec negotiation.
>>>> 
>>>> If you're not expecting the G711 codec to be accepted, check your codec
>>>> preferences. Inbound and outbound are separate parameters, and if you're
>>>> setting it from vars.conf.xml that sets a variable used in the sofia
>>>> profile... the profile could be using a static value that's different.
>>>> 
>>>> There are also other parameters that'll have an effect on a bridged call such
>>>> as late negotiation which would leave codec selection it up to the bleg.
>>>> 
>>>> 
>>>> 
>>>> -Steve
>>>> 
>>>> 
>>>> 
>>>> 
>>>> On 11 December 2012 22:02, Emrah <lists at kavun.ch> wrote:
>>>> Hi all,
>>>> 
>>>> I am using FreeSWITCH Version 1.2.5.3+git~20121206T050429Z~91eef34d5c (git
>>>> 91eef34 2012-12-06 05:04:29Z).
>>>> When mod_ilbc is loaded, ILBC is used in any session where the client offers
>>>> it, regardless of my codec preferences. This gets even stranger when you look
>>>> at the SIP traceŠ FS doesn't offer ILBC. This is brand new, I wanted to
>>>> enable ILBC just in case, and found out that I prefer it to G729.
>>>> 
>>>> Here's some output of a trace:
>>>> Client:
>>>> v=0.
>>>> o=- 3564251257 3564251257 IN IP4 10.0.0.102.
>>>> s=pjmedia.
>>>> c=IN IP4 10.0.0.102.
>>>> t=0 0.
>>>> a=X-nat:0.
>>>> m=audio 4000 RTP/AVP 103 102 104 109 3 0 8 9 101.
>>>> a=rtcp:4001 IN IP4 10.0.1.132.
>>>> a=rtpmap:103 speex/16000.
>>>> a=rtpmap:102 speex/8000.
>>>> a=rtpmap:104 speex/32000.
>>>> a=rtpmap:109 iLBC/8000.
>>>> a=fmtp:109 mode=30.
>>>> a=rtpmap:3 GSM/8000.
>>>> a=rtpmap:0 PCMU/8000.
>>>> a=rtpmap:8 PCMA/8000.
>>>> a=rtpmap:9 G722/8000.
>>>> a=sendrecv.
>>>> a=rtpmap:101 telephone-event/8000.
>>>> a=fmtp:101 0-15.
>>>> 
>>>> FS:
>>>> v=0.
>>>> o=FreeSWITCH 1355242302 1355242303 IN IP4 1.2.3.4.
>>>> s=FreeSWITCH.
>>>> c=IN IP4 1.2.3.4.
>>>> t=0 0.
>>>> m=audio 20042 RTP/AVP 8 101.
>>>> a=rtpmap:8 PCMA/8000.
>>>> a=rtpmap:101 telephone-event/8000.
>>>> a=fmtp:101 0-16.
>>>> a=silenceSupp:off - - - -.
>>>> a=ptime:20.
>>>> 
>>>> 
>>>> Your input is greatly appreciated, as always.
>>>> 
>>>> All the best,
>>>> Emrah
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>> 
>>>> 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
>>>> 
>>>> _________________________________________________________________________
>>>> Professional FreeSWITCH Consulting Services:
>>>> consulting at freeswitch.org
>>>> http://www.freeswitchsolutions.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> Official FreeSWITCH Sites
>>>> http://www.freeswitch.org
>>>> http://wiki.freeswitch.org
>>>> http://www.cluecon.com
>>>> 
>>>> 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
>>> 
>>> 
>>> _________________________________________________________________________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>> 
>>> 
>>> 
>>> 
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://wiki.freeswitch.org
>>> http://www.cluecon.com
>>> 
>>> 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
>> 
>> -- 
>> Ken
>> http://www.FreeSWITCH.org
>> http://www.ClueCon.com
>> http://www.OSTAG.org
>> irc.freenode.net #freeswitch
>> 
>> 
>> 
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>> 
>> 
>> 
>> 
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>> 
>> 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
> 




Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list