aboutsummaryrefslogtreecommitdiffstats
path: root/main/channel.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-14 01:09:40 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-02-14 01:09:40 +0000
commit9c53918df545013586d1a38fcb3fab98e33271eb (patch)
tree4ce33a8e22d6897a3c656f22966eaa186508fc71 /main/channel.c
parent03434bc6eb92f73544fb098e4c1087c3fa006f36 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@54290 f38db490-d61c-443f-a65b-d21fe96a405b
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 9f2c19d4d..2b40c1027 100644
--- a/main/channel.c
+++ b/main/channel.c
@@ -668,6 +668,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 */