diff options
Diffstat (limited to 'include/asterisk/rtp.h')
-rw-r--r-- | include/asterisk/rtp.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/include/asterisk/rtp.h b/include/asterisk/rtp.h index 5eea063db..47cc26212 100644 --- a/include/asterisk/rtp.h +++ b/include/asterisk/rtp.h @@ -84,6 +84,17 @@ 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 */ +}; /*! RTP callback structure */ typedef int (*ast_rtp_callback)(struct ast_rtp *rtp, struct ast_frame *f, void *data); @@ -219,12 +230,12 @@ int ast_rtp_make_compatible(struct ast_channel *dest, struct ast_channel *src, i having to send a re-invite later */ int ast_rtp_early_bridge(struct ast_channel *c0, struct ast_channel *c1); - +/*! \brief Return RTCP quality string */ +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); -char *ast_rtp_get_quality(struct ast_rtp *rtp); /*! \brief Return RTCP quality string */ void ast_rtp_init(void); /*! Initialize RTP subsystem */ int ast_rtp_reload(void); /*! reload rtp configuration */ void ast_rtp_new_init(struct ast_rtp *rtp); |