[asterisk-commits] rtp engine: Init a format-attribute module to its RFC defaults. (asterisk[11])
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Nov 11 08:09:42 CST 2015
Matt Jordan has submitted this change and it was merged.
Change subject: rtp_engine: Init a format-attribute module to its RFC defaults.
......................................................................
rtp_engine: Init a format-attribute module to its RFC defaults.
Previously, format-attribute modules relied on an existing fmtp line in SDP
negotiation. However, fmtp is optional for several formats like the Opus Codec.
Now, the format-attribute module is called with an empty fmtp, which allows the
module to initialise itself to RFC defaults. Furthermore now, Asterisk is able
to differentiate between internally and externally created formats.
ASTERISK-25537 #close
Change-Id: I28f680cef7fdf51c0969ff8da71548edad72ec52
---
M main/rtp_engine.c
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Anonymous Coward #1000019: Verified
Matt Jordan: Looks good to me, approved
Joshua Colp: Looks good to me, but someone else must approve
diff --git a/main/rtp_engine.c b/main/rtp_engine.c
index 944c477..422a297 100644
--- a/main/rtp_engine.c
+++ b/main/rtp_engine.c
@@ -621,6 +621,8 @@
ast_format_set(&type->format, AST_FORMAT_G726_AAL2, 0);
}
+ ast_format_sdp_parse(&type->format, "");
+
if (instance && instance->engine && instance->engine->payload_set) {
instance->engine->payload_set(instance, pt, type->asterisk_format, &type->format, type->rtp_code);
}
--
To view, visit https://gerrit.asterisk.org/1594
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I28f680cef7fdf51c0969ff8da71548edad72ec52
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Alexander Traud <pabstraud at compuserve.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matt Jordan <mjordan at digium.com>
More information about the asterisk-commits
mailing list