diff options
author | David Vossel <dvossel@digium.com> | 2010-06-16 19:03:24 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2010-06-16 19:03:24 +0000 |
commit | fcb055fb4ec3fb5918c03948dee3f1c7b65b31df (patch) | |
tree | eb89a0c0e7202e0334ef137f72ccc24c3f646432 /include/asterisk/frame.h | |
parent | 0bf94685fdc87543fe2f894928ee48245e527875 (diff) |
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
Diffstat (limited to 'include/asterisk/frame.h')
-rw-r--r-- | include/asterisk/frame.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index b2032b8d1..cbe8cfd07 100644 --- a/include/asterisk/frame.h +++ b/include/asterisk/frame.h @@ -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; } |