Merge "res/res_ari: Added ARI resource /ari/channels/{channelId}/rtp_statistics"

This commit is contained in:
George Joseph
2019-04-08 10:51:45 -05:00
committed by Gerrit Code Review
8 changed files with 860 additions and 2 deletions

View File

@@ -2682,6 +2682,20 @@ struct stasis_message_type *ast_rtp_rtcp_sent_type(void);
*/
struct stasis_message_type *ast_rtp_rtcp_received_type(void);
/*!
* \brief Convert given stat instance into json format
* \param stats
* \retval A json format stat
*/
struct ast_json *ast_rtp_convert_stats_json(const struct ast_rtp_instance_stats *stats);
/*!
* \brief Retrieve statistics about an RTP instance in json format
* \param instance
* \retval json object of stats
*/
struct ast_json *ast_rtp_instance_get_stats_all_json(struct ast_rtp_instance *instance);
/*!
* \since 12
* \brief \ref stasis topic for RTP and RTCP related messages