summaryrefslogtreecommitdiff
path: root/include/asterisk/rtp_engine.h
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2009-08-13 16:44:54 +0000
committerJoshua Colp <jcolp@digium.com>2009-08-13 16:44:54 +0000
commit1effb11ef571e3248f48b68096ba25c5fcdda98f (patch)
tree4ad40cf5aa73b9c0ba52dc585cbbf92727ca9224 /include/asterisk/rtp_engine.h
parentc3bc5cf567f1fa19a417c22316b287b579596185 (diff)
Add an API call for retrieving the engine in use by an RTP instance.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@212161 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/rtp_engine.h')
-rw-r--r--include/asterisk/rtp_engine.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h
index d87feb9f4..605cc17a7 100644
--- a/include/asterisk/rtp_engine.h
+++ b/include/asterisk/rtp_engine.h
@@ -1639,6 +1639,25 @@ int ast_rtp_instance_get_timeout(struct ast_rtp_instance *instance);
*/
int ast_rtp_instance_get_hold_timeout(struct ast_rtp_instance *instance);
+/*!
+ * \brief Get the RTP engine in use on an RTP instance
+ *
+ * \param instance The RTP instance
+ *
+ * \retval pointer to the engine
+ *
+ * Example usage:
+ *
+ * \code
+ * struct ast_rtp_engine *engine = ast_rtp_instance_get_engine(instance);
+ * \endcode
+ *
+ * This gets the RTP engine currently in use on the RTP instance pointed to by 'instance'.
+ *
+ * \since 1.6.3
+ */
+struct ast_rtp_engine *ast_rtp_instance_get_engine(struct ast_rtp_instance *instance);
+
#if defined(__cplusplus) || defined(c_plusplus)
}
#endif