]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fixes issue with undefined audio codecs in chan_iax2
authorDavid Vossel <dvossel@digium.com>
Fri, 20 Feb 2009 20:17:37 +0000 (20:17 +0000)
committerDavid Vossel <dvossel@digium.com>
Fri, 20 Feb 2009 20:17:37 +0000 (20:17 +0000)
commita5198f55e0919e4e36eca57af547c0f7769c2cc8
treeb4f4f9b15b9bdd59beebaa9e018f16c0c229e85a
parentd290eed8e0c78844d99d08c2a3cd1601574f6b7a
Fixes issue with undefined audio codecs in chan_iax2

During iax2 call negotiation, supported codecs are passed in an Information Element containing a 2 byte field where each bit correlates to a specific codec.  In 1.4 only audio codec bits 0-12 are defined, leaving bits 13-15 undefined.  By default all bits are enabled unless specified otherwise.  Since its a 2 byte field and 13-15 are not defined, these bits are never turned off.  In trunk, bits 13-15 are defined, which means 1.4 is advertising support for codecs it does not have when talking to trunk.  I fixed this by adding #define for undefined audio codec bits.  These bits are then removed from iax2's full bandwidth capabilities.

(closes issue #14283)
Reported by: jcovert

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@177696 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c
include/asterisk/frame.h