summaryrefslogtreecommitdiff
path: root/main/codec_builtin.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-04-14 10:21:13 +0000
committerRichard Mudgett <rmudgett@digium.com>2017-04-25 13:03:33 -0500
commit19a79ae12c73992508910d2c7cddc059e10bc48c (patch)
tree06dc0b37ebc6653b2c29cb08acf2f2f610d78689 /main/codec_builtin.c
parent32b3e36c683da0cea37a01c006037ff31f8a2b1d (diff)
sdp: Add support for T.38
This change adds a T.38 format which can be used in a stream topology to specify that a UDPTL stream needs to be created. The SDP API has been changed to understand T.38 and create the UDPTL session, add the attributes, and parse the attributes. This change does not change the boundary of the T.38 state machine. It is still up to the channel driver to implement and act on it (such as queueing control frames or reacting to them). ASTERISK-26949 Change-Id: If28956762ccb8ead562ac6c03d162d3d6014f2c7
Diffstat (limited to 'main/codec_builtin.c')
-rw-r--r--main/codec_builtin.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/main/codec_builtin.c b/main/codec_builtin.c
index f622c9105..3320900c2 100644
--- a/main/codec_builtin.c
+++ b/main/codec_builtin.c
@@ -822,6 +822,12 @@ static struct ast_codec t140 = {
.type = AST_MEDIA_TYPE_TEXT,
};
+static struct ast_codec t38 = {
+ .name = "t38",
+ .description = "T.38 UDPTL Fax",
+ .type = AST_MEDIA_TYPE_IMAGE,
+};
+
static int silk_samples(struct ast_frame *frame)
{
/* XXX This is likely not at all what's intended from this callback. However,
@@ -952,6 +958,7 @@ int ast_codec_builtin_init(void)
res |= CODEC_REGISTER_AND_CACHE(vp8);
res |= CODEC_REGISTER_AND_CACHE(t140red);
res |= CODEC_REGISTER_AND_CACHE(t140);
+ res |= CODEC_REGISTER_AND_CACHE(t38);
res |= CODEC_REGISTER_AND_CACHE(none);
res |= CODEC_REGISTER_AND_CACHE_NAMED("silk8", silk8);
res |= CODEC_REGISTER_AND_CACHE_NAMED("silk12", silk12);