aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-05 19:27:42 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-05 19:27:42 +0000
commit1b3aa4be885923c2fe20ced67566fa662c3afa55 (patch)
tree66d5eda276da7f3e74e3e261874de6bef7f35b91 /include
parent304d288b7ec52e9c89f741666a24056f4e6f6534 (diff)
Add new SIP cli command "sip show channelstats" that displays some QoS data (if we have RTCP reports
and not use the p2p rtp bridge). I could not find a way to detect us using the p2p bridge, which would be nice. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@128197 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/rtp.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h
index 38fe8639c..800519572 100644
--- a/include/asterisk/rtp.h
+++ b/include/asterisk/rtp.h
@@ -69,6 +69,17 @@ enum ast_rtp_get_result {
AST_RTP_TRY_NATIVE,
};
+/*! \brief Variables used in ast_rtcp_get function */
+enum ast_rtp_qos_vars {
+ AST_RTP_TXCOUNT,
+ AST_RTP_RXCOUNT,
+ AST_RTP_TXJITTER,
+ AST_RTP_RXJITTER,
+ AST_RTP_RXPLOSS,
+ AST_RTP_TXPLOSS,
+ AST_RTP_RTT
+};
+
struct ast_rtp;
/*! T.140 Redundancy structure*/
struct rtp_red;
@@ -268,6 +279,10 @@ int ast_rtp_early_bridge(struct ast_channel *c0, struct ast_channel *c1);
/*! \brief Get QOS stats on a RTP channel */
int ast_rtp_get_qos(struct ast_rtp *rtp, const char *qos, char *buf, unsigned int buflen);
+
+/*! \brief Return RTP and RTCP QoS values */
+unsigned int ast_rtp_get_qosvalue(struct ast_rtp *rtp, enum ast_rtp_qos_vars value);
+
/*! \brief Set RTPAUDIOQOS(...) variables on a channel when it is being hung up */
void ast_rtp_set_vars(struct ast_channel *chan, struct ast_rtp *rtp);