chan_iax2: Restore previous behavior of iax2_best_codec.
authorJoshua Colp <jcolp@digium.com>
Tue, 22 Jul 2014 14:36:26 +0000 (14:36 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 22 Jul 2014 14:36:26 +0000 (14:36 +0000)
commit84beaf27bc2605fa93d78ab2285aa945dbd08db0
tree8fe85e82339658e16992cdeb9721f43544509e6d
parent9056c23bbd7247bc7b6f122382c84a759d64cef9
chan_iax2: Restore previous behavior of iax2_best_codec.

The iax2_best_codec function was changed to convert the formats
into a format compatibilities structure and grab the first
format from it. The resulting order differs from the previous
order of iax2_best_codec which causes unexpected formats to
get chosen (such as g723).

This commit brings back the old behavior of iax2_best_codec by
having a specified preference list.

Review: https://reviewboard.asterisk.org/r/3835/

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@419180 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c