[asterisk-commits] oej: trunk r48258 - in /trunk:
include/asterisk/frame.h main/frame.c main/rtp.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Dec 5 03:52:53 MST 2006
Author: oej
Date: Tue Dec 5 04:52:53 2006
New Revision: 48258
URL: http://svn.digium.com/view/asterisk?view=rev&rev=48258
Log:
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)
Modified:
trunk/include/asterisk/frame.h
trunk/main/frame.c
trunk/main/rtp.c
Modified: trunk/include/asterisk/frame.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/frame.h?view=diff&rev=48258&r1=48257&r2=48258
==============================================================================
--- trunk/include/asterisk/frame.h (original)
+++ trunk/include/asterisk/frame.h Tue Dec 5 04:52:53 2006
@@ -52,7 +52,7 @@
\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 @@
/*! 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 */
Modified: trunk/main/frame.c
URL: http://svn.digium.com/view/asterisk/trunk/main/frame.c?view=diff&rev=48258&r1=48257&r2=48258
==============================================================================
--- trunk/main/frame.c (original)
+++ trunk/main/frame.c Tue Dec 5 04:52:53 2006
@@ -130,6 +130,10 @@
{ 0, 0, "nothing", "undefined" },
{ 0, 0, "nothing", "undefined" },
{ 0, AST_FORMAT_MAX_VIDEO, "maxvideo", "Maximum video format" },
+ { 0, AST_FORMAT_T140, "t140", "Passthrough T.140 Realtime Text" },
+ { 0, 0, "nothing", "undefined" },
+ { 0, 0, "nothing", "undefined" },
+ { 0, AST_FORMAT_MAX_TEXT, "maxtext", "Maximum text format" },
};
struct ast_frame ast_null_frame = { AST_FRAME_NULL, };
Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?view=diff&rev=48258&r1=48257&r2=48258
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Tue Dec 5 04:52:53 2006
@@ -1408,6 +1408,7 @@
{{1, AST_FORMAT_H263}, "video", "H263"},
{{1, AST_FORMAT_H263_PLUS}, "video", "h263-1998"},
{{1, AST_FORMAT_H264}, "video", "H264"},
+ {{1, AST_FORMAT_T140}, "text", "T140"},
};
/* Static (i.e., well-known) RTP payload types for our "AST_FORMAT..."s:
@@ -1439,6 +1440,7 @@
[97] = {1, AST_FORMAT_ILBC},
[99] = {1, AST_FORMAT_H264},
[101] = {0, AST_RTP_DTMF},
+ [102] = {0, AST_FORMAT_T140}, /* Real time text chat */
[110] = {1, AST_FORMAT_SPEEX},
[111] = {1, AST_FORMAT_G726},
[112] = {1, AST_FORMAT_G726_AAL2},
More information about the asterisk-commits
mailing list