aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/frame.h
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-05 10:52:53 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-12-05 10:52:53 +0000
commit1158861b78d4071b5bb6c3992b6eeef081bfe125 (patch)
tree7cab612091d9a2a9d351eb3ab073b6670653cf5f /include/asterisk/frame.h
parent99dfd35cae5ab2b6c02542c2a1fd8dbbc46c91f7 (diff)
Reserving flags for coming code (currently in the "videocaps" branch)
implementing T.140 support in RTP. T.140/RFC 4351 is TDD over IP - text telephony for hearing impaired. It defines a realtime text chat, much like the old "talk" application in Unix. T.140 is character by character in real time. It's not the same as our current MESSAGE format - that is more like IM, but can be gatewayed to MESSAGE with a text "codec" if needed. More patches will follow, as soon as we've separated this code from the video capabilities functions in the videocaps branch. Code by John Martin, Aupix (disclaimer on file) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48258 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/frame.h')
-rw-r--r--include/asterisk/frame.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index 5e02e670d..475317a23 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -52,7 +52,7 @@ struct ast_codec_pref {
\arg \b VIDEO: Video data, subclass is codec (AST_FORMAT_*)
\arg \b DTMF: A DTMF digit, subclass is the digit
\arg \b IMAGE: Image transport, mostly used in IAX
- \arg \b TEXT: Text messages
+ \arg \b TEXT: Text messages and character by character (real time text)
\arg \b HTML: URL's and web pages
\arg \b MODEM: Modulated data encodings, such as T.38 and V.150
\arg \b IAX: Private frame type for the IAX protocol
@@ -261,6 +261,10 @@ extern struct ast_frame ast_null_frame;
/*! Maximum video format */
#define AST_FORMAT_MAX_VIDEO (1 << 24)
#define AST_FORMAT_VIDEO_MASK (((1 << 25)-1) & ~(AST_FORMAT_AUDIO_MASK))
+/*! T.140 Text format - ITU T.140, RFC 4351*/
+#define AST_FORMAT_T140 (1 << 25)
+#define AST_FORMAT_MAX_TEXT (1 << 26)
+#define AST_FORMAT_TEXT_MASK (((1 << 25)-1) & ~(AST_FORMAT_AUDIO_MASK))
enum ast_control_frame_type {
AST_CONTROL_HANGUP = 1, /*!< Other end has hungup */