summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorJenkins2 <jenkins2@gerrit.asterisk.org>2017-12-15 12:15:42 -0600
committerGerrit Code Review <gerrit2@gerrit.digium.api>2017-12-15 12:15:42 -0600
commitc9bcd888a284f02d745988597ad70df9b0fd38ae (patch)
treeb50d1cd72e595bc59e6de9a812f726dcea67ca39 /include/asterisk
parent6a0505eee0c98e9539cc37bec22bd1ae3c1f2406 (diff)
parent98f7e9251f5dc9a7cf2eb82c77ec2796f00bce2f (diff)
Merge "res_rtp_asterisk.c: Disable packet flood detection for video streams."
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/rtp_engine.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h
index f9d686aca..c77be4584 100644
--- a/include/asterisk/rtp_engine.h
+++ b/include/asterisk/rtp_engine.h
@@ -1383,6 +1383,16 @@ int ast_rtp_codecs_payloads_set_rtpmap_type_rate(struct ast_rtp_codecs *codecs,
void ast_rtp_codecs_payloads_unset(struct ast_rtp_codecs *codecs, struct ast_rtp_instance *instance, int payload);
/*!
+ * \brief Determine the type of RTP stream media from the codecs mapped.
+ * \since 13.19.0
+ *
+ * \param codecs Codecs structure to look in
+ *
+ * \return Media type or AST_MEDIA_TYPE_UNKNOWN if no codecs mapped.
+ */
+enum ast_media_type ast_rtp_codecs_get_stream_type(struct ast_rtp_codecs *codecs);
+
+/*!
* \brief Retrieve rx payload mapped information by payload type
*
* \param codecs Codecs structure to look in