SIP Endpoint SDK for OS X
 All Classes Functions Properties
GSStatistics.h
1 //
2 // GSStatistics.h
3 // SipEndpoint
4 //
5 // Copyright (c) 2011-2018 Genesys Telecommunications Laboratories, Inc. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 
10 @interface GSStatistics : NSObject {
11 @private
12  int gotLocalStat; // positive if next 5 fields are valid (local stat available)
13  float localFractionLost; // fraction of lost packets (i.e. not locally received)
14  int localTotalLost; // total lost packaged (calculated per RFC 3550)
15  unsigned localJitter; // interarrival jitter
16  unsigned localPktCount; // local packet count (number of RTP packets sent from our side)
17  unsigned localOctCount; // local octet count (number of bytes sent)
18 
19  int gotRemoteSR; // true if next 2 fields are valid (got Sender Report from remote side)
20  unsigned remotePktCount; // remote packet count (number of packets sent by remote side)
21  unsigned remoteOctCount; // remote octet count
22 
23  int gotRemoteRR; // true if next 3 fields are valid (got Receiver Report from remote side)
24  float remoteFractionLost; // fraction of lost packets (i.e. not received by remote end)
25  int remoteTotalLost; // total lost packaged (calculated per RFC 3550)
26  unsigned remoteJitter; // interarrival jitter
27  int rttMs; // Round-trip time in milliseconds
28 
29  float vqLocalMOS; // local MOS for entire call segment
30  float vqLocalIntervalMOS; // local MOS for the last interval
31 
32  int gotNeteqStat; // positive if next 6 fields are valid (NetEQ stat available)
33  int localPktReceived; // total number of RTP packets received locally
34  struct timeval lastPktReceived; // timestamp of last RTP or RTCP packet received
35  // lastPktReceived.tv_sec = (time_t)( pgtime/1000);
36  // lastPktReceived.tv_usec = (suseconds_t)((pgtime%1000)*1000);
37 
38  int decoded10msNormal; // AudioDecodingStats (number of 10ms frames) - normal
39  int decoded10msPlc; // - Packet Loss Concealment
40  int decoded10msCng; // - Comfort Noise Generation
41  int decoded10msSilence; // - dead silence
42 }
43 
44 @property (nonatomic) int gotLocalStat;
45 @property (nonatomic) float localFractionLost;
46 @property (nonatomic) int localTotalLost;
47 @property (nonatomic) unsigned localJitter;
48 @property (nonatomic) unsigned localPktCount;
49 @property (nonatomic) unsigned localOctCount;
50 
51 @property (nonatomic) int gotRemoteSR;
52 @property (nonatomic) unsigned remotePktCount;
53 @property (nonatomic) unsigned remoteOctCount;
54 
55 @property (nonatomic) int gotRemoteRR;
56 @property (nonatomic) float remoteFractionLost;
57 @property (nonatomic) int remoteTotalLost;
58 @property (nonatomic) unsigned remoteJitter;
59 @property (nonatomic) int rttMs;
60 @property (nonatomic) float vqLocalMOS;
61 @property (nonatomic) float vqLocalIntervalMOS;
62 
63 @property (nonatomic) int gotNeteqStat;
64 @property (nonatomic) int localPktReceived;
65 @property (nonatomic) struct timeval lastPktReceived;
66 
67 @property (nonatomic) int decoded10msNormal;
68 @property (nonatomic) int decoded10msPlc;
69 @property (nonatomic) int decoded10msCng;
70 @property (nonatomic) int decoded10msSilence;
71 
72 @end