mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
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
This commit is contained in:
committed by
Richard Mudgett
parent
32b3e36c68
commit
19a79ae12c
@@ -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);
|
||||
|
Reference in New Issue
Block a user