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

Stephen Davies steve at daviesfam.org
Tue May 18 08:09:59 MST 2004


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




More information about the asterisk-dev mailing list