add passthrough and file format support for G.722 16KHz audio (issue #5084, original patch by andrew, updated by mithraen)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46154 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2006-10-25 00:26:17 +00:00
parent 05eb71c699
commit 6c17f1e07e
7 changed files with 36 additions and 12 deletions

View File

@@ -2995,6 +2995,8 @@ static char *convertcap(int cap)
return "ULAW";
case AST_FORMAT_ALAW:
return "ALAW";
case AST_FORMAT_G722:
return "G.722";
case AST_FORMAT_ADPCM:
return "G.728";
case AST_FORMAT_G729A:

View File

@@ -183,7 +183,8 @@ int (*iax2_regfunk)(const char *username, int onoff) = NULL;
#define IAX_CAPABILITY_MEDBANDWIDTH (IAX_CAPABILITY_FULLBANDWIDTH & \
~AST_FORMAT_SLINEAR & \
~AST_FORMAT_ULAW & \
~AST_FORMAT_ALAW)
~AST_FORMAT_ALAW & \
~AST_FORMAT_G722)
/* A modem */
#define IAX_CAPABILITY_LOWBANDWIDTH (IAX_CAPABILITY_MEDBANDWIDTH & \
~AST_FORMAT_G726 & \