summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2006-12-05 10:52:53 +0000
committerOlle Johansson <oej@edvina.net>2006-12-05 10:52:53 +0000
commitb8fcae6d7538fa4cad8d9099965371c3138b6528 (patch)
tree7cab612091d9a2a9d351eb3ab073b6670653cf5f /main
parent02a66bee1de77a642a3cf70bd2d48632ba3e3fd2 (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: https://origsvn.digium.com/svn/asterisk/trunk@48258 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r--main/frame.c4
-rw-r--r--main/rtp.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/main/frame.c b/main/frame.c
index 681f36892..bac9340c7 100644
--- a/main/frame.c
+++ b/main/frame.c
@@ -130,6 +130,10 @@ static struct ast_format_list AST_FORMAT_LIST[] = { /*!< Bit number: comment
{ 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, };
diff --git a/main/rtp.c b/main/rtp.c
index 93c92a845..307ae1888 100644
--- a/main/rtp.c
+++ b/main/rtp.c
@@ -1408,6 +1408,7 @@ static struct {
{{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 @@ static struct rtpPayloadType static_RTP_PT[MAX_RTP_PT] = {
[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},