summaryrefslogtreecommitdiff
path: root/main/channel.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-02-14 01:12:21 +0000
committerJoshua Colp <jcolp@digium.com>2007-02-14 01:12:21 +0000
commit8470ee5cd03728bdbb2ae666186834034f9fbf1b (patch)
tree728307d33c7c9f428bc19cf8f58a864fda654c68 /main/channel.c
parentf60efe347a9e0cceb9d2c917f86324fc6365dba6 (diff)
Merged revisions 54290 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r54290 | file | 2007-02-13 20:09:40 -0500 (Tue, 13 Feb 2007) | 2 lines Add G722 to ast_best_codec. If anyone disagrees with it's placement, feel free to change it. (issue #9045 reported by gork) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@54291 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/channel.c')
-rw-r--r--main/channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/channel.c b/main/channel.c
index b02178d39..94e21d082 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -567,6 +567,8 @@ int ast_best_codec(int fmts)
AST_FORMAT_ULAW,
/*! Unless of course, you're a silly European, so then prefer ALAW */
AST_FORMAT_ALAW,
+ /*! G.722 is better then all below, but not as common as the above... so give ulaw and alaw priority */
+ AST_FORMAT_G722,
/*! Okay, well, signed linear is easy to translate into other stuff */
AST_FORMAT_SLINEAR,
/*! G.726 is standard ADPCM, in RFC3551 packing order */