aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-26 17:45:55 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-03-26 17:45:55 +0000
commit96cdb024f43947eeb05c3c0f4cddb36c2b4c4a0d (patch)
tree50926d71aaf542b57e649218c4c7bf89a2342222 /include
parent447253fbc7b4ab5376f622c323ab2046248563c7 (diff)
The AUDIORTPQOS and VIDEORTPQOS variables are not fully functional in some
because they get set in sip_hangup. So, there are common situations where the variables will not be available in the dialplan at all. So, this patch provides an alternate method for getting to this information by introducing AUDIORTPQOS and VIDEORTPQOS dialplan functions. (issue #9370, patch by Corydon76, with some testing by blitzrage) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59207 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/rtp.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h
index 501068987..cbcb6aae6 100644
--- a/include/asterisk/rtp.h
+++ b/include/asterisk/rtp.h
@@ -77,6 +77,18 @@ struct ast_rtp_protocol {
AST_LIST_ENTRY(ast_rtp_protocol) list;
};
+struct ast_rtp_quality {
+ unsigned int local_ssrc; /* Our SSRC */
+ unsigned int local_lostpackets; /* Our lost packets */
+ double local_jitter; /* Our calculated jitter */
+ unsigned int local_count; /* Number of received packets */
+ unsigned int remote_ssrc; /* Their SSRC */
+ unsigned int remote_lostpackets; /* Their lost packets */
+ double remote_jitter; /* Their reported jitter */
+ unsigned int remote_count; /* Number of transmitted packets */
+ double rtt; /* Round trip time */
+};
+
#define FLAG_3389_WARNING (1 << 0)
@@ -206,7 +218,7 @@ int ast_rtp_early_bridge(struct ast_channel *dest, struct ast_channel *src);
void ast_rtp_stop(struct ast_rtp *rtp);
/*! \brief Return RTCP quality string */
-char *ast_rtp_get_quality(struct ast_rtp *rtp);
+char *ast_rtp_get_quality(struct ast_rtp *rtp, struct ast_rtp_quality *qual);
/*! \brief Send an H.261 fast update request. Some devices need this rather than the XML message in SIP */
int ast_rtcp_send_h261fur(void *data);