mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
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
This commit is contained in:
@@ -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);
|
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)
|
#if defined(__cplusplus) || defined(c_plusplus)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1615,3 +1615,8 @@ int ast_rtp_instance_get_hold_timeout(struct ast_rtp_instance *instance)
|
|||||||
{
|
{
|
||||||
return instance->holdtimeout;
|
return instance->holdtimeout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
struct ast_rtp_engine *ast_rtp_instance_get_engine(struct ast_rtp_instance *instance)
|
||||||
|
{
|
||||||
|
return instance->engine;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user