addition of G.719 pass-through support

(closes issue #16293)
Reported by: malcolmd
Patches:
      g719.passthrough.patch.7 uploaded by malcolmd (license 924)
      format_g719.c uploaded by malcolmd (license 924)



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@270940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
David Vossel
2010-06-16 19:03:24 +00:00
parent 0bf94685fd
commit fcb055fb4e
9 changed files with 177 additions and 0 deletions

View File

@@ -294,6 +294,8 @@ extern struct ast_frame ast_null_frame;
/*! Maximum text mask */
#define AST_FORMAT_MAX_TEXT (1ULL << 28)
#define AST_FORMAT_TEXT_MASK (((1ULL << 30)-1) & ~(AST_FORMAT_AUDIO_MASK) & ~(AST_FORMAT_VIDEO_MASK))
/*! G.719 (64 kbps assumed) */
#define AST_FORMAT_G719 (1ULL << 32)
/*! Raw mu-law data (G.711) */
#define AST_FORMAT_TESTLAW (1ULL << 47)
/*! Reserved bit - do not use */
@@ -746,6 +748,8 @@ static force_inline int ast_format_rate(format_t format)
return 16000;
case AST_FORMAT_SIREN14:
return 32000;
case AST_FORMAT_G719:
return 48000;
default:
return 8000;
}