summaryrefslogtreecommitdiff
path: root/include/asterisk/sdp.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2017-03-27 20:32:45 +0000
committerJoshua Colp <jcolp@digium.com>2017-03-30 18:26:10 +0000
commitf3290d6b664bd2b6ed840b7501666e26b341acb1 (patch)
tree7a796814363551c54ee07364265102b9a7b47243 /include/asterisk/sdp.h
parent3bdf876b045653c427df0a7a771e90dd15fa1527 (diff)
sdp: Add support for setting connection address and clean up state.
This change cleans up state management for media streams by moving RTP instances into their own session structure and adding additional details that are not relevant to the core (such as connection address). These can live either in the local capabilities or joint capabilities. The ability to set explicit connection address information for the purposes of direct media and NAT has also been added at the global and stream specific level. ASTERISK-26900 Change-Id: If7e5307239a9534420732de11c451a2705b6b681
Diffstat (limited to 'include/asterisk/sdp.h')
-rw-r--r--include/asterisk/sdp.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/asterisk/sdp.h b/include/asterisk/sdp.h
index 4d6d2fbb5..3649b4037 100644
--- a/include/asterisk/sdp.h
+++ b/include/asterisk/sdp.h
@@ -395,20 +395,20 @@ struct ast_sdp_a_line *ast_sdp_get_a(const struct ast_sdp *sdp, int index);
int ast_sdp_add_m(struct ast_sdp *sdp, struct ast_sdp_m_line *m_line);
/*!
- * \brief Add a Media Description to an SDP
+ * \brief Add an RTP Media Description to an SDP
*
* \param sdp SDP
+ * \param sdp_state SDP state information
* \param options SDP Options
- * \param rtp ast_rtp_instance
- * \param stream stream
+ * \param stream_index stream
*
* \retval 0 Success
* \retval non-0 Failure
*
* \since 15
*/
-int ast_sdp_add_m_from_stream(struct ast_sdp *sdp, const struct ast_sdp_options *options,
- struct ast_rtp_instance *rtp, const struct ast_stream *stream);
+int ast_sdp_add_m_from_rtp_stream(struct ast_sdp *sdp, const struct ast_sdp_state *sdp_state,
+ const struct ast_sdp_options *options, int stream_index);
/*!
* \brief Get the count of Media Descriptions on an SDP