FreeSWITCH API Documentation  1.7.0
switch_rtcp_frame.h
Go to the documentation of this file.
1 /*
2  * FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
3  * Copyright (C) 2005-2014, Anthony Minessale II <anthm@freeswitch.org>
4  *
5  * Version: MPL 1.1
6  *
7  * The contents of this file are subject to the Mozilla Public License Version
8  * 1.1 (the "License"); you may not use this file except in compliance with
9  * the License. You may obtain a copy of the License at
10  * http://www.mozilla.org/MPL/
11  *
12  * Software distributed under the License is distributed on an "AS IS" basis,
13  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
14  * for the specific language governing rights and limitations under the
15  * License.
16  *
17  * The Original Code is FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
18  *
19  * The Initial Developer of the Original Code is
20  * Anthony Minessale II <anthm@freeswitch.org>
21  * Portions created by the Initial Developer are Copyright (C)
22  * the Initial Developer. All Rights Reserved.
23  *
24  * Contributor(s):
25  *
26  * Sherwin Sim
27  *
28  *
29  * switch_rtcp_frame.h -- RTCP Frame Structure
30  *
31  */
32 /*! \file switch_rtcp_frame.h
33  \brief RTCP Frame Structure
34 */
35 
36 #ifndef SWITCH_RTCP_FRAME_H
37 #define SWITCH_RTCP_FRAME_H
38 
39 #include <switch.h>
40 
41 #define MAX_REPORT_BLOCKS 5
42 
44 
46  uint32_t ssrc; /* The SSRC identifier of the source to which the information in this reception report block pertains. */
47  uint8_t fraction; /* The fraction of RTP data packets from source SSRC_n lost since the previous SR or RR packet was sent */
48  uint32_t lost; /* The total number of RTP data packets from source SSRC_n that have been lost since the beginning of reception */
50  uint32_t jitter; /* An estimate of the statistical variance of the RTP data packet interarrival time, measured in timestamp units and expressed as an unsigned integer. */
51  uint32_t lsr; /* The middle 32 bits out of 64 in the NTP timestamp */
52  uint32_t dlsr; /* The delay, expressed in units of 1/65536 seconds, between receiving the last SR packet from source SSRC_n and sending this reception report block */
53  uint32_t loss_avg;
54  double rtt_avg;
55 };
56 
57 /*! \brief An abstraction of a rtcp frame */
59 
60  uint16_t report_count;
61 
62  uint16_t packet_type;
63 
64  uint32_t ssrc;
65 
66  uint32_t ntp_msw;
67 
68  uint32_t ntp_lsw;
69 
70  uint32_t timestamp;
71 
72  uint32_t packet_count;
73 
74  uint32_t octect_count;
75 
76  uint32_t nb_reports;
77 
79 
80 };
81 
83 #endif
84 /* For Emacs:
85  * Local Variables:
86  * mode:c
87  * indent-tabs-mode:t
88  * tab-width:4
89  * c-basic-offset:4
90  * End:
91  * For VIM:
92  * vim:set softtabstop=4 shiftwidth=4 tabstop=4 noet:
93  */
#define SWITCH_END_EXTERN_C
Definition: switch.h:43
struct switch_rtcp_report_block_frame reports[MAX_REPORT_BLOCKS]
#define MAX_REPORT_BLOCKS
An abstraction of a rtcp frame.
Main Library Header.
#define SWITCH_BEGIN_EXTERN_C
Definition: switch.h:42