aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-16 19:03:24 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-16 19:03:24 +0000
commit497bf0b92cad547930d1846fe2d23d3430a4316a (patch)
treeeb89a0c0e7202e0334ef137f72ccc24c3f646432 /include
parent5c51759e156fdd9bcf254f965c63c4969e393055 (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: http://svn.digium.com/svn/asterisk/trunk@270940 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/frame.h4
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;
}