diff options
author | Joshua Colp <jcolp@digium.com> | 2016-04-05 05:37:44 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-04-05 05:37:44 -0500 |
commit | 051da5c3af90c8557577ae98cf0e32feefb3c927 (patch) | |
tree | 12cd00c9b1b8442f9cc26de3cfd0eb4599ed035f /include | |
parent | c07e1190ec02573d80d007b6d7279b14cde8655b (diff) | |
parent | 970803efcb291d73bfdb0ffb91934b5a4faa1dc5 (diff) |
Merge "res_rtp_asterisk: Use separate SRTP session for RTCP with DTLS"
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/rtp_engine.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h index 411ae8abf..a40472e9d 100644 --- a/include/asterisk/rtp_engine.h +++ b/include/asterisk/rtp_engine.h @@ -2236,20 +2236,22 @@ int ast_rtp_instance_sendcng(struct ast_rtp_instance *instance, int level); * \param instance the RTP instance * \param remote_policy the remote endpoint's policy * \param local_policy our policy for this RTP instance's remote endpoint + * \param rtcp 1 for dedicated RTCP policies * * \retval 0 Success * \retval non-zero Failure */ -int ast_rtp_instance_add_srtp_policy(struct ast_rtp_instance *instance, struct ast_srtp_policy* remote_policy, struct ast_srtp_policy *local_policy); +int ast_rtp_instance_add_srtp_policy(struct ast_rtp_instance *instance, struct ast_srtp_policy* remote_policy, struct ast_srtp_policy *local_policy, int rtcp); /*! * \brief Obtain the SRTP instance associated with an RTP instance * * \param instance the RTP instance + * \param rtcp 1 to request instance for RTCP * \retval the SRTP instance on success * \retval NULL if no SRTP instance exists */ -struct ast_srtp *ast_rtp_instance_get_srtp(struct ast_rtp_instance *instance); +struct ast_srtp *ast_rtp_instance_get_srtp(struct ast_rtp_instance *instance, int rtcp); /*! \brief Custom formats declared in codecs.conf at startup must be communicated to the rtp_engine * so their mime type can payload number can be initialized. */ |