summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorzuul <zuul@gerrit.asterisk.org>2016-03-29 14:28:36 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2016-03-29 14:28:36 -0500
commite595f02f83137cf92dd2a7f2567a73d6a88a2ff2 (patch)
tree8be1186191a1820aa51c933dff42326f23bb998e /include/asterisk
parent7b7e3909e492df29d5d51e885f9328a23e61cb6a (diff)
parent1bce690ccb36a4744a327c07af23a9a3a0fa20cd (diff)
Merge "res_rtp_asterisk: Fix packet stats on bridged connection" into 13
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/rtp_engine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/rtp_engine.h b/include/asterisk/rtp_engine.h
index c79554bf0..f9a568520 100644
--- a/include/asterisk/rtp_engine.h
+++ b/include/asterisk/rtp_engine.h
@@ -228,6 +228,10 @@ enum ast_rtp_instance_stat {
AST_RTP_INSTANCE_STAT_REMOTE_SSRC,
/*! Retrieve channel unique ID */
AST_RTP_INSTANCE_STAT_CHANNEL_UNIQUEID,
+ /*! Retrieve number of octets transmitted */
+ AST_RTP_INSTANCE_STAT_TXOCTETCOUNT,
+ /*! Retrieve number of octets received */
+ AST_RTP_INSTANCE_STAT_RXOCTETCOUNT,
};
/* Codes for RTP-specific data - not defined by our AST_FORMAT codes */
@@ -355,6 +359,10 @@ struct ast_rtp_instance_stats {
unsigned int remote_ssrc;
/*! The Asterisk channel's unique ID that owns this instance */
char channel_uniqueid[MAX_CHANNEL_ID];
+ /*! Number of octets transmitted */
+ unsigned int txoctetcount;
+ /*! Number of octets received */
+ unsigned int rxoctetcount;
};
#define AST_RTP_STAT_SET(current_stat, combined, placement, value) \