summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOlle Johansson <oej@edvina.net>2008-07-05 19:27:42 +0000
committerOlle Johansson <oej@edvina.net>2008-07-05 19:27:42 +0000
commit0a52297cf009170d6a8fa49617c0eb4ccab7a38f (patch)
tree66d5eda276da7f3e74e3e261874de6bef7f35b91 /include
parent509fd1aff7106a9e855f9e76d40f0731bc257e4f (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: https://origsvn.digium.com/svn/asterisk/trunk@128197 65c4cc65-6c06-0410-ace0-fbb531ad65f3
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);