Respect codec preference order when adding codecs to a media description.
authorJoshua Colp <jcolp@digium.com>
Tue, 10 Jul 2012 14:00:05 +0000 (14:00 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 10 Jul 2012 14:00:05 +0000 (14:00 +0000)
commit74ebe6d5aba740c5586ee13dba9b8e0b778fd76a
tree16981b167d687f9f67c0cdcec221520e4071cf94
parent6416a246edb7aca07a595098515591af7a92fb94
Respect codec preference order when adding codecs to a media description.

This change allows an endpoint in motif.conf to be configured with a preference of G.722 and fallback of ulaw. With Google this allows communication with Google Talk clients to use G.722 while when using Google Voice ulaw will be used.

(closes issue ASTERISK-20114)
Reported by: Malcolm Davenport

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