[Asterisk-Dev] You can't really prioritise choice of codec, can you?

Rob Gagnon rob at networkip.net
Tue May 18 08:17:56 MST 2004


Here we go again....

----- Original Message ----- 
From: "Stephen Davies" <steve at daviesfam.org>
To: <asterisk-dev at lists.digium.com>
Sent: Tuesday, May 18, 2004 10:09 AM
Subject: [Asterisk-Dev] You can't really prioritise choice of codec, can
you?


> Hi,
>
> In the example sip.conf it states that you allow codecs in "order of
> preference".  This is also implied in the iax.conf example.
>
> However - reviewing the code, the codecs allowed are stored in a
> bitmapped "capability" - no record is kept of the sequence by which
> things are disallowed and allowed.
>
> Therefore I believe the conf files are wrong - Asterisk will always
> follow its own built-in idea of the preference of codecs.
>
> That preference is encoded in ast_best_codec - we pick the first in
> that list that is supported by both us and the peer.  I note that the
> priorities are not coded with the needs of bandwidth constrained
> users.
>
> I'd suggest that the .conf file comments should be changed so we don't
> lead users down the garden path.  And perhaps we could add the ability
> to resequence the list in ast_best_codec via a config file.
>
> What do others think?
>
> Steve
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev
>




More information about the asterisk-dev mailing list