add more rtp statistics with several new vars for cdr processing in_jitter_min_variance in_jitter_max_variance in_jitter_loss_rate in_jitter_burst_rate in_mean_interval in_flaw_total in_quality_percentage in_mos

This commit is contained in:
Anthony Minessale
2014-01-30 05:08:27 +05:00
parent fa0de66ec8
commit 32b2a45efc
6 changed files with 469 additions and 14 deletions
+32
View File
@@ -227,6 +227,15 @@ SWITCH_BEGIN_EXTERN_C
#define SWITCH_MAX_TRANS 2000
#define SWITCH_CORE_SESSION_MAX_PRIVATES 2
/* Jitter */
#define JITTER_VARIANCE_THRESHOLD 400.0
/* IPDV */
#define IPDV_THRESHOLD 1.0
/* Burst and Lost Rate */
#define LOST_BURST_ANALYZE 500
/* Burst */
#define LOST_BURST_CAPTURE 1024
typedef uint8_t switch_byte_t;
typedef enum {
@@ -591,6 +600,29 @@ typedef struct {
switch_size_t cng_packet_count;
switch_size_t flush_packet_count;
switch_size_t largest_jb_size;
/* Jitter */
int64_t last_proc_time;
int64_t jitter_n;
int64_t jitter_add;
int64_t jitter_addsq;
double variance;
double min_variance;
double max_variance;
double std_deviation;
/* Burst and Packet Loss */
double lossrate;
double burstrate;
double mean_interval;
int loss[LOST_BURST_CAPTURE];
int last_loss;
int recved;
int last_processed_seq;
switch_size_t flaws;
switch_size_t last_flaw;
double R;
double mos;
} switch_rtp_numbers_t;