master 921abef1f96b cached
167 files
1.3 MB
362.7k tokens
1144 symbols
1 requests
Download .txt
Showing preview only (1,341K chars total). Download the full file or copy to clipboard to get everything.
Repository: BelledonneCommunications/ortp
Branch: master
Commit: 921abef1f96b
Files: 167
Total size: 1.3 MB

Directory structure:
gitextract_sj8succ9/

├── .clang-format
├── .github/
│   └── ISSUE_TEMPLATE/
│       └── bug_report.yml
├── .gitignore
├── AUTHORS.md
├── CHANGELOG.md
├── CMakeLists.txt
├── LICENSE.txt
├── Makefile.am
├── README.md
├── autogen.sh
├── build/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── Makefile.am
│   ├── android/
│   │   ├── Android.mk
│   │   └── ortp_AndroidConfig.h
│   ├── osx/
│   │   └── Info.plist.in
│   ├── rpm/
│   │   └── ortp.spec.cmake
│   └── wp8/
│       └── oRTP/
│           ├── inttypes.h
│           ├── oRTP.sln
│           ├── oRTP.vcxproj
│           └── stdint.h
├── cmake/
│   └── OrtpConfig.cmake.in
├── configure.ac
├── debian/
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── libortp-dev.docs
│   ├── libortp-dev.install
│   ├── libortp13.docs
│   ├── libortp13.install
│   ├── rules
│   ├── source/
│   │   ├── format
│   │   └── options
│   └── watch
├── docs/
│   └── .gitignore
├── include/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── MSVC/
│   │   ├── inttypes.h
│   │   └── stdint.h
│   ├── Makefile.am
│   └── ortp/
│       ├── .gitignore
│       ├── Makefile.am
│       ├── event.h
│       ├── logging.h
│       ├── nack.h
│       ├── ortp.h
│       ├── payloadtype.h
│       ├── port.h
│       ├── rtcp.h
│       ├── rtp.h
│       ├── rtpprofile.h
│       ├── rtpsession.h
│       ├── rtpsignaltable.h
│       ├── sessionset.h
│       ├── str_utils.h
│       ├── telephonyevents.h
│       └── utils.h
├── m4/
│   ├── Makefile.am
│   ├── ld-output-def.m4
│   └── obsolete.m4
├── oRTP.prj
├── oRTP.pws
├── ortp-config.h.cmake
├── ortp.doxygen.in
├── ortp.pc.in
├── ortp.spec.in
├── pkg.list
├── src/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── Makefile.am
│   ├── audiobandwidthestimator.c
│   ├── audiobandwidthestimator.h
│   ├── avprofile.c
│   ├── bandwidth-measurer.cc
│   ├── congestiondetector.c
│   ├── congestiondetector.h
│   ├── dblk.cc
│   ├── dll_entry.c
│   ├── event.c
│   ├── extremum.c
│   ├── fecstream/
│   │   ├── fec-encoder.cpp
│   │   ├── fec-encoder.h
│   │   ├── fec-packets-connection.cpp
│   │   ├── fec-packets-connection.h
│   │   ├── fec-params.cpp
│   │   ├── fec-params.h
│   │   ├── fec-stream-stats.cc
│   │   ├── fec-stream-stats.h
│   │   ├── fecstream.cc
│   │   ├── fecstream.h
│   │   ├── overhead.cpp
│   │   ├── overhead.h
│   │   ├── packet-api.cpp
│   │   ├── packet-api.h
│   │   ├── receive-cluster.cpp
│   │   └── receive-cluster.h
│   ├── jitterctl.c
│   ├── jitterctl.h
│   ├── kalmanrls.c
│   ├── logging.c
│   ├── master
│   ├── nack.c
│   ├── netsim.c
│   ├── ortp.c
│   ├── payloadtype.c
│   ├── port.c
│   ├── posixtimer.c
│   ├── rtcp.c
│   ├── rtcp_fb.c
│   ├── rtcp_xr.c
│   ├── rtcpparse.c
│   ├── rtpaudiolevel.c
│   ├── rtpbundle.cc
│   ├── rtpbundle.h
│   ├── rtpframemarking.c
│   ├── rtpparse.c
│   ├── rtpprofile.c
│   ├── rtpsession.c
│   ├── rtpsession_inet.c
│   ├── rtpsession_priv.h
│   ├── rtpsignaltable.c
│   ├── rtptimer.c
│   ├── rtptimer.h
│   ├── scheduler.c
│   ├── scheduler.h
│   ├── sessionset.c
│   ├── str_utils.c
│   ├── telephonyevents.c
│   ├── tests/
│   │   ├── .gitignore
│   │   ├── CMakeLists.txt
│   │   ├── Makefile.am
│   │   ├── fmtpparse.c
│   │   ├── mrtprecv.c
│   │   ├── mrtpsend.c
│   │   ├── rtpmemtest.c
│   │   ├── rtprecv.c
│   │   ├── rtpsend.c
│   │   ├── rtpsend_stupid.c
│   │   ├── test_timer.c
│   │   ├── tevmrtprecv.c
│   │   ├── tevrtprecv.c
│   │   ├── tevrtpsend.c
│   │   ├── win_receiver/
│   │   │   ├── .gitignore
│   │   │   ├── Makefile.am
│   │   │   ├── RTPReceiver.cpp
│   │   │   └── RTPReceiver.vcproj
│   │   └── win_sender/
│   │       ├── .gitignore
│   │       ├── Makefile.am
│   │       ├── RTPSender.cpp
│   │       └── RTPSender.vcproj
│   ├── utils.c
│   ├── utils.h
│   ├── videobandwidthestimator.cc
│   ├── videobandwidthestimator.h
│   ├── winrttimer.cpp
│   └── winrttimer.h
└── tester/
    ├── CMakeLists.txt
    ├── bundle_tester.cc
    ├── extension_header_tester.c
    ├── fec_tester.cc
    ├── ortp_tester.c
    ├── ortp_tester.h
    ├── ortp_tester_utils.cc
    ├── ortp_tester_utils.h
    ├── raw/
    │   └── h265-iframe
    └── rtp_tester.c

================================================
FILE CONTENTS
================================================

================================================
FILE: .clang-format
================================================
# Copyright (c) 2010-2023 Belledonne Communications SARL.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.

---
Language:        Cpp
BasedOnStyle:  LLVM
AccessModifierOffset: -4
AllowShortFunctionsOnASingleLine: None
AllowShortIfStatementsOnASingleLine: AllIfsAndElse
AlwaysBreakTemplateDeclarations: Yes
BinPackParameters: false
ColumnLimit:     120
PointerAlignment: Right
IndentCaseLabels: true
IndentWidth:     4
Standard:        c++14
TabWidth:        4
UseTab:          ForIndentation
...


================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.yml
================================================
---
name: Bug report
description: File a bug/issue
title: "[Bug]: "
labels: ["bug"]

body:
- type: markdown
  attributes:
    value: '# Reminder'
- type: markdown
  attributes:
    value: |
            The responses are provided by the **community** and, on a **best effort** basis, by some Belledonne Communications SARL engineers working on Linphone and its related projects.
            The community means any people all around the world simply willing to participate to the discussions.

            Belledonne Communications SARL **disclaims any WARRANTY** that the content posted on github issues or mailing lists is technically correct.
            Responses from Belledonne Communications SARL engineers shall be considered as individual contributions and shall not be seen as Belledonne Communications's official point of view or commitment.

            The Github issue tracker must be seen as a place for **collaboration**. Issues submitted should be of general interest, in the goal of improving the software. Consider that a **well documented** issue (with precise reproduction procedure, logs, stack trace if relevant, possibly a corrective patch) has a higher chance to receive interest and feedback from community members and Belledonne Communications' engineers.

            __Issues poorly documented, with no facts, or asking for debugging assistance for a custom app using Linphone's libraries, or for a modified version of Linphone are unlikely to receive any kind of response.__

            People using Linphone or its related projects within the scope of their company job are invited to contact [Belledonne Communications](https://linphone.org/contact#content-bottom3) in order to obtain commercial support.

- type: markdown
  attributes:
    value: |
            # Well ordered issues are treated issues
            **In our apps, the [Linphone-SDK](https://github.com/BelledonneCommunications/linphone-sdk) is used.**
            Please report your issue here **ONLY** if you are sure that the origin of the error is in this module.
            Otherwise, open an issue in the repository of the app you are using or in the Linphone-SDK, and we will move it to the related module.

- type: markdown
  attributes:
    value: |
            # Useful links
            [Linphone.org](https://linphone.org)
            [Linphone commercial contact](https://linphone.org/contact#content-bottom3)
            Linphone Vulnerability/Security contact: vulnerabilities@linphone.org
            [Contributor agreement (to sign and to return to sales@belledonne-communications.com for a pull request)](https://linphone.org/sites/default/files/bc-contributor-agreement_0.pdf)

- type: textarea
  attributes:
    label: |
            Context
    description: |
                  - For which purpose do you use the project ?
                  - With which software/hardware it is integrated ?
                  - Did you use sip.linphone.org or a different SIP service (in this case specify which one and which version) ?
    value: |
            I use this project in a custom app running on Linux with the sip.linphone.org service for my company. I want to do a simple call between an Android phone and a Linux client. There is an error with a method of this project and I'm sure that I followed the documentation and double checked before posting.
  validations:
    required: true

- type: textarea
  attributes:
    label: General information
    description: |
                  Complete it multiple time if there are multiple devices involved.
                  Please note that the issue has more chances to be read if you report a bug seen in the latest version of the module.

                  Ex:
                  - Device: [e.g. Samsung Note 20 Ultra]
                  - OS: [e.g. Android 11]
                  - Version of the App [e.g. 4.3.1]
                  - Version of the SDK [e.g 4.4.16]
    value: |
                  - Device:
                  - OS:
                  - Version of the App:
                  - Version of the SDK:
  validations:
    required: true

- type: textarea
  attributes:
    label: Expected behaviour
    description: "A clear and concise description of what you expected to happen."
    value: |
            I wanted to do a simple call with the Linux client calling the Android phone. However, the phone doesn't ring when it is asleep.
  validations:
    required: true

- type: textarea
  attributes:
    label: To Reproduce
    description: "Steps to reproduce the behavior:"
    value: |
            1. Go to '...'
            2. Click on '....'
            3. Scroll down to '....'
            4. See error
  validations:
    required: true

- type: textarea
  attributes:
    label: 'Additional context'
    value: Add any other context about the problem here.

- type: markdown
  attributes:
    value: |
            # Logs
            ## Module logs
            Enable debug logs in advanced section of the settings, restart the app, reproduce the issue and then go to About page, click on "Send logs" and copy/paste the link here.
            If you doesn't have such an option, just provide the logs in attachments.

- type: input
  attributes:
    label: 'SDK logs URL'

- type: markdown
  attributes:
    value: |
            ## Module crash logs
            In case of a crash related to this module, please also provide the backtrace of the crash in attachments using adb logcat (Android) or the device console (iOS).
            For desktop versions, you can get the backtrace from a core dump.

- type: markdown
  attributes:
    value: |
            # Screenshots
            Please add screenshots in attachments to help us to understand your problem.

- type: markdown
  attributes:
    value: |
              # Pcap file
              If this is a network issue, join a pcap file of your attempt in attachments (done with Wireshark or TCPDump, for example)


================================================
FILE: .gitignore
================================================
INSTALL
*.o
*.lo
*.la
configure
Makefile.in
missing
ltmain.sh
libtool
Makefile
.libs
aclocal.m4
config.guess
config.status
config.log
config.sub
depcomp
*~
autom4te.cache/
install-sh
ortp-config.h.in
ortp-config.h
ortp.spec
ortp.pc
ortp.doxygen
lt*.m4
libtool.m4
doc
ortp.defs
INSTALL
stamp-h1
*.vcxproj.*
compile
git-clang-format.diff
*.DS_Store


================================================
FILE: AUTHORS.md
================================================
- Simon MORLAT (simon dot morlat at linphone dot org) is the original author the oRTP library.

## Contributors:

* Copyright (c) 2013 Vadim Zhukov <persgray@gmail.com>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

- support of arc4random()
- bugfix in b64.c for platforms where char is unsigned.


* Lovadina Nicola < lovadina dot nicola dot 10272 at unimo dot it > worked on RTCP support.


================================================
FILE: CHANGELOG.md
================================================
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [5.4.0] - 2025-03-11

### Added
- Flexible forward error correction (FEC) algorithm implemented according to https://datatracker.ietf.org/doc/html/rfc8627
  The flexible mask is not implemented.
- Added goog-remb RTCP message parser

### Changed
- RtpBundle logic to handle receiving of multiple RTP streams identified by SSRC under the same mid identifier
- Optimisations and refactoring of RtpBundle for faster processing
- RtpBundle can be used as well to send packets (in transfer mode)
- Improve accuracy of upload bandwidth measurement


## [5.3.0] - 2023-12-18

### Added
- Bandwidth estimator for audio streams - to get a rough estimate of available bandwidth.

### Changed
- reworked bandwidth estimator for video streams, to improve performance in case of video codecs that outputs small
  sequences of packets per frame (H265, AV-1).

### Removed
- ortp memory functions (replaced by bctoolbox ones)
- most of port.c content, that is replaced by bctoolbox


## [5.1.0] - 2022-02-14

### Added
- New forward error correction (FEC) algorithm implemented according to https://datatracker.ietf.org/doc/html/rfc8627
  Eperimental stage, work in progress.

### Fixed
- Standalone compilation (out of linphone-sdk).
- Bundle mode warnings and few inconsistencies.


## [5.0.0] - 2021-07-08

### Fixed
- small memory leak around TMMBR receiving.


## [4.5.0] - 2021-03-29

### Fixed
- minor fixes

## [4.4.0] - 2019-06-16

### Added
- RTP bundling according to https://tools.ietf.org/html/draft-ietf-mmusic-sdp-bundle-negotiation-54
- RTP extension header support
- IP_PKTINFO for outgoing packets - useful for ICE. This let specify the source IP address to use while sending a packet.

### Changed
- Version number aligned with other linphone-sdk components, for simplicity.

### Fixed
- Random crash when network simulator is activated, while destroying an RtpSession.



## [1.1.0] - 2019-09-18

### Added
- Immediate NACK handling, to handle retransmission of lost packets.

### Changed
- License is now GNU GPLv3.



## [1.0.0] - 2017-01-10

### Added
- new adaptive jitter buffer algorithm, with improved performance.

### Changed
- License is changed from LGPLv2 to GPLv2.



## [0.27.0] - 2016-06-01

### Changed
- bctoolbox is added as dependency.

### Fixed
- DSCP handling on Windows.
- IPv6 handling for Windows and Android.


## [0.25.0] - 2015-11-02

### Added
- AVPF generic NACK
- Payload type definitions for real time text and codec2.

### Fixed
- Various things.


## [0.24.1] - 2015-05-31

### Added
- TMMBR and TMMBN handling (RFC5104).


## [0.24.0] - 2015-03-11

### Added
- RTCP send algorithm as describe in RFC3550.
- RTCP XR (RFC3611).
- RTCP send algorithm for AVPF streams as described in RFC4585.



## [0.23.0] - 2014-02-19

### Changed
- network simulator improvements.
- updated to use ZRTPCPP>=4

### Fixed
- security issues.
	

## [0.22.0] - 2012-05-27

### Changed
- Network simulator improvements for simulating random lost packets.

### Fixed
- SRTP initialization.

	
## [0.19.0] - 2012-02-17

### Added
- ZRTP media encryption.


## [0.18.0] - 2011-12-22

### Added
- SRTP media encryption


## [0.17.0] - 2011-05-??

### Added
- rtp_session_get_round_trip_propagation()

### Fixed
- RTCP support.


## [0.16.0] - 2010-05-10

### Added
- DSCP handling on Windows.
- Accessors to struct PayloadType.
- new payload type definitions.

### Changed
- update stun api to support new RFC.

### Fixed
- gcc warnings.


## [0.15.0] - 2008-10-13

### Changed
- reduce number of memory allocation: !! attention here ABI/API change !!
		If you are using mp=rtp_session_recvm_with_ts(), the payload data is no more pointed by mp->b_cont->b_rptr.
		Instead you can use the following to skip the header:
			rtp_get_payload(mp,mp->b_rptr);

### Fixed
- telephone event presence detection bug.


## [0.14.3] - 2008-03-14

### Added
- new ortp_set_memory_functions() method.

### Changed
- jitter buffer simplification and improvements


## [0.14.0] - 2007-07-27

### Added
- Number of channels in PayloadType (interface changed !).
- srtp optional support (using libsrtp from http://srtp.sf.net)

### Changed
- optimisations.


## [0.13.1] - 2007-04-11

### Changed
- do not recv rtcp packets from rtp_session_sendm_with_ts() when session is not send-only.
- removed gtk-doc, using doxygen instead.


## [0.13.0] - 2007-01-23

### Added
- new telephone-event types.
- pluggable transport layer.

### Changed
- enables use of different RtpProfile for send and recv directions.

### Fixed
- RTCP memory leak.


## [0.12.0] - 2006-11-09

### Added
- enable 0 ms jitter buffer (implies permissive dequeuing of packets).
- enable optional connected mode: the udp socket is connect()ed so only 
	  packets coming from the connected destination are received.

### Changed
- jitter buffer accuracy improved.

### Fixed
- statistics.


## [0.11.0] - 2006-08-22

### Added
- rtp_session_set_dscp(), rtp_session_send_rtcp_APP().

### Fixed
- statistics.


## [0.10.0] - 2006-05-30

### Added
- new RTCP parser
- new event api
- stun helper routines
- permissive algorithm for video packet enqueueing




================================================
FILE: CMakeLists.txt
================================================
############################################################################
# Copyright (c) 2010-2023 Belledonne Communications SARL.
#
# This file is part of oRTP 
# (see https://gitlab.linphone.org/BC/public/ortp).
#
############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################

cmake_minimum_required(VERSION 3.22)

project(Ortp VERSION 5.5.0)


set(ORTP_MAJOR_VERSION ${PROJECT_VERSION_MAJOR})
set(ORTP_MINOR_VERSION ${PROJECT_VERSION_MINOR})
set(ORTP_MICRO_VERSION ${PROJECT_VERSION_PATCH})
set(ORTP_VERSION ${PROJECT_VERSION})
set(ORTP_SO_VERSION "15") # incremented for 4.4.0 version.
set(ORTP_DOC_VERSION "${ORTP_VERSION_MAJOR}.${ORTP_VERSION_MINOR}")


option(ENABLE_DOC "Enable documentation generation with Doxygen." YES)
option(ENABLE_NTP_TIMESTAMP "Turn on NTP timestamping on packet reception." NO)
option(ENABLE_PERF "Disable costly features to reduce cpu consumtion and increase performance." NO)
option(ENABLE_STRICT "Build with strict compile options." YES)
option(ENABLE_TESTS "Enable compilation of test programs." NO)
option(ENABLE_UNIT_TESTS "Enable compilation of unit tests." YES)
option(ENABLE_DEBUG_LOGS "Turn on or off debug level logs." NO)
option(ENABLE_PACKAGE_SOURCE "Create 'package_source' target for source archive making" OFF)
set(WITH_THREAD_STACK_SIZE "0" CACHE STRING "Set thread stack size (0 is the OS default).")


list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")


include(CheckIncludeFile)
include(CheckFunctionExists)
include(GNUInstallDirs)
include(CheckCSourceCompiles)
include(CheckCXXSourceCompiles)
include(CheckSymbolExists)

if(NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
	set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
	message(STATUS "Setting install rpath to ${CMAKE_INSTALL_RPATH}")
endif()

find_package(Threads)
find_library(LIBM NAMES m)

find_package(BCToolbox 5.3.0 REQUIRED)
#Mandatory to init default compilation flags
bc_init_compilation_flags(STRICT_OPTIONS_CPP STRICT_OPTIONS_C STRICT_OPTIONS_CXX ENABLE_STRICT)

check_include_file(sys/uio.h HAVE_SYS_UIO_H)
check_include_file(sys/audio.h HAVE_SYS_AUDIO_H)
if(NOT ANDROID)
	check_include_file(sys/shm.h HAVE_SYS_SHM_H)
endif()

set (CMAKE_CXX_STANDARD 17)

set(CMAKE_CXX_FLAGS_BAK "${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17")# need this for check_cxx_source_compiles because CMAKE_CXX_STANDARD doesn't work.
check_cxx_source_compiles("#include <atomic>
using namespace std;
int main(int argc, char *argv[]) {
atomic_int current_ref;
atomic_init(&current_ref, 1);
atomic_int previous_ref(atomic_fetch_sub_explicit(&current_ref, 1, memory_order_release));
return 0;
}"
	HAVE_ATOMIC)
if(NOT HAVE_ATOMIC)
	message(FATAL_ERROR "Atomic(C++) libraries have not been found for ORTP.")
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_BAK}")

check_function_exists(arc4random HAVE_ARC4RANDOM)
check_symbol_exists(recvmsg "sys/socket.h" HAVE_RECVMSG)
check_symbol_exists(sendmsg "sys/socket.h" HAVE_SENDMSG)

include(TestBigEndian)
test_big_endian(WORDS_BIGENDIAN)
if(WORDS_BIGENDIAN)
	set(ORTP_BIGENDIAN 1)
endif()


include_directories(
	include/
	src/
	${PROJECT_BINARY_DIR}
)


set(ORTP_CPPFLAGS)
if(ENABLE_PERF)
	set(PERF 1)
endif()
if(ENABLE_NTP_TIMESTAMP)
	set(ORTP_TIMESTAMP 1)
	list(APPEND ORTP_CPPFLAGS "-DORTP_TIMESTAMP")
endif()
if(ENABLE_DEBUG_LOGS)
	add_definitions("-DORTP_DEBUG_MODE -DBCTBX_DEBUG_MODE")
endif()
if(CMAKE_USE_PTHREADS_INIT)
	set(ORTP_DEFAULT_THREAD_STACK_SIZE ${WITH_THREAD_STACK_SIZE})
endif()
if(APPLE)
	set(__APPLE_USE_RFC_3542 1)
endif()
if(ORTP_CPPFLAGS)
	add_definitions(${ORTP_CPPFLAGS})
endif()
set(POSIXTIMER_INTERVAL 10000)
configure_file(${PROJECT_SOURCE_DIR}/ortp-config.h.cmake ${PROJECT_BINARY_DIR}/ortp-config.h)
set_source_files_properties(${PROJECT_BINARY_DIR}/ortp-config.h PROPERTIES GENERATED ON)
add_compile_definitions("HAVE_CONFIG_H")

# Enable stdint.h limit macros on C++ files. (Windows only.)
if(MSVC)
	add_compile_definitions("__STDC_LIMIT_MACROS")
endif()

if(MSVC)
	if(ENABLE_STRICT)
		list(APPEND STRICT_OPTIONS_CPP "/WX")
	endif()
    add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()
if(STRICT_OPTIONS_CPP)
	list(REMOVE_DUPLICATES STRICT_OPTIONS_CPP)
endif()
if(STRICT_OPTIONS_C)
	list(REMOVE_DUPLICATES STRICT_OPTIONS_C)
endif()

add_subdirectory(include)
add_subdirectory(src)
if(ENABLE_UNIT_TESTS AND NOT WIN32)
	add_subdirectory(tester)
endif()

if(ENABLE_DOC)
	find_package(Doxygen)
	if(DOXYGEN_FOUND)
		set(DOXYGEN_INPUT "")
		file(GLOB DOC_INPUT_FILES
			"${PROJECT_SOURCE_DIR}/include/ortp/[^.]*.h"
			"${PROJECT_SOURCE_DIR}/src/[^.]*.h"
			"${PROJECT_SOURCE_DIR}/src/[^.]*.c"
		)
		foreach (INPUT_FILE ${DOC_INPUT_FILES})
			string(CONCAT DOXYGEN_INPUT ${DOXYGEN_INPUT} " \"${INPUT_FILE}\"")
		endforeach ()
		configure_file(${PROJECT_SOURCE_DIR}/ortp.doxygen.in ${PROJECT_BINARY_DIR}/ortp.doxygen)
		add_custom_command(OUTPUT "${PROJECT_BINARY_DIR}/doc/html/index.html"
			COMMAND "${DOXYGEN_EXECUTABLE}" "${PROJECT_BINARY_DIR}/ortp.doxygen"
			DEPENDS "${PROJECT_BINARY_DIR}/ortp.doxygen" ${DOC_INPUT_FILES}
		)
		add_custom_target(ortp-html-doc ALL DEPENDS "${PROJECT_BINARY_DIR}/doc/html/index.html")
		install(DIRECTORY "${PROJECT_BINARY_DIR}/doc/html"
			DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/ortp-${ORTP_VERSION}")
	endif()
endif()



set(prefix ${CMAKE_INSTALL_PREFIX})
set(exec_prefix ${prefix}/bin)
set(libdir ${prefix}/lib)
set(includedir ${prefix}/include)
set(ORTP_PKGCONFIG_VERSION "${ORTP_VERSION}")
set(ORTPDEPS_LIBS )

configure_file(${PROJECT_SOURCE_DIR}/ortp.pc.in ${PROJECT_BINARY_DIR}/ortp.pc)
install(FILES ${PROJECT_BINARY_DIR}/ortp.pc DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")

if (ENABLE_PACKAGE_SOURCE)
	add_subdirectory(build)
endif()

include(CMakePackageConfigHelpers)
set(CMAKE_MODULES_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/${PROJECT_NAME}/cmake")
configure_package_config_file("cmake/${PROJECT_NAME}Config.cmake.in" "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
	INSTALL_DESTINATION "${CMAKE_MODULES_INSTALL_DIR}"
	NO_SET_AND_CHECK_MACRO
)
write_basic_package_version_file("${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
	VERSION ${PROJECT_VERSION}
	COMPATIBILITY AnyNewerVersion
)
install(FILES
	"${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
	"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
	DESTINATION ${CMAKE_MODULES_INSTALL_DIR}
)

install(EXPORT ${PROJECT_NAME}Targets
	FILE "${PROJECT_NAME}Targets.cmake"
	DESTINATION ${CMAKE_MODULES_INSTALL_DIR}
)

install(FILES "${PROJECT_SOURCE_DIR}/README.md" 
	"${PROJECT_SOURCE_DIR}/CHANGELOG.md" 
	"${PROJECT_SOURCE_DIR}/LICENSE.txt" 
	"${PROJECT_SOURCE_DIR}/AUTHORS.md" 
	DESTINATION "${CMAKE_INSTALL_DATADIR}/doc/ortp-${ORTP_VERSION}"
)


================================================
FILE: LICENSE.txt
================================================
                    GNU AFFERO GENERAL PUBLIC LICENSE
                       Version 3, 19 November 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU Affero General Public License is a free, copyleft license for
software and other kinds of works, specifically designed to ensure
cooperation with the community in the case of network server software.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
our General Public Licenses are intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  Developers that use our General Public Licenses protect your rights
with two steps: (1) assert copyright on the software, and (2) offer
you this License which gives you legal permission to copy, distribute
and/or modify the software.

  A secondary benefit of defending all users' freedom is that
improvements made in alternate versions of the program, if they
receive widespread use, become available for other developers to
incorporate.  Many developers of free software are heartened and
encouraged by the resulting cooperation.  However, in the case of
software used on network servers, this result may fail to come about.
The GNU General Public License permits making a modified version and
letting the public access it on a server without ever releasing its
source code to the public.

  The GNU Affero General Public License is designed specifically to
ensure that, in such cases, the modified source code becomes available
to the community.  It requires the operator of a network server to
provide the source code of the modified version running there to the
users of that server.  Therefore, public use of a modified version, on
a publicly accessible server, gives the public access to the source
code of the modified version.

  An older license, called the Affero General Public License and
published by Affero, was designed to accomplish similar goals.  This is
a different license, not a version of the Affero GPL, but Affero has
released a new version of the Affero GPL which permits relicensing under
this license.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU Affero General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Remote Network Interaction; Use with the GNU General Public License.

  Notwithstanding any other provision of this License, if you modify the
Program, your modified version must prominently offer all users
interacting with it remotely through a computer network (if your version
supports such interaction) an opportunity to receive the Corresponding
Source of your version by providing access to the Corresponding Source
from a network server at no charge, through some standard or customary
means of facilitating copying of software.  This Corresponding Source
shall include the Corresponding Source for any work covered by version 3
of the GNU General Public License that is incorporated pursuant to the
following paragraph.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the work with which it is combined will remain governed by version
3 of the GNU General Public License.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU Affero General Public License from time to time.  Such new versions
will be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU Affero General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU Affero General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU Affero General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero General Public License for more details.

    You should have received a copy of the GNU Affero General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If your software can interact with users remotely through a computer
network, you should also make sure that it provides a way for users to
get its source.  For example, if your program is a web application, its
interface could display a "Source" link that leads users to an archive
of the code.  There are many ways you could offer source, and different
solutions will be better for different programs; see section 13 for the
specific requirements.

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU AGPL, see
<https://www.gnu.org/licenses/>.


================================================
FILE: Makefile.am
================================================
# linphone/oRTP/Makefile.am -- 

ACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_MACOS_FLAGS)

EXTRA_DIST = \
	oRTP.prj \
	ortp-config.h.in \
	pkg.list autogen.sh \
	ortp.pc.in \
	ortp.spec.in \
	ortp.spec \
	ortp.doxygen \
	oRTP.pws \
	CMakeLists.txt \
	include/CMakeLists.txt \
	src/CMakeLists.txt \
	src/tests/CMakeLists.txt \
	ORTPConfig.cmake.in \
	ortp-config.h.cmake \
	README.md


SUBDIRS=src build m4 include

ACLOCAL_FLAGS=-I$(top_srcdir)/m4

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ortp.pc

SOURCES=$(top_srcdir)/include/ortp/*.h $(top_srcdir)/src/*.c $(top_srcdir)/src/*.h

CLEANFILES=

#html doc
if HAVE_DOXYGEN

# docdir & pkgdocdir are not always defined by automake
pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
doc_htmldir=$(pkgdocdir)/html

pkgdoc_DATA = README.md AUTHORS ChangeLog COPYING
doc_html_DATA = $(top_builddir)/doc/html/html.tar

$(top_builddir)/doc/html/html.tar: $(top_builddir)/doc/html/index.html
	cd $(top_builddir)/doc/html/ && rm -f html.tar && tar cf html.tar *

$(top_builddir)/doc/html/index.html: $(SOURCES) ortp.doxygen Makefile.am
	rm -rf doc
	$(DOXYGEN) ortp.doxygen

install-data-hook:
	cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar

uninstall-hook:
	- cd $(DESTDIR)$(doc_htmldir) && rm -f *


endif

## oRTP packaging methods:

# `make rpm'

.phony: rpm

rpm:
	$(MAKE) dist
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841>
	TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz

# `make package'

if WITH_EPM

.PHONY: package

PKG_NAME=$(PACKAGE)-$(VERSION)-$(RELEASE)
BUILDROOT=`pwd`/epm-install

package: $(srcdir)/pkg.list $(srcdir)/configure
	-rm -rf pkg $(BUILDROOT) $(PKG_NAME).*
	$(MAKE) install DESTDIR=$(BUILDROOT)
	$(MKEPMLIST) -u $(SYS_USER) -g $(SYS_GROUP) --prefix $(prefix) \
		$(BUILDROOT)/$(prefix) > files.list
	$(EPM) -vv -f native -g -n -a $(ARCH) --keep-files --output-dir pkg \
		srcdir=$(srcdir) \
		top_srcdir=$(top_srcdir) \
		top_builddir=$(top_builddir) \
		PACKAGE=$(PACKAGE) \
		SUMMARY="$(SUMMARY)" \
		VERSION=$(ORTP_PKGCONFIG_VERSION) \
		RELEASE=$(RELEASE) \
		LICENSE="$(LICENSE)" \
		VENDOR="$(VENDOR)" \
		PACKAGER="$(PACKAGER)" \
		$(PACKAGE) $(srcdir)/pkg.list
	mv -f pkg/$(PACKAGE)-$(ORTP_PKGCONFIG_VERSION)-$(RELEASE).$(EPM_PKG_EXT) $(PKG_NAME).$(ARCH).$(EPM_PKG_EXT)

clean-local:
	rm -rf pkg $(BUILDROOT)
	rm -f files.list
	rm -rf doc

endif WITH_EPM

distclean-local:
	-rm -f ortp.defs
	-rm -rf doc

all-local: ortp.spec

ortp.spec: ortp.spec.in


deb:
	$(MAKE) dist
	mv $(distdir).tar.gz ../$(PACKAGE)_$(VERSION).orig.tar.gz
	dpkg-buildpackage -us -uc


================================================
FILE: README.md
================================================
**CAUTION: this git repository is no longer updated. The project has been merged into the linphone-sdk ([Gitlab](https://gitlab.linphone.org/BC/public/linphone-sdk), [Github](https://github.com/BelledonneCommunications/linphone-sdk)) git repository and will continue his life there.**

**Versions up to 5.4 (included) are still kept into this repository, that will remain active on release/5.4 branch until the end of life of release 5.4.**

[![pipeline status](https://gitlab.linphone.org/BC/public/ortp/badges/master/pipeline.svg)](https://gitlab.linphone.org/BC/public/ortp/commits/master)

oRTP
====


oRTP is a C library implementing the RTP protocol (rfc3550). It is available
for most unix clones (primilarly Linux and HP-UX), and Microsoft Windows.

For additional information, please [visit oRTP's homepage on **linphone.org**](http://www.linphone.org/technical-corner/ortp).


License
-------

Copyright © Belledonne Communications

oRTP is dual licensed, and is available either :

 - under a [GNU/AGPLv3 license](https://www.gnu.org/licenses/agpl-3.0.html), for free (open source). Please make sure that you understand and agree with the terms of this license before using it (see LICENSE.txt file for details).

 - under a proprietary license, for a fee, to be used in closed source applications. Contact [Belledonne Communications](https://www.linphone.org/contact) for any question about costs and services.

Prior to version 1.0.0, oRTP was licensed under LGPLv2. Due to inclusion of new code licensed under GPLv2, oRTP has become GPLv2,
and later in version 1.1.0, GPLv3.
For the sake of clarity, all source files headers were updated to mention the GPLv3 only.
oRTP versions prior to 1.0.0 of course remain LGPLv2.


Dependencies
------------

*bctoolbox[1]*: portability layer


Compilation
-----------

Autotools procedure is deprecated. Use CMake to configure the source code.

	cmake . -DCMAKE_INSTALL_PREFIX=<prefix> -DCMAKE_PREFIX_PATH=<search_paths>
	
	make
	make install

### Options:

- `CMAKE_INSTALL_PREFIX=<string>` : install prefix
- `CMAKE_PREFIX_PATH=<string>`    : column-separated list of prefixes where to search for dependencies
- `ENABLE_TESTS=YES`              : build tester binaries
- `ENABLE_DOC=NO`                 : do not generate the documentation
- `ENABLE_DEBUG_LOGS=YES`         : turn on debug-level logs


### Note for packagers:

Our CMake scripts may automatically add some paths into research paths of generated binaries.
To ensure that the installed binaries are striped of any rpath, use `-DCMAKE_SKIP_INSTALL_RPATH=ON`
while you invoke cmake.

Rpm packaging
ortp rpm can be generated with cmake3 using the following command:
mkdir WORK
cd WORK
cmake3 ../
make package_source
rpmbuild -ta --clean --rmsource --rmspec ortp-<version>-<release>.tar.gz


How do you I test ?
-------------------

There are shorts and easy to understand programs given with the library. There are good example
to understand how to use oRTP api.

- rtpsend : sends a stream from a file on disk.
- rtprecv : receives a stream and writes it to disk.
- mrtpsend: sends multiple streams from a file on disk to a range of remote port.
- mrtprecv:	receives mutiple streams on a range of local ports and writes them on disk.


Is there some documentation ?
-----------------------------

See the doxygen generated API documentation in docs/html. Program examples are a very good
starting point.



----------------------------------------


[1] http://www.linphone.org/releases/sources/bctoolbox


================================================
FILE: autogen.sh
================================================
#!/bin/sh
##
## Copyright (c) 2010-2022 Belledonne Communications SARL.
##
## This file is part of oRTP 
## (see https://gitlab.linphone.org/BC/public/ortp).
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as
## published by the Free Software Foundation, either version 3 of the
## License, or (at your option) any later version.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU Affero General Public License for more details.
##
## You should have received a copy of the GNU Affero General Public License
## along with this program. If not, see <http://www.gnu.org/licenses/>.
##

srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.

THEDIR=`pwd`
cd $srcdir

#AM_VERSION="1.10"
if ! type aclocal-$AM_VERSION 1>/dev/null 2>&1; then
	# automake-1.10 (recommended) is not available on Fedora 8
	AUTOMAKE=automake
	ACLOCAL=aclocal
else
	ACLOCAL=aclocal-${AM_VERSION}
	AUTOMAKE=automake-${AM_VERSION}
fi

libtoolize="libtoolize"
for lt in glibtoolize libtoolize15 libtoolize14 libtoolize13 ; do
        if test -x /usr/bin/$lt ; then
                libtoolize=$lt ; break
        fi
        if test -x /usr/local/bin/$lt ; then
                libtoolize=$lt ; break
        fi
        if test -x /opt/local/bin/$lt ; then
                libtoolize=$lt ; break
        fi
done

if test -d /usr/local/share/aclocal ; then
	ACLOCAL_ARGS="$ACLOCAL_ARGS -I /usr/local/share/aclocal"
fi

if test -d /share/aclocal ; then
        ACLOCAL_ARGS="$ACLOCAL_ARGS -I /share/aclocal"
fi

set -x
rm -rf config.cache autom4te.cache
$libtoolize --copy --force
$ACLOCAL -I m4 $ACLOCAL_ARGS
autoheader
$AUTOMAKE --force-missing --add-missing --copy
autoconf

#install git pre-commit hooks if possible
if [ -d .git/hooks ] && [ ! -f .git/hooks/pre-commit ]; then
        cp .git-pre-commit .git/hooks/pre-commit
        chmod +x .git/hooks/pre-commit
fi

cd $THEDIR


================================================
FILE: build/.gitignore
================================================
Makefile
Makefile.in


================================================
FILE: build/CMakeLists.txt
================================================
############################################################################
# Copyright (c) 2010-2023 Belledonne Communications SARL.
#
# This file is part of oRTP 
# (see https://gitlab.linphone.org/BC/public/ortp).
#
############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################

if(NOT CPACK_PACKAGE_NAME)
	set(CPACK_PACKAGE_NAME "ortp")
endif()

set(CPACK_SOURCE_IGNORE_FILES "./.*")

bc_make_package_source_target()


================================================
FILE: build/Makefile.am
================================================
EXTRA_DIST=android/Android.mk android/ortp_AndroidConfig.h wp8/oRTP/oRTP.sln wp8/oRTP/inttypes.h wp8/oRTP/oRTP.vcxproj wp8/oRTP/stdint.h



================================================
FILE: build/android/Android.mk
================================================
##
## Android.mk -Android build script-
##
##
## Copyright (C) 2010  Belledonne Communications, Grenoble, France
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##
##  This program is distributed in the hope that it will be useful,
##  but WITHOUT ANY WARRANTY; without even the implied warranty of
##  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
##  GNU Library General Public License for more details.
##
##  You should have received a copy of the GNU General Public License
##  along with this program; if not, write to the Free Software
##  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
##


LOCAL_PATH:= $(call my-dir)/../../
include $(CLEAR_VARS)

LOCAL_MODULE := libortp


LOCAL_SRC_FILES := \
	src/avprofile.c \
	src/b64.c \
	src/congestiondetector.c \
	src/event.c \
	src/extremum.c \
	src/jitterctl.c \
	src/kalmanrls.c \
	src/logging.c \
	src/netsim.c \
	src/ortp.c \
	src/payloadtype.c \
	src/port.c \
	src/posixtimer.c \
	src/rtcp.c \
	src/rtcp_fb.c \
	src/rtcp_xr.c \
	src/rtcpparse.c \
	src/rtpparse.c \
	src/rtpprofile.c \
	src/rtpsession.c \
	src/rtpsession_inet.c \
	src/rtpsignaltable.c  \
	src/rtptimer.c \
	src/scheduler.c \
	src/sessionset.c \
	src/str_utils.c	\
	src/telephonyevents.c \
	src/utils.c

LOCAL_CFLAGS += \
	-DORTP_INET6 \
	-UHAVE_CONFIG_H \
	-include ortp_AndroidConfig.h \
	-DHAVE_PTHREADS \
	-Werror -Wall -Wno-error=strict-aliasing -Wuninitialized


LOCAL_C_INCLUDES += \
	$(LOCAL_PATH) \
	$(LOCAL_PATH)/include \
	$(LOCAL_PATH)/build/android

LOCAL_CPPFLAGS = $(LOCAL_CLFAGS)
LOCAL_CFLAGS += -Wdeclaration-after-statement

include $(BUILD_STATIC_LIBRARY)


================================================
FILE: build/android/ortp_AndroidConfig.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* ortp-config.h.  Generated from ortp-config.h.in by configure.  */
/* ortp-config.h.in.  Generated from configure.ac by autoheader.  */

/* Defined when memory leak checking if enabled */
/* #undef ENABLE_MEMCHECK */

/* Define to 1 if you have the <dlfcn.h> header file. */
#define HAVE_DLFCN_H 1

/* Define to 1 if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H 1

/* Define to 1 if you have the <inttypes.h> header file. */
#define HAVE_INTTYPES_H 1

/* Define to 1 if you have the <linux/soundcard.h> header file. */
#define HAVE_LINUX_SOUNDCARD_H 1

/* Define to 1 if you have the <memory.h> header file. */
#define HAVE_MEMORY_H 1

/* Define to 1 if you have the <poll.h> header file. */
#define HAVE_POLL_H 1

/* Define to 1 if you have the `select' function. */
#define HAVE_SELECT 1

/* Define to 1 if you have the `seteuid' function. */
#define HAVE_SETEUID 1

/* Define to 1 if you have the `socket' function. */
#define HAVE_SOCKET 1

/* Defined when srtp support is compiled */
/*#define HAVE_SRTP 1*/

/* Define to 1 if you have the <stdint.h> header file. */
#define HAVE_STDINT_H 1

/* Define to 1 if you have the <stdlib.h> header file. */
#define HAVE_STDLIB_H 1

/* Define to 1 if you have the `strerror' function. */
#define HAVE_STRERROR 1

/* Define to 1 if you have the <strings.h> header file. */
#define HAVE_STRINGS_H 1

/* Define to 1 if you have the <string.h> header file. */
#define HAVE_STRING_H 1

/* Define to 1 if you have the <sys/audio.h> header file. */
/* #undef HAVE_SYS_AUDIO_H */

/* Define to 1 if you have the <sys/poll.h> header file. */
#define HAVE_SYS_POLL_H 1

/* Define to 1 if you have the <sys/stat.h> header file. */
#define HAVE_SYS_STAT_H 1

/* Define to 1 if you have the <sys/time.h> header file. */
#define HAVE_SYS_TIME_H 1

/* Define to 1 if you have the <sys/types.h> header file. */
#define HAVE_SYS_TYPES_H 1

/* Define to 1 if you have the <unistd.h> header file. */
#define HAVE_UNISTD_H 1

/* Defined if we should not use connect() on udp sockets */
/* #undef NOCONNECT */

/* Default thread stack size (0 = let operating system decide) */
#define ORTP_DEFAULT_THREAD_STACK_SIZE 0

/* major version */
#define ORTP_MAJOR_VERSION 0

/* micro version */
#define ORTP_MICRO_VERSION 0

/* minor version */
#define ORTP_MINOR_VERSION 15

/* ortp version number */
#define ORTP_VERSION "0.15.0"

/* Name of package */
#define PACKAGE "ortp"

/* Define to the address where bug reports for this package should be sent. */
#define PACKAGE_BUGREPORT ""

/* Define to the full name of this package. */
#define PACKAGE_NAME "ortp"

/* Define to the full name and version of this package. */
#define PACKAGE_STRING "ortp 0.15.0"

/* Define to the one symbol short name of this package. */
#define PACKAGE_TARNAME "ortp"

/* Define to the version of this package. */
#define PACKAGE_VERSION "0.15.0"

/* Defines the periodicity of the rtp scheduler in microseconds */
#define POSIXTIMER_INTERVAL 10000

/* Define to 1 if you have the ANSI C header files. */
#define STDC_HEADERS 1

/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1

/* Version number of package */
#define VERSION "0.15.0"

/* Define to 1 if your processor stores words with the most significant byte
   first (like Motorola and SPARC, unlike Intel and VAX). */
/* #undef WORDS_BIGENDIAN */

/* Define to empty if `const' does not conform to ANSI C. */
/* #undef const */

/* Define to `__inline__' or `__inline' if that's what the C compiler
   calls it, or to nothing if 'inline' is not supported under any name.  */
#ifndef __cplusplus
/* #undef inline */
#endif

/* /dev/random cannot be guessed at ./configure time in case or
 * cross-compilation */
#define HAVE_DEV_RANDOM 1


================================================
FILE: build/osx/Info.plist.in
================================================

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>English</string>
	<key>CFBundleExecutable</key>
	<string>ortp</string>
	<key>CFBundleGetInfoString</key>
	<string>${MACOSX_BUNDLE_INFO_STRING}</string>
	<key>CFBundleIconFile</key>
	<string>${MACOSX_BUNDLE_ICON_FILE}</string>
	<key>CFBundleIdentifier</key>
	<string>${MACOSX_FRAMEWORK_IDENTIFIER}</string>
	<key>LSMinimumSystemVersion</key>
	<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
	<key>MinimumOSVersion</key>
	<string>${CMAKE_OSX_DEPLOYMENT_TARGET}</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleLongVersionString</key>
	<string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
	<key>CFBundleName</key>
	<string>${MACOSX_BUNDLE_BUNDLE_NAME}</string>
	<key>CFBundlePackageType</key>
	<string>FMWK</string>
	<key>CFBundleShortVersionString</key>
	<string>${ORTP_VERSION}</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleVersion</key>
	<string>${ORTP_VERSION}</string>
	<key>CSResourcesFileMapped</key>
	<true/>
	<key>NSHumanReadableCopyright</key>
	<string>${MACOSX_BUNDLE_COPYRIGHT}</string>
	<key>NSPrincipalClass</key>
	<string>NSApplication</string>
	<key>NSHighResolutionCapable</key>
	<string>True</string>
</dict>
</plist>

================================================
FILE: build/rpm/ortp.spec.cmake
================================================
# -*- rpm-spec -*-
#
# ortp -- Real-time Transport Protocol Stack
#
# Default is optimized for Pentium IV but will execute on Pentium II &
# later (i686).

%define _prefix    @CMAKE_INSTALL_PREFIX@
%define pkg_prefix @BC_PACKAGE_NAME_PREFIX@
%define package_name @CPACK_PACKAGE_NAME@-${FULL_VERSION}

# re-define some directories for older RPMBuild versions which don't. This messes up the doc/ dir
# taken from https://fedoraproject.org/wiki/Packaging:RPMMacros?rd=Packaging/RPMMacros
%define _datarootdir       %{_prefix}/share
%define _datadir           %{_datarootdir}
%define _docdir            %{_datadir}/doc

%ifarch %ix86
%define		ortp_cpu	pentium4
%endif
Summary:	Real-time Transport Protocol Stack
Name:		@CPACK_PACKAGE_NAME@
Version:	${RPM_VERSION}
Release:	${RPM_RELEASE}%{?dist}
#to be alined with redhat which changed epoc to 1 for an unknown reason
Epoch:		1
License:	GPL
Group:		Applications/Communications
URL:		http://linphone.org/ortp/
Source0:	%{package_name}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
%ifarch %ix86
BuildArch:	i686
%endif

Requires:	%{pkg_prefix}bctoolbox

%if 0%{?rhel} && 0%{?rhel} <= 7
%global cmake_name cmake3
%define ctest_name ctest3
%else
%global cmake_name cmake
%define ctest_name ctest
%endif

%description
oRTP is a GPL licensed C library implementing the RTP protocol
(rfc3550). It is available for most unix clones (primilarly Linux and
HP-UX), and Microsoft Windows.

%package        devel
Summary:        Headers, libraries and docs for the oRTP library
Group:          Development/Libraries
BuildRequires:	doxygen
#to be alined with redhat which changed epoc to 1 for an unknown reason
Epoch:		1
Requires:      %{name} = %{epoch}:%{version}-%{release}

%description    devel
oRTP is a GPL licensed C library implementing the RTP protocol
(rfc1889). It is available for most unix clones (primilarly Linux and
HP-UX), and Microsoft Windows.

This package contains header files and development libraries needed to
develop programs using the oRTP library.

%ifarch %ix86
%define	ortp_arch_cflags -malign-double -march=i686 -mtune=%{ortp_cpu}
%else
# Must be non-empty
%define ortp_arch_cflags -Wall
%endif
%define ortp_cflags %ortp_arch_cflags -Wall -g -pipe -pthread -O3 -fomit-frame-pointer -fno-schedule-insns -fschedule-insns2 -fno-strict-aliasing

# This is for debian builds where debug_package has to be manually specified, whereas in centos it does not
%define custom_debug_package %{!?_enable_debug_packages:%debug_package}%{?_enable_debug_package:%{nil}}
%custom_debug_package

%prep
%setup -n %{package_name}

%build
%{expand:%%%cmake_name} . -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@ -DCMAKE_PREFIX_PATH:PATH=%{_prefix} @RPM_ALL_CMAKE_OPTIONS@
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}

# Dirty workaround to give exec rights for all shared libraries. Debian packaging needs this
# TODO : set CMAKE_INSTALL_SO_NO_EXE for a cleaner workaround
chmod +x `find %{buildroot} *.so.*`


%check
%{ctest_name} -V %{?_smp_mflags}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc %{_docdir}/ortp-@ORTP_DOC_VERSION@/README.md
%doc %{_docdir}/ortp-@ORTP_DOC_VERSION@/CHANGELOG.md
%doc %{_docdir}/ortp-@ORTP_DOC_VERSION@/LICENSE.txt
%doc %{_docdir}/ortp-@ORTP_DOC_VERSION@/AUTHORS.md
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root,-)
%if @ENABLE_DOC@
%doc %{_docdir}/ortp-%{version}/html/*
%endif
%if @ENABLE_STATIC@
%{_libdir}/*.a
%endif
%if @ENABLE_SHARED@
%{_libdir}/*.so
%endif
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_libdir}/cmake/ortp/*


%changelog

* Tue Nov 27 2018 ronan.abhamon <ronan.abhamon@belledonne-communications.com>
- Do not set CMAKE_INSTALL_LIBDIR.

* Tue Oct 25 2005 Francois-Xavier Kowalski <fix@hp.com>
- Add to oRTP distribution with "make rpm" target


================================================
FILE: build/wp8/oRTP/inttypes.h
================================================
// ISO C9x  compliant inttypes.h for Microsoft Visual Studio
// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
//
//  Copyright (c) 2006 Alexander Chemeris
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   1. Redistributions of source code must retain the above copyright notice,
//      this list of conditions and the following disclaimer.
//
//   2. Redistributions in binary form must reproduce the above copyright
//      notice, this list of conditions and the following disclaimer in the
//      documentation and/or other materials provided with the distribution.
//
//   3. The name of the author may be used to endorse or promote products
//      derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

#ifndef _MSC_INTTYPES_H_ // [
#define _MSC_INTTYPES_H_

#if _MSC_VER > 1000
#pragma once
#endif

#include "stdint.h"

// 7.8 Format conversion of integer types

typedef struct {
	intmax_t quot;
	intmax_t rem;
} imaxdiv_t;

// 7.8.1 Macros for format specifiers

#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) // [   See footnote 185 at page 198

// The fprintf macros for signed integers are:
#define PRId8 "d"
#define PRIi8 "i"
#define PRIdLEAST8 "d"
#define PRIiLEAST8 "i"
#define PRIdFAST8 "d"
#define PRIiFAST8 "i"

#define PRId16 "hd"
#define PRIi16 "hi"
#define PRIdLEAST16 "hd"
#define PRIiLEAST16 "hi"
#define PRIdFAST16 "hd"
#define PRIiFAST16 "hi"

#define PRId32 "I32d"
#define PRIi32 "I32i"
#define PRIdLEAST32 "I32d"
#define PRIiLEAST32 "I32i"
#define PRIdFAST32 "I32d"
#define PRIiFAST32 "I32i"

#define PRId64 "I64d"
#define PRIi64 "I64i"
#define PRIdLEAST64 "I64d"
#define PRIiLEAST64 "I64i"
#define PRIdFAST64 "I64d"
#define PRIiFAST64 "I64i"

#define PRIdMAX "I64d"
#define PRIiMAX "I64i"

#define PRIdPTR "Id"
#define PRIiPTR "Ii"

// The fprintf macros for unsigned integers are:
#define PRIo8 "o"
#define PRIu8 "u"
#define PRIx8 "x"
#define PRIX8 "X"
#define PRIoLEAST8 "o"
#define PRIuLEAST8 "u"
#define PRIxLEAST8 "x"
#define PRIXLEAST8 "X"
#define PRIoFAST8 "o"
#define PRIuFAST8 "u"
#define PRIxFAST8 "x"
#define PRIXFAST8 "X"

#define PRIo16 "ho"
#define PRIu16 "hu"
#define PRIx16 "hx"
#define PRIX16 "hX"
#define PRIoLEAST16 "ho"
#define PRIuLEAST16 "hu"
#define PRIxLEAST16 "hx"
#define PRIXLEAST16 "hX"
#define PRIoFAST16 "ho"
#define PRIuFAST16 "hu"
#define PRIxFAST16 "hx"
#define PRIXFAST16 "hX"

#define PRIo32 "I32o"
#define PRIu32 "I32u"
#define PRIx32 "I32x"
#define PRIX32 "I32X"
#define PRIoLEAST32 "I32o"
#define PRIuLEAST32 "I32u"
#define PRIxLEAST32 "I32x"
#define PRIXLEAST32 "I32X"
#define PRIoFAST32 "I32o"
#define PRIuFAST32 "I32u"
#define PRIxFAST32 "I32x"
#define PRIXFAST32 "I32X"

#define PRIo64 "I64o"
#define PRIu64 "I64u"
#define PRIx64 "I64x"
#define PRIX64 "I64X"
#define PRIoLEAST64 "I64o"
#define PRIuLEAST64 "I64u"
#define PRIxLEAST64 "I64x"
#define PRIXLEAST64 "I64X"
#define PRIoFAST64 "I64o"
#define PRIuFAST64 "I64u"
#define PRIxFAST64 "I64x"
#define PRIXFAST64 "I64X"

#define PRIoMAX "I64o"
#define PRIuMAX "I64u"
#define PRIxMAX "I64x"
#define PRIXMAX "I64X"

#define PRIoPTR "Io"
#define PRIuPTR "Iu"
#define PRIxPTR "Ix"
#define PRIXPTR "IX"

// The fscanf macros for signed integers are:
#define SCNd8 "d"
#define SCNi8 "i"
#define SCNdLEAST8 "d"
#define SCNiLEAST8 "i"
#define SCNdFAST8 "d"
#define SCNiFAST8 "i"

#define SCNd16 "hd"
#define SCNi16 "hi"
#define SCNdLEAST16 "hd"
#define SCNiLEAST16 "hi"
#define SCNdFAST16 "hd"
#define SCNiFAST16 "hi"

#define SCNd32 "ld"
#define SCNi32 "li"
#define SCNdLEAST32 "ld"
#define SCNiLEAST32 "li"
#define SCNdFAST32 "ld"
#define SCNiFAST32 "li"

#define SCNd64 "I64d"
#define SCNi64 "I64i"
#define SCNdLEAST64 "I64d"
#define SCNiLEAST64 "I64i"
#define SCNdFAST64 "I64d"
#define SCNiFAST64 "I64i"

#define SCNdMAX "I64d"
#define SCNiMAX "I64i"

#ifdef _WIN64 // [
#define SCNdPTR "I64d"
#define SCNiPTR "I64i"
#else // _WIN64 ][
#define SCNdPTR "ld"
#define SCNiPTR "li"
#endif // _WIN64 ]

// The fscanf macros for unsigned integers are:
#define SCNo8 "o"
#define SCNu8 "u"
#define SCNx8 "x"
#define SCNX8 "X"
#define SCNoLEAST8 "o"
#define SCNuLEAST8 "u"
#define SCNxLEAST8 "x"
#define SCNXLEAST8 "X"
#define SCNoFAST8 "o"
#define SCNuFAST8 "u"
#define SCNxFAST8 "x"
#define SCNXFAST8 "X"

#define SCNo16 "ho"
#define SCNu16 "hu"
#define SCNx16 "hx"
#define SCNX16 "hX"
#define SCNoLEAST16 "ho"
#define SCNuLEAST16 "hu"
#define SCNxLEAST16 "hx"
#define SCNXLEAST16 "hX"
#define SCNoFAST16 "ho"
#define SCNuFAST16 "hu"
#define SCNxFAST16 "hx"
#define SCNXFAST16 "hX"

#define SCNo32 "lo"
#define SCNu32 "lu"
#define SCNx32 "lx"
#define SCNX32 "lX"
#define SCNoLEAST32 "lo"
#define SCNuLEAST32 "lu"
#define SCNxLEAST32 "lx"
#define SCNXLEAST32 "lX"
#define SCNoFAST32 "lo"
#define SCNuFAST32 "lu"
#define SCNxFAST32 "lx"
#define SCNXFAST32 "lX"

#define SCNo64 "I64o"
#define SCNu64 "I64u"
#define SCNx64 "I64x"
#define SCNX64 "I64X"
#define SCNoLEAST64 "I64o"
#define SCNuLEAST64 "I64u"
#define SCNxLEAST64 "I64x"
#define SCNXLEAST64 "I64X"
#define SCNoFAST64 "I64o"
#define SCNuFAST64 "I64u"
#define SCNxFAST64 "I64x"
#define SCNXFAST64 "I64X"

#define SCNoMAX "I64o"
#define SCNuMAX "I64u"
#define SCNxMAX "I64x"
#define SCNXMAX "I64X"

#ifdef _WIN64 // [
#define SCNoPTR "I64o"
#define SCNuPTR "I64u"
#define SCNxPTR "I64x"
#define SCNXPTR "I64X"
#else // _WIN64 ][
#define SCNoPTR "lo"
#define SCNuPTR "lu"
#define SCNxPTR "lx"
#define SCNXPTR "lX"
#endif // _WIN64 ]

#endif // __STDC_FORMAT_MACROS ]

// 7.8.2 Functions for greatest-width integer types

// 7.8.2.1 The imaxabs function
#define imaxabs _abs64

// 7.8.2.2 The imaxdiv function

// This is modified version of div() function from Microsoft's div.c found
// in %MSVC.NET%\crt\src\div.c
#ifdef STATIC_IMAXDIV // [
static
#else  // STATIC_IMAXDIV ][
_inline
#endif // STATIC_IMAXDIV ]
    imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) {
	imaxdiv_t result;

	result.quot = numer / denom;
	result.rem = numer % denom;

	if (numer < 0 && result.rem > 0) {
		// did division wrong; must fix up
		++result.quot;
		result.rem -= denom;
	}

	return result;
}

// 7.8.2.3 The strtoimax and strtoumax functions
#define strtoimax _strtoi64
#define strtoumax _strtoui64

// 7.8.2.4 The wcstoimax and wcstoumax functions
#define wcstoimax _wcstoi64
#define wcstoumax _wcstoui64

#endif // _MSC_INTTYPES_H_ ]


================================================
FILE: build/wp8/oRTP/oRTP.sln
================================================

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Express 2012 for Windows Phone
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "oRTP", "oRTP.vcxproj", "{FFC7B532-0502-4D88-AC98-9E89071CBC97}"
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "srtp", "..\..\..\..\..\srtp\build\wp8\srtp\srtp.vcxproj", "{B4B96BC4-2B72-4964-98E4-7FD048A43363}"
EndProject
Global
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|ARM = Debug|ARM
		Debug|Win32 = Debug|Win32
		Release|ARM = Release|ARM
		Release|Win32 = Release|Win32
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Debug|ARM.ActiveCfg = Debug|ARM
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Debug|ARM.Build.0 = Debug|ARM
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Debug|Win32.ActiveCfg = Debug|Win32
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Debug|Win32.Build.0 = Debug|Win32
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Release|ARM.ActiveCfg = Release|ARM
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Release|ARM.Build.0 = Release|ARM
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Release|Win32.ActiveCfg = Release|Win32
		{FFC7B532-0502-4D88-AC98-9E89071CBC97}.Release|Win32.Build.0 = Release|Win32
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Debug|ARM.ActiveCfg = Debug|ARM
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Debug|ARM.Build.0 = Debug|ARM
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Debug|Win32.ActiveCfg = Debug|Win32
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Debug|Win32.Build.0 = Debug|Win32
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Release|ARM.ActiveCfg = Release|ARM
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Release|ARM.Build.0 = Release|ARM
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Release|Win32.ActiveCfg = Release|Win32
		{B4B96BC4-2B72-4964-98E4-7FD048A43363}.Release|Win32.Build.0 = Release|Win32
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal


================================================
FILE: build/wp8/oRTP/oRTP.vcxproj
================================================
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ItemGroup Label="ProjectConfigurations">
    <ProjectConfiguration Include="Debug|Win32">
      <Configuration>Debug</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Debug|ARM">
      <Configuration>Debug</Configuration>
      <Platform>ARM</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|Win32">
      <Configuration>Release</Configuration>
      <Platform>Win32</Platform>
    </ProjectConfiguration>
    <ProjectConfiguration Include="Release|ARM">
      <Configuration>Release</Configuration>
      <Platform>ARM</Platform>
    </ProjectConfiguration>
  </ItemGroup>
  <PropertyGroup Label="Globals">
    <ProjectGuid>{ffc7b532-0502-4d88-ac98-9e89071cbc97}</ProjectGuid>
    <RootNamespace>oRTP</RootNamespace>
    <DefaultLanguage>en-US</DefaultLanguage>
    <MinimumVisualStudioVersion>11.0</MinimumVisualStudioVersion>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
  <PropertyGroup Condition="'$(Configuration)'=='Debug'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <UseDebugLibraries>true</UseDebugLibraries>
    <PlatformToolset>v110_wp80</PlatformToolset>
    <IgnoreImportLibrary>false</IgnoreImportLibrary>
  </PropertyGroup>
  <PropertyGroup Condition="'$(Configuration)'=='Release'" Label="Configuration">
    <ConfigurationType>DynamicLibrary</ConfigurationType>
    <UseDebugLibraries>false</UseDebugLibraries>
    <WholeProgramOptimization>true</WholeProgramOptimization>
    <PlatformToolset>v110_wp80</PlatformToolset>
    <IgnoreImportLibrary>false</IgnoreImportLibrary>
  </PropertyGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
  <ImportGroup Label="PropertySheets">
    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
  </ImportGroup>
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup>
    <OutDir>$(SolutionDir)$(Platform)\$(Configuration)\</OutDir>
    <IntDir>$(SolutionDir)$(Platform)\$(Configuration)\$(TargetName)\</IntDir>
  </PropertyGroup>
  <PropertyGroup>
    <GenerateManifest>false</GenerateManifest>
  </PropertyGroup>
  <ItemDefinitionGroup>
    <ClCompile>
      <WarningLevel>Level4</WarningLevel>
      <AdditionalIncludeDirectories>$(ProjectDir);$(ProjectDir)..\..\..\include;$(ProjectDir)..\..\..\..\..\srtp\include;$(ProjectDir)..\..\..\..\..\srtp\crypto\include;$(ProjectDir)..\..\..\..\..\srtp\build\wp8\srtp;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
      <PreprocessorDefinitions>_WIN32;_WINDLL;_USRDLL;_CRT_SECURE_NO_WARNINGS;_UNICODE;UNICODE;ORTP_INET6;WIN32;ORTP_EXPORTS;WINDOWS_NATIVE;HAVE_SRTP;ORTP_VERSION="0.23.0";ORTP_MAJOR_VERSION=0;ORTP_MINOR_VERSION=23;ORTP_MICRO_VERSION=0;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <BasicRuntimeChecks>Default</BasicRuntimeChecks>
      <PrecompiledHeader>NotUsing</PrecompiledHeader>
      <CompileAsWinRT>false</CompileAsWinRT>
      <AdditionalUsingDirectories>$(WindowsSDK_MetadataPath);$(AdditionalUsingDirectories)</AdditionalUsingDirectories>
    </ClCompile>
    <Link>
      <SubSystem>Console</SubSystem>
      <IgnoreAllDefaultLibraries>false</IgnoreAllDefaultLibraries>
      <GenerateWindowsMetadata>false</GenerateWindowsMetadata>
      <AdditionalDependencies>ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
      <ImportLibrary>$(TargetDir)$(TargetName).lib</ImportLibrary>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)'=='Debug'">
    <ClCompile>
      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>true</GenerateDebugInformation>
    </Link>
  </ItemDefinitionGroup>
  <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
    <ClCompile>
      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
      <StringPooling>true</StringPooling>
      <FunctionLevelLinking>true</FunctionLevelLinking>
      <IntrinsicFunctions>true</IntrinsicFunctions>
    </ClCompile>
    <Link>
      <GenerateDebugInformation>false</GenerateDebugInformation>
    </Link>
  </ItemDefinitionGroup>
  <ItemGroup>
    <ClInclude Include="..\..\..\include\ortp\b64.h" />
    <ClInclude Include="..\..\..\include\ortp\event.h" />
    <ClInclude Include="..\..\..\include\ortp\logging.h" />
    <ClInclude Include="..\..\..\include\ortp\ortp.h" />
    <ClInclude Include="..\..\..\include\ortp\payloadtype.h" />
    <ClInclude Include="..\..\..\include\ortp\port.h" />
    <ClInclude Include="..\..\..\include\ortp\rtcp.h" />
    <ClInclude Include="..\..\..\include\ortp\rtp.h" />
    <ClInclude Include="..\..\..\include\ortp\rtpprofile.h" />
    <ClInclude Include="..\..\..\include\ortp\rtpsession.h" />
    <ClInclude Include="..\..\..\include\ortp\rtpsignaltable.h" />
    <ClInclude Include="..\..\..\include\ortp\sessionset.h" />
    <ClInclude Include="..\..\..\include\ortp\str_utils.h" />
    <ClInclude Include="..\..\..\include\ortp\telephonyevents.h" />
    <ClInclude Include="..\..\..\src\jitterctl.h" />
    <ClInclude Include="..\..\..\src\rtpsession_priv.h" />
    <ClInclude Include="..\..\..\src\rtptimer.h" />
    <ClInclude Include="..\..\..\src\scheduler.h" />
    <ClInclude Include="..\..\..\src\utils.h" />
    <ClInclude Include="..\..\..\src\winrttimer.h" />
  </ItemGroup>
  <ItemGroup>
    <ClCompile Include="..\..\..\src\avprofile.c" />
    <ClCompile Include="..\..\..\src\b64.c" />
    <ClCompile Include="..\..\..\src\dll_entry.c" />
    <ClCompile Include="..\..\..\src\event.c" />
    <ClCompile Include="..\..\..\src\extremum.c" />
    <ClCompile Include="..\..\..\src\jitterctl.c" />
    <ClCompile Include="..\..\..\src\logging.c" />
    <ClCompile Include="..\..\..\src\netsim.c" />
    <ClCompile Include="..\..\..\src\ortp.c" />
    <ClCompile Include="..\..\..\src\payloadtype.c" />
    <ClCompile Include="..\..\..\src\port.c" />
    <ClCompile Include="..\..\..\src\posixtimer.c" />
    <ClCompile Include="..\..\..\src\rtcp.c" />
    <ClCompile Include="..\..\..\src\rtcp_fb.c" />
    <ClCompile Include="..\..\..\src\rtcp_xr.c" />
    <ClCompile Include="..\..\..\src\rtcpparse.c" />
    <ClCompile Include="..\..\..\src\rtpparse.c" />
    <ClCompile Include="..\..\..\src\rtpprofile.c" />
    <ClCompile Include="..\..\..\src\rtpsession.c" />
    <ClCompile Include="..\..\..\src\rtpsession_inet.c" />
    <ClCompile Include="..\..\..\src\rtpsignaltable.c" />
    <ClCompile Include="..\..\..\src\rtptimer.c" />
    <ClCompile Include="..\..\..\src\scheduler.c" />
    <ClCompile Include="..\..\..\src\sessionset.c" />
    <ClCompile Include="..\..\..\src\str_utils.c" />
    <ClCompile Include="..\..\..\src\telephonyevents.c" />
    <ClCompile Include="..\..\..\src\utils.c" />
    <ClCompile Include="..\..\..\src\winrttimer.cpp">
      <CompileAsWinRT>true</CompileAsWinRT>
      <MinimalRebuild>false</MinimalRebuild>
    </ClCompile>
  </ItemGroup>
  <ItemGroup>
    <Reference Include="Windows">
      <IsWinMDFile>true</IsWinMDFile>
    </Reference>
    <Reference Include="platform.winmd">
      <IsWinMDFile>true</IsWinMDFile>
      <Private>false</Private>
    </Reference>
  </ItemGroup>
  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsPhone\v$(TargetPlatformVersion)\Microsoft.Cpp.WindowsPhone.$(TargetPlatformVersion).targets" />
</Project>

================================================
FILE: build/wp8/oRTP/stdint.h
================================================
// ISO C9x  compliant stdint.h for Microsoft Visual Studio
// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
//
//  Copyright (c) 2006-2008 Alexander Chemeris
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   1. Redistributions of source code must retain the above copyright notice,
//      this list of conditions and the following disclaimer.
//
//   2. Redistributions in binary form must reproduce the above copyright
//      notice, this list of conditions and the following disclaimer in the
//      documentation and/or other materials provided with the distribution.
//
//   3. The name of the author may be used to endorse or promote products
//      derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

#ifndef _MSC_STDINT_H_ // [
#define _MSC_STDINT_H_

#if _MSC_VER > 1000
#pragma once
#endif

#include <limits.h>

// For Visual Studio 6 in C++ mode and for many Visual Studio versions when
// compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
// or compiler give many errors like this:
//   error C2733: second C linkage of overloaded function 'wmemchr' not allowed
#ifdef __cplusplus
extern "C" {
#endif
#include <wchar.h>
#ifdef __cplusplus
}
#endif

// Define _W64 macros to mark types changing their size, like intptr_t.
#ifndef _W64
#if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
#define _W64 __w64
#else
#define _W64
#endif
#endif

// 7.18.1 Integer types

// 7.18.1.1 Exact-width integer types

// Visual Studio 6 and Embedded Visual C++ 4 doesn't
// realize that, e.g. char has the same size as __int8
// so we give up on __intX for them.
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#else
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#endif
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;

// 7.18.1.2 Minimum-width integer types
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;

// 7.18.1.3 Fastest minimum-width integer types
typedef int8_t int_fast8_t;
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef int64_t int_fast64_t;
typedef uint8_t uint_fast8_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;

// 7.18.1.4 Integer types capable of holding object pointers
#ifdef _WIN64 // [
typedef signed __int64 intptr_t;
typedef unsigned __int64 uintptr_t;
#else  // _WIN64 ][
typedef _W64 signed int intptr_t;
typedef _W64 unsigned int uintptr_t;
#endif // _WIN64 ]

// 7.18.1.5 Greatest-width integer types
typedef int64_t intmax_t;
typedef uint64_t uintmax_t;

// 7.18.2 Limits of specified-width integer types

#if !defined(__cplusplus) ||                                                                                           \
    defined(__STDC_LIMIT_MACROS) // [   See footnote 220 at page 257 and footnote 221 at page 259

// 7.18.2.1 Limits of exact-width integer types
#define INT8_MIN ((int8_t)_I8_MIN)
#define INT8_MAX _I8_MAX
#define INT16_MIN ((int16_t)_I16_MIN)
#define INT16_MAX _I16_MAX
#define INT32_MIN ((int32_t)_I32_MIN)
#define INT32_MAX _I32_MAX
#define INT64_MIN ((int64_t)_I64_MIN)
#define INT64_MAX _I64_MAX
#define UINT8_MAX _UI8_MAX
#define UINT16_MAX _UI16_MAX
#define UINT32_MAX _UI32_MAX
#define UINT64_MAX _UI64_MAX

// 7.18.2.2 Limits of minimum-width integer types
#define INT_LEAST8_MIN INT8_MIN
#define INT_LEAST8_MAX INT8_MAX
#define INT_LEAST16_MIN INT16_MIN
#define INT_LEAST16_MAX INT16_MAX
#define INT_LEAST32_MIN INT32_MIN
#define INT_LEAST32_MAX INT32_MAX
#define INT_LEAST64_MIN INT64_MIN
#define INT_LEAST64_MAX INT64_MAX
#define UINT_LEAST8_MAX UINT8_MAX
#define UINT_LEAST16_MAX UINT16_MAX
#define UINT_LEAST32_MAX UINT32_MAX
#define UINT_LEAST64_MAX UINT64_MAX

// 7.18.2.3 Limits of fastest minimum-width integer types
#define INT_FAST8_MIN INT8_MIN
#define INT_FAST8_MAX INT8_MAX
#define INT_FAST16_MIN INT16_MIN
#define INT_FAST16_MAX INT16_MAX
#define INT_FAST32_MIN INT32_MIN
#define INT_FAST32_MAX INT32_MAX
#define INT_FAST64_MIN INT64_MIN
#define INT_FAST64_MAX INT64_MAX
#define UINT_FAST8_MAX UINT8_MAX
#define UINT_FAST16_MAX UINT16_MAX
#define UINT_FAST32_MAX UINT32_MAX
#define UINT_FAST64_MAX UINT64_MAX

// 7.18.2.4 Limits of integer types capable of holding object pointers
#ifdef _WIN64 // [
#define INTPTR_MIN INT64_MIN
#define INTPTR_MAX INT64_MAX
#define UINTPTR_MAX UINT64_MAX
#else // _WIN64 ][
#define INTPTR_MIN INT32_MIN
#define INTPTR_MAX INT32_MAX
#define UINTPTR_MAX UINT32_MAX
#endif // _WIN64 ]

// 7.18.2.5 Limits of greatest-width integer types
#define INTMAX_MIN INT64_MIN
#define INTMAX_MAX INT64_MAX
#define UINTMAX_MAX UINT64_MAX

// 7.18.3 Limits of other integer types

#ifdef _WIN64 // [
#define PTRDIFF_MIN _I64_MIN
#define PTRDIFF_MAX _I64_MAX
#else // _WIN64 ][
#define PTRDIFF_MIN _I32_MIN
#define PTRDIFF_MAX _I32_MAX
#endif // _WIN64 ]

#define SIG_ATOMIC_MIN INT_MIN
#define SIG_ATOMIC_MAX INT_MAX

#ifndef SIZE_MAX // [
#ifdef _WIN64    // [
#define SIZE_MAX _UI64_MAX
#else // _WIN64 ][
#define SIZE_MAX _UI32_MAX
#endif // _WIN64 ]
#endif // SIZE_MAX ]

// WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h>
#ifndef WCHAR_MIN // [
#define WCHAR_MIN 0
#endif            // WCHAR_MIN ]
#ifndef WCHAR_MAX // [
#define WCHAR_MAX _UI16_MAX
#endif // WCHAR_MAX ]

#define WINT_MIN 0
#define WINT_MAX _UI16_MAX

#endif // __STDC_LIMIT_MACROS ]

// 7.18.4 Limits of other integer types

#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [   See footnote 224 at page 260

// 7.18.4.1 Macros for minimum-width integer constants

#define INT8_C(val) val##i8
#define INT16_C(val) val##i16
#define INT32_C(val) val##i32
#define INT64_C(val) val##i64

#define UINT8_C(val) val##ui8
#define UINT16_C(val) val##ui16
#define UINT32_C(val) val##ui32
#define UINT64_C(val) val##ui64

// 7.18.4.2 Macros for greatest-width integer constants
#define INTMAX_C INT64_C
#define UINTMAX_C UINT64_C

#endif // __STDC_CONSTANT_MACROS ]

#endif // _MSC_STDINT_H_ ]


================================================
FILE: cmake/OrtpConfig.cmake.in
================================================
############################################################################
# OrtpConfig.cmake.in
# Copyright (C) 2015-2023  Belledonne Communications, Grenoble France
#
############################################################################
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
#
############################################################################
#
# Config file for the ortp package.
#
# Targets
# ^^^^^^^
#
# The following targets are defined:
#  ortp - The ortp library target
#
#
# Result variables
# ^^^^^^^^^^^^^^^^
#
# This config file will set the following variables in your project:
#
#  Ortp_FOUND - The ortp library has been found
#  Ortp_TARGET - The name of the CMake target for the ortp library


@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/OrtpTargets.cmake")

set(Ortp_TARGET ortp)

# We must propagate the public dependencies and the private dependencies for static build
include(CMakeFindDependencyMacro)
find_dependency(BCToolbox)

check_required_components(Ortp)


================================================
FILE: configure.ac
================================================
dnl Process this file with autoconf to produce a configure script.
AC_INIT([ortp],[1.0.1])
AC_CANONICAL_SYSTEM

case $INSTALL in
        *ginstall*)
                INSTALL="$INSTALL -C"
        ;;
esac

dnl Source packaging numbers
ORTP_MAJOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f1)
ORTP_MINOR_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f2)
ORTP_MICRO_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f3)
ORTP_EXTRA_VERSION=$(echo $PACKAGE_VERSION | cut -d. -f4)

LIBORTP_SO_CURRENT=13 dnl increment this number when you add/change/remove an interface
LIBORTP_SO_REVISION=0 dnl increment this number when you change source code, without changing interfaces; set to 0 when incrementing CURRENT
LIBORTP_SO_AGE=0 dnl increment this number when you add an interface, set to 0 if you remove an interface

LIBORTP_SO_VERSION=$LIBORTP_SO_CURRENT:$LIBORTP_SO_REVISION:$LIBORTP_SO_AGE
ORTP_VERSION=${ORTP_MAJOR_VERSION}.${ORTP_MINOR_VERSION}.${ORTP_MICRO_VERSION}

if test -n "$ORTP_EXTRA_VERSION" ; then
	ORTP_VERSION="${ORTP_VERSION}.${ORTP_EXTRA_VERSION}"
fi

ORTP_PKGCONFIG_VERSION=${ORTP_VERSION}

AC_SUBST(LIBORTP_SO_CURRENT, $LIBORTP_SO_CURRENT)
AC_SUBST(LIBORTP_SO_VERSION)
AC_SUBST(ORTP_VERSION)
AC_SUBST(ORTP_PKGCONFIG_VERSION)


PACKAGE=ortp

AM_INIT_AUTOMAKE([tar-ustar foreign])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
AC_SUBST([docdir], [${datadir}/doc])
AC_CONFIG_HEADERS(ortp-config.h)
AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE_UNQUOTED(ORTP_MAJOR_VERSION,$ORTP_MAJOR_VERSION, [major version])
AC_DEFINE_UNQUOTED(ORTP_MINOR_VERSION,$ORTP_MINOR_VERSION, [minor version])
AC_DEFINE_UNQUOTED(ORTP_MICRO_VERSION,$ORTP_MICRO_VERSION, [micro version])
AC_DEFINE_UNQUOTED(ORTP_VERSION,"$ORTP_VERSION",[ortp version number])

dnl Checks for programs.
AC_PROG_CC
LT_INIT([win32-dll shared disable-static])

gl_LD_OUTPUT_DEF

AC_MSG_CHECKING([warning make an error on compilation])

AC_ARG_ENABLE(strict,
	AC_HELP_STRING([--enable-strict], [Build with stricter options @<:@yes@:>@]),
	[strictness="${enableval}"],
	[strictness=yes]
)

STRICT_OPTIONS="-Wall -Wuninitialized"
STRICT_OPTIONS_CC="-Wdeclaration-after-statement -Wstrict-prototypes"
STRICT_OPTIONS_CXX=""

#for clang

case $CC in
	*clang*)
		STRICT_OPTIONS="$STRICT_OPTIONS -Qunused-arguments "
	;;
esac

# because Darwin's gcc is actually clang, we need to check it...
case "$target_os" in
	*darwin*)
	STRICT_OPTIONS="$STRICT_OPTIONS -Wno-error=unknown-warning-option -Qunused-arguments -Wno-tautological-compare -Wno-unused-function "
	#disabled due to wrong optimization false positive with small string
	#(cf. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35903)
	STRICT_OPTIONS="$STRICT_OPTIONS -Wno-array-bounds "
	;;
esac

if test "$strictness" = "yes" ; then
	STRICT_OPTIONS="$STRICT_OPTIONS -Werror -Wextra -Wunused-parameter -Wno-missing-field-initializers"
	CFLAGS="$CFLAGS -fno-strict-aliasing"
fi

AC_SUBST(STRICT_OPTIONS)
AC_SUBST(STRICT_OPTIONS_CC)
AC_SUBST(STRICT_OPTIONS_CXX)

AC_ARG_ENABLE(perf,
	[AS_HELP_STRING([--enable-perf], [Disable costly features to reduce cpu consumtion (default=no)])],
	[perf=$enableval],
	[perf=no]
)

ORTP_DEFS=

AC_DEFINE(__APPLE_USE_RFC_3542, 1, [ Apple wants you to declare what behavior you want by defining either __APPLE_USE_RFC_3542])


dnl enable timestamp support
AC_ARG_ENABLE(ntp-timestamp,
	[AS_HELP_STRING([--enable-ntp-timestamp], [Turn on NTP timestamping on received packet (default=no)])],
	[case "${enableval}" in
		yes)	ntptimestamp=true;;
		no)	ntptimestamp=false;;
		*)	AC_MSG_ERROR(bad value ${enableval} for --enable-ntp-timestamp) ;;
	esac],
	[ntptimestamp=false]
)
if test x$ntptimestamp = xtrue ; then
	ORTP_DEFS="$ORTP_DEFS -DORTP_TIMESTAMP"
fi

AC_ARG_ENABLE(mode64bit,
	[AS_HELP_STRING([--enable-mode64bit], [Produce a 64-bit library (default=no)])],
	[case "${enableval}" in
		yes)	mode64bit_enabled=yes;;
		no)	mode64bit_enabled=no;;
		*)	AC_MSG_ERROR("Bad value for --enable-mode64bit");;
	esac],
	[mode64bit_enabled=no]
)

AC_ARG_ENABLE(debug,
	[AS_HELP_STRING([--enable-debug], [Enable the display of traces showing the execution of the library (default=yes)])],
	[case "${enableval}" in
		yes)	debug_enabled=yes;;
		no)	debug_enabled=no;;
		*)	AC_MSG_ERROR("Bad value for --enable-debug");;
	esac],
	[debug_enabled=no]
)

hpux_host=no
posixtimer_interval=10000
PTHREAD_LDFLAGS=

case "$target_os" in
	*hpux*)
		hpux_host=yes
		AC_DEFINE(NOCONNECT,1,[Defined if we should not use connect() on udp sockets])
		CFLAGS="$CFLAGS -D_HPUX_SOURCE -D_XOPEN_SOURCE_EXTENDED -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=199506L"
		LIBS="$LIBS -lxnet"
	;;
	*freebsd*)
		AC_DEFINE(NOCONNECT,1,[Defined if we should not use connect() on udp sockets])
		PTHREAD_LDFLAGS="-pthread"
	;;
	*mingw32ce)
		CFLAGS="$CFLAGS -D_WIN32_WCE -D_WIN32_WINNT=0x0501 -DORTP_STATIC"
		LIBS="$LIBS -lws2 -liphlpapi"
		mingw_found=yes
	;;
	*mingw*)
		CFLAGS="$CFLAGS -D_WIN32_WINNT=0x0501 -DORTP_STATIC"
		LIBS="$LIBS -lws2_32 -liphlpapi -lwinmm"
		mingw_found=yes
	;;
esac

AM_CONDITIONAL(BUILD_WIN32, test "$mingw_found" = "yes")
AC_CONFIG_COMMANDS([libtool-hacking],
	[if test "$mingw_found" = "yes" ; then
		echo "Hacking libtool to work with mingw..."
		sed -e 's/\*\" \$a_deplib \"\*/\*/' < ./libtool > libtool.tmp
		cp -f ./libtool.tmp ./libtool
		rm -f ./libtool.tmp
	fi],
	[mingw_found=$mingw_found]
)

if test "$GCC" != "yes" ; then
	if test "$hpux_host" = "yes" ; then
		dnl we are probably using HPUX cc compiler, so add a +O2 to CFLAGS
			CFLAGS="$CFLAGS +O2 -g "
		if test x$mode64bit_enabled = xyes ; then
			CFLAGS="$CFLAGS +DA2.0W +DS2.0"
		fi
	fi
else
	CFLAGS="$CFLAGS -Wall"
fi

build_scheduler=yes

dnl Check if we have seteuid system call
AC_CHECK_FUNCS(seteuid)

dnl Check if we have arc4random family routines available
AC_CHECK_FUNCS(arc4random)


dnl check if we can use the pthread_library
AC_CHECK_LIB(pthread, pthread_mutex_init, [pthread_enabled=yes], [pthread_enabled=no])
if test $pthread_enabled = "no" ; then
	build_scheduler=no
else
	PTHREAD_LIBS="-lpthread"
	PTHREAD_CFLAGS="-D_REENTRANT"
	AC_SUBST(PTHREAD_CFLAGS)
	AC_SUBST(PTHREAD_LIBS)
	AC_SUBST(PTHREAD_LDFLAGS)
fi
AC_ARG_WITH(thread-stack-size,
	AC_HELP_STRING([--with-thread-stack-size=SIZE-IN-BYTES],[Set thread stack size [[default=os-default]]]),
	[thread_stack_size=$withval],
	[thread_stack_size=0]
)
AC_DEFINE_UNQUOTED(ORTP_DEFAULT_THREAD_STACK_SIZE, $thread_stack_size, [Default thread stack size (0 = let uperating system decide)])


dnl check if we can use the rt library
AC_CHECK_LIB(rt, clock_gettime, [rt_enabled=yes])
if test "$rt_enabled" = "yes" ; then
	RT_LIBS="-lrt"
	AC_SUBST(RT_LIBS)
fi


if test $debug_enabled = "yes"; then
	ORTP_DEFS="$ORTP_DEFS -DORTP_DEBUG_MODE"
	CFLAGS=`echo $CFLAGS | sed 's/-O.//'`
	CFLAGS="$CFLAGS -g"
fi


AC_ARG_ENABLE(memcheck,
	[AS_HELP_STRING([--enable-memcheck], [Enable memory leak detection (HPUX only)])],
	[case "${enableval}" in
		yes)	memcheck_enabled=yes;;
		no)	memcheck_enabled=no;;
		*)	AC_MSG_ERROR("Bad value for --enable-memcheck");;
	esac],
	[memcheck_enabled=no]
)

if test "$memcheck_enabled" = "yes" ; then
	if test "$hpux_host" = "yes" ; then
		AC_DEFINE(ENABLE_MEMCHECK,1,[Defined when memory leak checking if enabled])
	else
		echo "WARNING ************ : the memory check option is only available for HPUX."
	fi
fi


dnl Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS(poll.h sys/poll.h sys/uio.h fcntl.h sys/time.h unistd.h sys/audio.h linux/soundcard.h sys/shm.h stdatomic.h)

dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
AC_HEADER_TIME
AC_WORDS_BIGENDIAN
if test x$ac_cv_c_bigendian = xyes ; then
	ORTP_DEFS="$ORTP_DEFS -DORTP_BIGENDIAN"
fi

dnl Checks for library functions.
AC_CHECK_FUNCS(select socket strerror)

if test $hpux_host = "yes" ; then
dnl it seems 10 ms is too fast on hpux and it causes trouble
		posixtimer_interval=20000
fi

AC_DEFINE_UNQUOTED(POSIXTIMER_INTERVAL,$posixtimer_interval,[Defines the periodicity of the rtp scheduler in microseconds])

if test "$perf" = "yes" ; then
	CFLAGS="$CFLAGS -DPERF"
fi


PKG_CHECK_MODULES(BCTOOLBOX, bctoolbox, [found_bctoolbox=yes],[found_bctoolbox=no])
if test "x$found_bctoolbox" != "xyes" ; then
	AC_MSG_ERROR(["Could not find bctoolbox (required dependency)"])
fi


ORTPDEPS_LIBS="$ORTPDEPS_LIBS $PTHREAD_LDFLAGS $BCTOOLBOX_LIBS"
ORTPDEPS_CFLAGS="$ORTPDEPS_CFLAGS $PTHREAD_CFLAGS $ORTP_DEFS $BCTOOLBOX_CFLAGS"
CFLAGS="$CFLAGS $ORTP_DEFS"
echo "$ORTPDEPS_CFLAGS" > ortp.defs


AC_ARG_ENABLE(tests,
	[AS_HELP_STRING([--disable-tests], [Disable compilation of tests])],
	[case "${enableval}" in
		yes)	tests_enabled=true ;;
		no)	tests_enabled=false ;;
		*)	AC_MSG_ERROR(bad value ${enableval} for --disable-tests) ;;
	esac],
	[tests_enabled=false]
)
AM_CONDITIONAL(ENABLE_TESTS, test x$tests_enabled = xtrue)

case "$target_os" in
	*linux*)
		# Eliminate -lstdc++ addition to postdeps for cross compiles.
		postdeps_CXX=`echo " $postdeps_CXX " | sed 's, -lstdc++ ,,g'`
	;;
esac

dnl ##################################################
dnl # Check for doxygen
dnl ##################################################
AC_ARG_ENABLE(documentation,
	[AS_HELP_STRING([--enable-documentation], [Documentation generation using doxygen (default=yes)])],
	[case "${enableval}" in
		yes)	documentation_enabled=yes;;
		no)		documentation_enabled=no;;
		*)		AC_MSG_ERROR("Bad value for --enable-documentation");;
	esac],
	[documentation_enabled=yes]
)
if test "$documentation_enabled" = "yes" ; then
	AC_CHECK_PROG(DOXYGEN,doxygen,doxygen,false)
else
	DOXYGEN=false
fi
AM_CONDITIONAL(HAVE_DOXYGEN, test "$DOXYGEN" != "false")

dnl ##################################################
dnl # Check for ESP Packager
dnl ##################################################

AC_PATH_PROG(EPM,epm,false)
AC_PATH_PROG(MKEPMLIST,mkepmlist,false)
AC_PATH_PROG(EPMINSTALL,epminstall,false)
AM_CONDITIONAL(WITH_EPM,test $EPM != false && test $MKEPMLIST != false && test $EPMINSTALL != false)

# Preferred packaging system, as per EPM terminology
case $target in
	*-*-linux*)
		if test -f /etc/debian_version ; then
			EPM_PKG_EXT=deb
		else
			EPM_PKG_EXT=rpm
		fi
	;;
	*-hp-hpux*)
		EPM_PKG_EXT=depot.gz
	;;
	*-dec-osf*)
		EPM_PKG_EXT=setld
	;;
esac
AC_SUBST(EPM_PKG_EXT)

# System software User & Group names
case $target in
	*-*-linux*)
		SYS_USER=root
		SYS_GROUP=root
	;;
	*-*-hpux*|*-dec-osf*)
		SYS_USER=bin
		SYS_GROUP=bin
	;;
esac
AC_SUBST(SYS_USER)
AC_SUBST(SYS_GROUP)

# CPU Architecture
case $target_cpu in
	i?86)
		ARCH=i386
	;;
	*)	ARCH=$target_cpu
	;;
esac
AC_SUBST(ARCH)

# Various other packaging variables, that can be over-ridden ad `make
# package' time
SUMMARY="Implementation of RTP - RFC3550"
AC_SUBST(SUMMARY)
PACKAGER=anonymous
AC_SUBST(PACKAGER)
LICENSE=GPLv2+
AC_SUBST(LICENSE)
VENDOR=Linphone
AC_SUBST(VENDOR)
RELEASE=1
AC_SUBST(RELEASE)

AC_SUBST(ORTPDEPS_CFLAGS)
AC_SUBST(ORTPDEPS_LIBS)
AC_SUBST(ORTPDEPS_LDFLAGS)

AC_OUTPUT(
	Makefile
	include/Makefile
	include/ortp/Makefile
	m4/Makefile
	src/Makefile
	src/tests/Makefile
	src/tests/win_receiver/Makefile
	src/tests/win_sender/Makefile
	build/Makefile
	ortp.pc
	ortp.spec
	ortp.doxygen
)



================================================
FILE: debian/changelog
================================================
ortp (1.0.0) unstable; urgency=low
  * oRTP license is changed to be GPLv2
  * new adaptive jitter buffer algorithm added

 -- Belledonne Communications <info@belledonne-communications.com>  Wed, 10 Jan 2017 17:36:30 +0200

ortp (0.27.0) unstable; urgency=low

 -- Belledonne Communications <info@belledonne-communications.com>  Wed, 1 June 2016 16:47:00 +0200

ortp (0.26.0) unstable; urgency=low
  * Fix DSCP on Windows.

 -- Belledonne Communications <info@belledonne-communications.com>  Wed, 26 May 2016 14:21:00 +0200

ortp (0.25.0) unstable; urgency=low
  * Suppot AVPF generic NACK
  * Add payload types for RTT (Real-Time Text) and Codec2
  * Bug fixes

 -- Belledonne Communications <info@belledonne-communications.com>  Mon, 02 Nov 2015 13:54:00 +0200

ortp (0.24.2) unstable; urgency=low
  * Initial package

 -- Belledonne Communications <info@belledonne-communications.com>  Tue, 07 Oct 2015 14:44:00 +0200

ortp (0.23.0) unstable; urgency=low

  * Network simulator improvements
  * Security bugfixes
  * Updated to use ZRTPCPP>=4.0

 -- Sylvain Berfini <sylvain.berfini@linphone.org>  Mon, 31 March 2013 15:10:01 +0200

ortp (0.22.0) unstable; urgency=low

  * New version + migrate to ABI9.
  *

 -- Guillaume Beraudo <guillaume.beraudo@linphone.org>  Thu, 30 May 2013 15:32:14 +0200

ortp (0.21.0) unstable; urgency=low

  * Initial Release.

 -- Guillaume Beraudo <guillaume.beraudo@linphone.org>  Fri, 3 May 2012 13:58:16 +0200


================================================
FILE: debian/compat
================================================
8


================================================
FILE: debian/control
================================================
Source: ortp
Section: sound
Priority: optional
Maintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.org>
Uploaders: Samuel Mimram <smimram@debian.org>, Kilian Krause <kilian@debian.org>, Faidon Liambotis <paravoid@debian.org>, Mark Purcell <msp@debian.org>, Lionel Elie Mamane <lmamane@debian.org>, Tzafrir Cohen <tzafrir@debian.org>
Build-Depends: debhelper (>= 8),
 autoconf, automake, autotools-dev, libtool, pkg-config, intltool,
 libglib2.0-dev, 
 doxygen
Standards-Version: 3.9.1
Homepage: http://www.linphone.org/
Vcs-Svn: svn://svn.debian.org/pkg-voip/linphone/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-voip/linphone/trunk/


Package: libortp13
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Real-time Transport Protocol stack
 This library implements the RFC1889 (RTP) with a easy to use API with high
 and low level access.
 .
 Its main features are:
   - support for multiple profiles, AV profile (RFC 1890) being the default one;
   - an optional packet scheduler for synchronizing RTP recv and send;
   - implements blocking and non blocking IO for RTP sessions;
   - supports multiplexing IO;
   - supports part of RFC2833 for telephone events over RTP.

Package: libortp-dev
Section: libdevel
Architecture: any
Depends: ${misc:Depends}, libortp13 (= ${binary:Version})
Conflicts: libortp7-dev
Description: Real-time Transport Protocol stack
 This library implements the RFC1889 (RTP) with a easy to use API with high
 and low level access.
 .
 Its main features are:
   - support for multiple profiles, AV profile (RFC 1890) being the default one;
   - an optional packet scheduler for synchronizing RTP recv and send;
   - implements blocking and non blocking IO for RTP sessions;
   - supports multiplexing IO;
   - supports part of RFC2833 for telephone events over RTP.

Package: libortp13-dbg
Architecture: any
Depends: libortp13 (= ${binary:Version}), ${misc:Depends}
Section: debug
Priority: extra
Description: Debugging symbols for ortp
 .


================================================
FILE: debian/copyright
================================================
This package was debianized by Samuel Mimram <samuel.mimram@ens-lyon.org> on
Wed, 30 Jun 2004 13:58:16 +0200.

It was downloaded from http://www.linphone.org/

Upstream Authors: Simon Morlat, Florian Wintertein, Aymeric Moizard, Sharath Udupa.

Copyright (C) 2001-2005 Simon Morlat

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

On Debian systems you can find a copy of this license in
/usr/share/common-licenses/GPL.


Some libraries are under other copyrights / licenses:

* FFmpeg: Copyright (C) 2000, 2001 Gerard Lantau.
  Released under the GNU General Public License
  (see /usr/share/common-licenses/GPL)

* gsmlib: Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann,
  Technische Universitaet Berlin

  Released under the following license:

  Any use of this software is permitted provided that this notice is not
  removed and that neither the authors nor the Technische Universitaet Berlin
  are deemed to have made any representations as to the suitability of this
  software for any purpose nor are held responsible for any defects of
  this software.  THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.

  As a matter of courtesy, the authors request to be informed about uses
  this software has found, about bugs in this software, and about any
  improvements that may be of general interest.

  Berlin, 28.11.1994
  Jutta Degener
  Carsten Bormann

* oRTP: Copyright (C) Simon Morlat
  Released under the GNU Lesser General Public License
  (see /usr/share/common-licenses/LGPL).

* osipua: Copyright (C) 2001 Simon Morlat and Aymeric Moizard
  Released under the GNU Lesser General Public License
  (see /usr/share/common-licenses/LGPL).

* speex: Copyright (C) 2002-2003 Jean-Marc Valin

  Released under the following license:

  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions
  are met:

  - Redistributions of source code must retain the above copyright
  notice, this list of conditions and the following disclaimer.

  - Redistributions in binary form must reproduce the above copyright
  notice, this list of conditions and the following disclaimer in the
  documentation and/or other materials provided with the distribution.

  - Neither the name of the Xiph.org Foundation nor the names of its
  contributors may be used to endorse or promote products derived from
  this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


================================================
FILE: debian/libortp-dev.docs
================================================
usr/share/doc/ortp-*/html/


================================================
FILE: debian/libortp-dev.install
================================================
usr/include/ortp/*.h
usr/lib/libortp.so
usr/lib/pkgconfig/ortp.pc
usr/share/doc/ortp-*/html usr/share/doc/libortp13-dev


================================================
FILE: debian/libortp13.docs
================================================
AUTHORS
README.md


================================================
FILE: debian/libortp13.install
================================================
usr/lib/libortp.so.*


================================================
FILE: debian/rules
================================================
#!/usr/bin/make -f

%:
	dh $@ --parallel --with autotools_dev

override_dh_auto_configure:
	./configure --prefix=/usr --with-srtp=none
# As of today, neither flexisip or linphone need the broken srtp

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_strip:
	dh_strip --dbg-package=libortp13-dbg


================================================
FILE: debian/source/format
================================================
3.0 (native)


================================================
FILE: debian/source/options
================================================
# Don't store changes on autogenerated files
extend-diff-ignore = "(^|/)(config\.sub|config\.guess|Makefile|m4/.*)$"


================================================
FILE: debian/watch
================================================
version=3

http://download.savannah.gnu.org/releases-noredirect/linphone/stable/sources/ linphone-([\d\.]+).tar.gz debian svn-upgrade


================================================
FILE: docs/.gitignore
================================================
Makefile
Makefile.in


================================================
FILE: include/.gitignore
================================================
Makefile
Makefile.in


================================================
FILE: include/CMakeLists.txt
================================================
############################################################################
# Copyright (c) 2010-2022 Belledonne Communications SARL.
#
# This file is part of oRTP 
# (see https://gitlab.linphone.org/BC/public/ortp).
#
############################################################################
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
############################################################################

set(HEADER_FILES
    event.h
	logging.h
	nack.h
	ortp.h
	payloadtype.h
	port.h
	rtcp.h
	rtp.h
	rtpprofile.h
	rtpsession.h
	rtpsignaltable.h
	sessionset.h
	str_utils.h
	telephonyevents.h
	utils.h
)

set(ORTP_HEADER_FILES )
foreach(HEADER_FILE ${HEADER_FILES})
	list(APPEND ORTP_HEADER_FILES "${CMAKE_CURRENT_LIST_DIR}/ortp/${HEADER_FILE}")
endforeach()
set(ORTP_HEADER_FILES ${ORTP_HEADER_FILES} PARENT_SCOPE)

install(FILES ${ORTP_HEADER_FILES}
        DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/ortp
        PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)


================================================
FILE: include/MSVC/inttypes.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
// ISO C9x  compliant inttypes.h for Microsoft Visual Studio
// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
//
//  Copyright (c) 2006 Alexander Chemeris
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   1. Redistributions of source code must retain the above copyright notice,
//      this list of conditions and the following disclaimer.
//
//   2. Redistributions in binary form must reproduce the above copyright
//      notice, this list of conditions and the following disclaimer in the
//      documentation and/or other materials provided with the distribution.
//
//   3. The name of the author may be used to endorse or promote products
//      derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

#ifndef _MSC_INTTYPES_H_ // [
#define _MSC_INTTYPES_H_

#if _MSC_VER > 1000
#pragma once
#endif

#include "stdint.h"

// 7.8 Format conversion of integer types

typedef struct {
	intmax_t quot;
	intmax_t rem;
} imaxdiv_t;

// 7.8.1 Macros for format specifiers

#if !defined(__cplusplus) || defined(__STDC_FORMAT_MACROS) // [   See footnote 185 at page 198

// The fprintf macros for signed integers are:
#define PRId8 "d"
#define PRIi8 "i"
#define PRIdLEAST8 "d"
#define PRIiLEAST8 "i"
#define PRIdFAST8 "d"
#define PRIiFAST8 "i"

#define PRId16 "hd"
#define PRIi16 "hi"
#define PRIdLEAST16 "hd"
#define PRIiLEAST16 "hi"
#define PRIdFAST16 "hd"
#define PRIiFAST16 "hi"

#define PRId32 "I32d"
#define PRIi32 "I32i"
#define PRIdLEAST32 "I32d"
#define PRIiLEAST32 "I32i"
#define PRIdFAST32 "I32d"
#define PRIiFAST32 "I32i"

#define PRId64 "I64d"
#define PRIi64 "I64i"
#define PRIdLEAST64 "I64d"
#define PRIiLEAST64 "I64i"
#define PRIdFAST64 "I64d"
#define PRIiFAST64 "I64i"

#define PRIdMAX "I64d"
#define PRIiMAX "I64i"

#define PRIdPTR "Id"
#define PRIiPTR "Ii"

// The fprintf macros for unsigned integers are:
#define PRIo8 "o"
#define PRIu8 "u"
#define PRIx8 "x"
#define PRIX8 "X"
#define PRIoLEAST8 "o"
#define PRIuLEAST8 "u"
#define PRIxLEAST8 "x"
#define PRIXLEAST8 "X"
#define PRIoFAST8 "o"
#define PRIuFAST8 "u"
#define PRIxFAST8 "x"
#define PRIXFAST8 "X"

#define PRIo16 "ho"
#define PRIu16 "hu"
#define PRIx16 "hx"
#define PRIX16 "hX"
#define PRIoLEAST16 "ho"
#define PRIuLEAST16 "hu"
#define PRIxLEAST16 "hx"
#define PRIXLEAST16 "hX"
#define PRIoFAST16 "ho"
#define PRIuFAST16 "hu"
#define PRIxFAST16 "hx"
#define PRIXFAST16 "hX"

#define PRIo32 "I32o"
#define PRIu32 "I32u"
#define PRIx32 "I32x"
#define PRIX32 "I32X"
#define PRIoLEAST32 "I32o"
#define PRIuLEAST32 "I32u"
#define PRIxLEAST32 "I32x"
#define PRIXLEAST32 "I32X"
#define PRIoFAST32 "I32o"
#define PRIuFAST32 "I32u"
#define PRIxFAST32 "I32x"
#define PRIXFAST32 "I32X"

#define PRIo64 "I64o"
#define PRIu64 "I64u"
#define PRIx64 "I64x"
#define PRIX64 "I64X"
#define PRIoLEAST64 "I64o"
#define PRIuLEAST64 "I64u"
#define PRIxLEAST64 "I64x"
#define PRIXLEAST64 "I64X"
#define PRIoFAST64 "I64o"
#define PRIuFAST64 "I64u"
#define PRIxFAST64 "I64x"
#define PRIXFAST64 "I64X"

#define PRIoMAX "I64o"
#define PRIuMAX "I64u"
#define PRIxMAX "I64x"
#define PRIXMAX "I64X"

#define PRIoPTR "Io"
#define PRIuPTR "Iu"
#define PRIxPTR "Ix"
#define PRIXPTR "IX"

// The fscanf macros for signed integers are:
#define SCNd8 "d"
#define SCNi8 "i"
#define SCNdLEAST8 "d"
#define SCNiLEAST8 "i"
#define SCNdFAST8 "d"
#define SCNiFAST8 "i"

#define SCNd16 "hd"
#define SCNi16 "hi"
#define SCNdLEAST16 "hd"
#define SCNiLEAST16 "hi"
#define SCNdFAST16 "hd"
#define SCNiFAST16 "hi"

#define SCNd32 "ld"
#define SCNi32 "li"
#define SCNdLEAST32 "ld"
#define SCNiLEAST32 "li"
#define SCNdFAST32 "ld"
#define SCNiFAST32 "li"

#define SCNd64 "I64d"
#define SCNi64 "I64i"
#define SCNdLEAST64 "I64d"
#define SCNiLEAST64 "I64i"
#define SCNdFAST64 "I64d"
#define SCNiFAST64 "I64i"

#define SCNdMAX "I64d"
#define SCNiMAX "I64i"

#ifdef _WIN64 // [
#define SCNdPTR "I64d"
#define SCNiPTR "I64i"
#else // _WIN64 ][
#define SCNdPTR "ld"
#define SCNiPTR "li"
#endif // _WIN64 ]

// The fscanf macros for unsigned integers are:
#define SCNo8 "o"
#define SCNu8 "u"
#define SCNx8 "x"
#define SCNX8 "X"
#define SCNoLEAST8 "o"
#define SCNuLEAST8 "u"
#define SCNxLEAST8 "x"
#define SCNXLEAST8 "X"
#define SCNoFAST8 "o"
#define SCNuFAST8 "u"
#define SCNxFAST8 "x"
#define SCNXFAST8 "X"

#define SCNo16 "ho"
#define SCNu16 "hu"
#define SCNx16 "hx"
#define SCNX16 "hX"
#define SCNoLEAST16 "ho"
#define SCNuLEAST16 "hu"
#define SCNxLEAST16 "hx"
#define SCNXLEAST16 "hX"
#define SCNoFAST16 "ho"
#define SCNuFAST16 "hu"
#define SCNxFAST16 "hx"
#define SCNXFAST16 "hX"

#define SCNo32 "lo"
#define SCNu32 "lu"
#define SCNx32 "lx"
#define SCNX32 "lX"
#define SCNoLEAST32 "lo"
#define SCNuLEAST32 "lu"
#define SCNxLEAST32 "lx"
#define SCNXLEAST32 "lX"
#define SCNoFAST32 "lo"
#define SCNuFAST32 "lu"
#define SCNxFAST32 "lx"
#define SCNXFAST32 "lX"

#define SCNo64 "I64o"
#define SCNu64 "I64u"
#define SCNx64 "I64x"
#define SCNX64 "I64X"
#define SCNoLEAST64 "I64o"
#define SCNuLEAST64 "I64u"
#define SCNxLEAST64 "I64x"
#define SCNXLEAST64 "I64X"
#define SCNoFAST64 "I64o"
#define SCNuFAST64 "I64u"
#define SCNxFAST64 "I64x"
#define SCNXFAST64 "I64X"

#define SCNoMAX "I64o"
#define SCNuMAX "I64u"
#define SCNxMAX "I64x"
#define SCNXMAX "I64X"

#ifdef _WIN64 // [
#define SCNoPTR "I64o"
#define SCNuPTR "I64u"
#define SCNxPTR "I64x"
#define SCNXPTR "I64X"
#else // _WIN64 ][
#define SCNoPTR "lo"
#define SCNuPTR "lu"
#define SCNxPTR "lx"
#define SCNXPTR "lX"
#endif // _WIN64 ]

#endif // __STDC_FORMAT_MACROS ]

// 7.8.2 Functions for greatest-width integer types

// 7.8.2.1 The imaxabs function
#define imaxabs _abs64

// 7.8.2.2 The imaxdiv function

// This is modified version of div() function from Microsoft's div.c found
// in %MSVC.NET%\crt\src\div.c
#ifdef STATIC_IMAXDIV // [
static
#else  // STATIC_IMAXDIV ][
_inline
#endif // STATIC_IMAXDIV ]
    imaxdiv_t __cdecl imaxdiv(intmax_t numer, intmax_t denom) {
	imaxdiv_t result;

	result.quot = numer / denom;
	result.rem = numer % denom;

	if (numer < 0 && result.rem > 0) {
		// did division wrong; must fix up
		++result.quot;
		result.rem -= denom;
	}

	return result;
}

// 7.8.2.3 The strtoimax and strtoumax functions
#define strtoimax _strtoi64
#define strtoumax _strtoui64

// 7.8.2.4 The wcstoimax and wcstoumax functions
#define wcstoimax _wcstoi64
#define wcstoumax _wcstoui64

#endif // _MSC_INTTYPES_H_ ]


================================================
FILE: include/MSVC/stdint.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
// ISO C9x  compliant stdint.h for Microsoft Visual Studio
// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG14/N1124
//
//  Copyright (c) 2006-2008 Alexander Chemeris
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
//   1. Redistributions of source code must retain the above copyright notice,
//      this list of conditions and the following disclaimer.
//
//   2. Redistributions in binary form must reproduce the above copyright
//      notice, this list of conditions and the following disclaimer in the
//      documentation and/or other materials provided with the distribution.
//
//   3. The name of the author may be used to endorse or promote products
//      derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
// EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
// OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
///////////////////////////////////////////////////////////////////////////////

#ifndef _MSC_VER // [
#error "Use this header only with Microsoft Visual C++ compilers!"
#endif // _MSC_VER ]

#ifndef _MSC_STDINT_H_ // [
#define _MSC_STDINT_H_

#if _MSC_VER > 1000
#pragma once
#endif

#include <limits.h>

// For Visual Studio 6 in C++ mode and for many Visual Studio versions when
// compiling for ARM we should wrap <wchar.h> include with 'extern "C++" {}'
// or compiler give many errors like this:
//   error C2733: second C linkage of overloaded function 'wmemchr' not allowed
#ifdef __cplusplus
extern "C" {
#endif
#include <wchar.h>
#ifdef __cplusplus
}
#endif

// Define _W64 macros to mark types changing their size, like intptr_t.
#ifndef _W64
#if !defined(__midl) && (defined(_X86_) || defined(_M_IX86)) && _MSC_VER >= 1300
#define _W64 __w64
#else
#define _W64
#endif
#endif

// 7.18.1 Integer types

// 7.18.1.1 Exact-width integer types

// Visual Studio 6 and Embedded Visual C++ 4 doesn't
// realize that, e.g. char has the same size as __int8
// so we give up on __intX for them.
#if (_MSC_VER < 1300)
typedef signed char int8_t;
typedef signed short int16_t;
typedef signed int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#else
typedef signed __int8 int8_t;
typedef signed __int16 int16_t;
typedef signed __int32 int32_t;
typedef unsigned __int8 uint8_t;
typedef unsigned __int16 uint16_t;
typedef unsigned __int32 uint32_t;
#endif
typedef signed __int64 int64_t;
typedef unsigned __int64 uint64_t;

// 7.18.1.2 Minimum-width integer types
typedef int8_t int_least8_t;
typedef int16_t int_least16_t;
typedef int32_t int_least32_t;
typedef int64_t int_least64_t;
typedef uint8_t uint_least8_t;
typedef uint16_t uint_least16_t;
typedef uint32_t uint_least32_t;
typedef uint64_t uint_least64_t;

// 7.18.1.3 Fastest minimum-width integer types
typedef int8_t int_fast8_t;
typedef int16_t int_fast16_t;
typedef int32_t int_fast32_t;
typedef int64_t int_fast64_t;
typedef uint8_t uint_fast8_t;
typedef uint16_t uint_fast16_t;
typedef uint32_t uint_fast32_t;
typedef uint64_t uint_fast64_t;

// 7.18.1.4 Integer types capable of holding object pointers
#ifdef _WIN64 // [
typedef signed __int64 intptr_t;
typedef unsigned __int64 uintptr_t;
#else  // _WIN64 ][
typedef _W64 signed int intptr_t;
typedef _W64 unsigned int uintptr_t;
#endif // _WIN64 ]

// 7.18.1.5 Greatest-width integer types
typedef int64_t intmax_t;
typedef uint64_t uintmax_t;

// 7.18.2 Limits of specified-width integer types

#if !defined(__cplusplus) ||                                                                                           \
    defined(__STDC_LIMIT_MACROS) // [   See footnote 220 at page 257 and footnote 221 at page 259

// 7.18.2.1 Limits of exact-width integer types
#define INT8_MIN ((int8_t)_I8_MIN)
#define INT8_MAX _I8_MAX
#define INT16_MIN ((int16_t)_I16_MIN)
#define INT16_MAX _I16_MAX
#define INT32_MIN ((int32_t)_I32_MIN)
#define INT32_MAX _I32_MAX
#define INT64_MIN ((int64_t)_I64_MIN)
#define INT64_MAX _I64_MAX
#define UINT8_MAX _UI8_MAX
#define UINT16_MAX _UI16_MAX
#define UINT32_MAX _UI32_MAX
#define UINT64_MAX _UI64_MAX

// 7.18.2.2 Limits of minimum-width integer types
#define INT_LEAST8_MIN INT8_MIN
#define INT_LEAST8_MAX INT8_MAX
#define INT_LEAST16_MIN INT16_MIN
#define INT_LEAST16_MAX INT16_MAX
#define INT_LEAST32_MIN INT32_MIN
#define INT_LEAST32_MAX INT32_MAX
#define INT_LEAST64_MIN INT64_MIN
#define INT_LEAST64_MAX INT64_MAX
#define UINT_LEAST8_MAX UINT8_MAX
#define UINT_LEAST16_MAX UINT16_MAX
#define UINT_LEAST32_MAX UINT32_MAX
#define UINT_LEAST64_MAX UINT64_MAX

// 7.18.2.3 Limits of fastest minimum-width integer types
#define INT_FAST8_MIN INT8_MIN
#define INT_FAST8_MAX INT8_MAX
#define INT_FAST16_MIN INT16_MIN
#define INT_FAST16_MAX INT16_MAX
#define INT_FAST32_MIN INT32_MIN
#define INT_FAST32_MAX INT32_MAX
#define INT_FAST64_MIN INT64_MIN
#define INT_FAST64_MAX INT64_MAX
#define UINT_FAST8_MAX UINT8_MAX
#define UINT_FAST16_MAX UINT16_MAX
#define UINT_FAST32_MAX UINT32_MAX
#define UINT_FAST64_MAX UINT64_MAX

// 7.18.2.4 Limits of integer types capable of holding object pointers
#ifdef _WIN64 // [
#define INTPTR_MIN INT64_MIN
#define INTPTR_MAX INT64_MAX
#define UINTPTR_MAX UINT64_MAX
#else // _WIN64 ][
#define INTPTR_MIN INT32_MIN
#define INTPTR_MAX INT32_MAX
#define UINTPTR_MAX UINT32_MAX
#endif // _WIN64 ]

// 7.18.2.5 Limits of greatest-width integer types
#define INTMAX_MIN INT64_MIN
#define INTMAX_MAX INT64_MAX
#define UINTMAX_MAX UINT64_MAX

// 7.18.3 Limits of other integer types

#ifdef _WIN64 // [
#define PTRDIFF_MIN _I64_MIN
#define PTRDIFF_MAX _I64_MAX
#else // _WIN64 ][
#define PTRDIFF_MIN _I32_MIN
#define PTRDIFF_MAX _I32_MAX
#endif // _WIN64 ]

#define SIG_ATOMIC_MIN INT_MIN
#define SIG_ATOMIC_MAX INT_MAX

#ifndef SIZE_MAX // [
#ifdef _WIN64    // [
#define SIZE_MAX _UI64_MAX
#else // _WIN64 ][
#define SIZE_MAX _UI32_MAX
#endif // _WIN64 ]
#endif // SIZE_MAX ]

// WCHAR_MIN and WCHAR_MAX are also defined in <wchar.h>
#ifndef WCHAR_MIN // [
#define WCHAR_MIN 0
#endif            // WCHAR_MIN ]
#ifndef WCHAR_MAX // [
#define WCHAR_MAX _UI16_MAX
#endif // WCHAR_MAX ]

#define WINT_MIN 0
#define WINT_MAX _UI16_MAX

#endif // __STDC_LIMIT_MACROS ]

// 7.18.4 Limits of other integer types

#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS) // [   See footnote 224 at page 260

// 7.18.4.1 Macros for minimum-width integer constants

#define INT8_C(val) val##i8
#define INT16_C(val) val##i16
#define INT32_C(val) val##i32
#define INT64_C(val) val##i64

#define UINT8_C(val) val##ui8
#define UINT16_C(val) val##ui16
#define UINT32_C(val) val##ui32
#define UINT64_C(val) val##ui64

// 7.18.4.2 Macros for greatest-width integer constants
#define INTMAX_C INT64_C
#define UINTMAX_C UINT64_C

#endif // __STDC_CONSTANT_MACROS ]

#endif // _MSC_STDINT_H_ ]


================================================
FILE: include/Makefile.am
================================================
SUBDIRS=ortp


================================================
FILE: include/ortp/.gitignore
================================================
Makefile
Makefile.in


================================================
FILE: include/ortp/Makefile.am
================================================
ortp_includedir=$(includedir)/ortp

ortp_include_HEADERS=str_utils.h rtpsession.h rtp.h port.h logging.h nack.h \
					ortp.h telephonyevents.h sessionset.h payloadtype.h rtpprofile.h rtpsignaltable.h \
					rtcp.h event.h utils.h \
					b64.h

EXTRA_DIST=$(ortp_include_HEADERS)


================================================
FILE: include/ortp/event.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef ortp_events_h
#define ortp_events_h

#include "bctoolbox/list.h"
#include "ortp/port.h"
#include "ortp/rtcp.h"
#include "ortp/str_utils.h"

typedef mblk_t OrtpEvent;

typedef unsigned long OrtpEventType;

typedef enum { OrtpRTPSocket, OrtpRTCPSocket } OrtpSocketType;

struct _OrtpEventData {
	mblk_t *packet; /* most events are associated to a received packet */
	struct sockaddr_storage source_addr;
	socklen_t source_addrlen;
	ortpTimeSpec ts;
	union {
		int sequence_number_diff;
		int telephone_event;
		int payload_type;
		bool_t dtls_stream_encrypted;
		bool_t zrtp_stream_encrypted;
		bool_t ice_processing_successful;
		struct _zrtp_info {
			char sas[32];              // up to 31 + null characters
			char incorrect_sas[3][32]; // List of 3 half bad SAS. Up to 31 + null characters
			bool_t verified;
			bool_t cache_mismatch;
			bool_t pad[2];
			int cipherAlgo;
			int keyAgreementAlgo;
			int hashAlgo;
			int authTagAlgo;
			int sasAlgo;
		} zrtp_info;
		struct _srtp_info {
			bool_t is_send;  /**< stream direction this is applied too */
			bool_t is_inner; /**< this info applies to inner encryption (in case of SRTP double encryption) */
			int source;      /**< the source of the key material as defined in MSSrtpKeySource enum in ms_strp.h */
			int suite;       /**< the srtp crypto suite used as defined in MSCryptoSuite enum in ms_srtp.h */
		} srtp_info;
		OrtpSocketType socket_type;
		uint32_t received_rtt_character;
		bool_t congestion_detected;
		float video_bandwidth_available;
		float audio_bandwidth_available;
		int jitter_min_size_for_nack;
	} info;
};

typedef struct _OrtpEventData OrtpEventData;

#ifdef __cplusplus
extern "C" {
#endif

ORTP_PUBLIC OrtpEvent *ortp_event_new(OrtpEventType tp);
ORTP_PUBLIC OrtpEventType ortp_event_get_type(const OrtpEvent *ev);
/* type is one of the following*/

#define ORTP_EVENT_STUN_PACKET_RECEIVED 1
#define ORTP_EVENT_PAYLOAD_TYPE_CHANGED 2
#define ORTP_EVENT_TELEPHONE_EVENT 3
#define ORTP_EVENT_RTCP_PACKET_RECEIVED 4 /**<when a RTCP packet is received from far end */
#define ORTP_EVENT_RTCP_PACKET_EMITTED 5  /**<fired when oRTP decides to send an automatic RTCP SR or RR */
#define ORTP_EVENT_ZRTP_ENCRYPTION_CHANGED 6
#define ORTP_EVENT_ZRTP_SAS_READY 7
#define ORTP_EVENT_ICE_CHECK_LIST_PROCESSING_FINISHED 8
#define ORTP_EVENT_ICE_SESSION_PROCESSING_FINISHED 9
#define ORTP_EVENT_ICE_GATHERING_FINISHED 10
#define ORTP_EVENT_ICE_LOSING_PAIRS_COMPLETED 11
#define ORTP_EVENT_ICE_RESTART_NEEDED 12
#define ORTP_EVENT_ICE_CHECK_LIST_DEFAULT_CANDIDATE_VERIFIED 25
#define ORTP_EVENT_DTLS_ENCRYPTION_CHANGED 13
#define ORTP_EVENT_RTT_CHARACTER_RECEIVED 15
#define ORTP_EVENT_CONGESTION_STATE_CHANGED 16
#define ORTP_EVENT_ZRTP_CACHE_MISMATCH 17
#define ORTP_EVENT_ZRTP_PEER_VERSION_OBSOLETE 18
#define ORTP_EVENT_ZRTP_PEER_REQUEST_GOCLEAR 19
#define ORTP_EVENT_ZRTP_PEER_ACK_GOCLEAR 20
#define ORTP_EVENT_NEW_VIDEO_BANDWIDTH_ESTIMATION_AVAILABLE 21
#define ORTP_EVENT_ICE_DEACTIVATION_NEEDED 22
#define ORTP_EVENT_JITTER_UPDATE_FOR_NACK 23
#define ORTP_EVENT_DO_NOT_USE_RESERVED 25 /* taken by ORTP_EVENT_ICE_CHECK_LIST_DEFAULT_CANDIDATE_VERIFIED */
#define ORTP_EVENT_SRTP_ENCRYPTION_CHANGED                                                                             \
	26 /* srtp status changed - set key material source and crypto suite usesd in stream stats */
#define ORTP_EVENT_BURST_OCCURED 27
#define ORTP_EVENT_NEW_AUDIO_BANDWIDTH_ESTIMATION_AVAILABLE 28

ORTP_PUBLIC OrtpEventData *ortp_event_get_data(OrtpEvent *ev);
ORTP_PUBLIC void ortp_event_destroy(OrtpEvent *ev);
ORTP_PUBLIC OrtpEvent *ortp_event_dup(OrtpEvent *ev);

typedef struct OrtpEvQueue {
	queue_t q;
	ortp_mutex_t mutex;
} OrtpEvQueue;

ORTP_PUBLIC OrtpEvQueue *ortp_ev_queue_new(void);
ORTP_PUBLIC void ortp_ev_queue_destroy(OrtpEvQueue *q);
ORTP_PUBLIC OrtpEvent *ortp_ev_queue_get(OrtpEvQueue *q);
ORTP_PUBLIC void ortp_ev_queue_flush(OrtpEvQueue *qp);

struct _RtpSession;

/**
 * Callback function when a RTCP packet of the interested type is found.
 *
 * @param evd the packet. Read-only, must NOT be changed.
 * @param user_data user data provided when registered the callback
 *
 */
typedef void (*OrtpEvDispatcherCb)(const OrtpEventData *evd, void *user_data);
typedef struct OrtpEvDispatcherData {
	OrtpEventType type;
	rtcp_type_t subtype;
	OrtpEvDispatcherCb on_found;
	void *user_data;
} OrtpEvDispatcherData;

typedef struct OrtpEvDispatcher {
	OrtpEvQueue *q;
	struct _RtpSession *session;
	bctbx_list_t *cbs;
} OrtpEvDispatcher;

/**
 * Constructs an OrtpEvDispatcher object. This object can be used to be notified
 * when any RTCP type packet is received or emitted on the rtp session,
 * given a callback registered with \a ortp_ev_dispatcher_connect
 *
 * @param session RTP session to listen on. Cannot be NULL.
 *
 * @return OrtpEvDispatcher object newly created.
 */
ORTP_PUBLIC OrtpEvDispatcher *ortp_ev_dispatcher_new(struct _RtpSession *session);
/**
 * Frees the memory for the given dispatcher. Note that user_data must be freed
 * by caller, and so does the OrtpEvQueue.
 *
 * @param d OrtpEvDispatcher object
 */
ORTP_PUBLIC void ortp_ev_dispatcher_destroy(OrtpEvDispatcher *d);
/**
 * Iterate method to be called periodically. If a RTCP packet is found and
 * its type matches one of the callback connected with \a ortp_ev_dispatcher_connect,
 * this callback will be invoked in the current thread.
 *
 * @param d OrtpEvDispatcher object
 */
ORTP_PUBLIC void ortp_ev_dispatcher_iterate(OrtpEvDispatcher *d);
/**
 * Connects a callback to the given type of event packet and, in case of RTCP event,
 * for the given RTCP subtype.
 * When any event is found, the callback is invoked. Multiple
 * callbacks can be connected to the same type of event, and the same callback
 * can be connected to multiple type of event.
 *
 * @param d OrtpEvDispatcher object
 * @param type type of event to be notified of.
 * @param subtype when type is set to ORTP_EVENT_RTCP_PACKET_RECEIVED or ORTP_EVENT_RTCP_PACKET_EMITTED, subtype of RTCP
 * packet to be notified of. Otherwise this parameter is not used.
 * @param on_receive function to call when a RTCP packet of the given type is found.
 * @param user_data user data given as last argument of the callback. Can be NULL. MUST be freed by user.
 */
ORTP_PUBLIC void ortp_ev_dispatcher_connect(
    OrtpEvDispatcher *d, OrtpEventType type, rtcp_type_t subtype, OrtpEvDispatcherCb on_receive, void *user_data);

/**
 * Disconnects the given callback for the given type and subtype on the given dispatcher.
 */
ORTP_PUBLIC void
ortp_ev_dispatcher_disconnect(OrtpEvDispatcher *d, OrtpEventType type, rtcp_type_t subtype, OrtpEvDispatcherCb cb);

#ifdef __cplusplus
}
#endif

#endif


================================================
FILE: include/ortp/logging.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * \file logging.h
 * \brief Logging API.
 *
 **/

#ifndef ORTP_LOGGING_H
#define ORTP_LOGGING_H

#include <ortp/port.h>

#define ORTP_LOG_DOMAIN BCTBX_LOG_DOMAIN

#include "bctoolbox/logging.h"

#ifdef __cplusplus
extern "C" {
#endif

/***************/
/* logging api */
/***************/

#define ORTP_FATAL BCTBX_LOG_FATAL
#define ORTP_ERROR BCTBX_LOG_ERROR
#define ORTP_WARNING BCTBX_LOG_WARNING
#define ORTP_MESSAGE BCTBX_LOG_MESSAGE
#define ORTP_TRACE BCTBX_LOG_TRACE
#define ORTP_DEBUG BCTBX_LOG_DEBUG
#define ORTP_END BCTBX_LOG_END
#define ORTP_LOGLEV_END BCTBX_LOG_LOGLEV_END
#define OrtpLogLevel BctbxLogLevel

#define OrtpLogFunc BctbxLogFunc

/*#define ortp_set_log_file bctbx_set_log_file*/
ORTP_PUBLIC void ortp_set_log_file(FILE *file);

/*#define ortp_set_log_handler bctbx_set_log_handler*/
ORTP_PUBLIC void ortp_set_log_handler(OrtpLogFunc func);

/* This function does not have any means by now, as even bctbx_set_log_handler is deprecated. use bctbx_log_handler_t
 * instead*/
ORTP_PUBLIC OrtpLogFunc ortp_get_log_handler(void);

#define ortp_logv_out bctbx_logv_out
/*ORTP_PUBLIC void ortp_logv_out(const char *domain, OrtpLogLevel level, const char *fmt, va_list args);*/

#define ortp_log_level_enabled(domain, level) (bctbx_get_log_level_mask(domain) & (level))
#define ortp_logv bctbx_logv
/*ORTP_PUBLIC void ortp_logv(const char *domain, OrtpLogLevel level, const char *fmt, va_list args);*/

/**
 * Flushes the log output queue.
 * WARNING: Must be called from the thread that has been defined with ortp_set_log_thread_id().
 */
#define ortp_logv_flush bctbx_logv_flush
/*ORTP_PUBLIC void ortp_logv_flush(void);*/

/**
 * Activate all log level greater or equal than specified level argument.
 **/
#define ortp_set_log_level bctbx_set_log_level
/*ORTP_PUBLIC void ortp_set_log_level(const char *domain, OrtpLogLevel level);*/

#define ortp_set_log_level_mask bctbx_set_log_level_mask
/*ORTP_PUBLIC void ortp_set_log_level_mask(const char *domain, int levelmask);*/
#define ortp_get_log_level_mask bctbx_get_log_level_mask
/*ORTP_PUBLIC unsigned int ortp_get_log_level_mask(const char *domain);*/

/**
 * Tell oRTP the id of the thread used to output the logs.
 * This is meant to output all the logs from the same thread to prevent deadlock problems at the application level.
 */
#define ortp_set_log_thread_id(id) bctbx_set_log_thread_id(id)
/*ORTP_PUBLIC void ortp_set_log_thread_id(unsigned long thread_id);*/

#ifdef ORTP_DEBUG_MODE
#define ortp_debug bctbx_debug
#else

#define ortp_debug(...)

#endif

#ifdef ORTP_NOMESSAGE_MODE

#define ortp_log(...)
#define ortp_message(...)
#define ortp_warning(...)

#else

static ORTP_INLINE void CHECK_FORMAT_ARGS(2, 3) ortp_log(OrtpLogLevel lev, const char *fmt, ...) {
	va_list args;
	va_start(args, fmt);
	bctbx_logv(ORTP_LOG_DOMAIN, lev, fmt, args);
	va_end(args);
}

#define ortp_message bctbx_message
#define ortp_warning bctbx_warning
#define ortp_error bctbx_error
#define ortp_fatal bctbx_fatal
#endif /*ORTP_NOMESSAGE_MODE*/

#ifdef __QNX__
#define ortp_qnx_log_handler bctbx_qnx_log_handler
/*void ortp_qnx_log_handler(const char *domain, OrtpLogLevel lev, const char *fmt, va_list args);*/
#endif

#ifdef __cplusplus
}
#endif

#endif


================================================
FILE: include/ortp/nack.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef NACK_H
#define NACK_H

#include <bctoolbox/list.h>
#include <bctoolbox/port.h>
#include <ortp/port.h>
#include <ortp/rtpsession.h>

#ifdef __cplusplus
extern "C" {
#endif

struct _OrtpNackContext {
	RtpSession *session;
	OrtpEvDispatcher *ev_dispatcher;
	RtpTransportModifier *rtp_modifier;
	RtpTransportModifier *rtcp_modifier;
	queue_t sent_packets;
	bctbx_mutex_t sent_packets_mutex;
	int max_packets;
	int min_jitter_before_nack;
	bool_t decrease_jitter_timer_running;
	uint64_t decrease_jitter_timer_start;
	uint64_t cum_packet_loss;
	uint64_t loss_before_nack;
};

typedef struct _OrtpNackContext OrtpNackContext;

ORTP_PUBLIC OrtpNackContext *ortp_nack_context_new(OrtpEvDispatcher *evt);
ORTP_PUBLIC void ortp_nack_context_destroy(OrtpNackContext *ctx);

ORTP_PUBLIC void ortp_nack_context_set_max_packet(OrtpNackContext *ctx, int max);

ORTP_PUBLIC void ortp_nack_context_process_timer(OrtpNackContext *ctx);

#ifdef __cplusplus
}
#endif

#endif


================================================
FILE: include/ortp/ortp.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/** \mainpage oRTP API documentation
 *
 * \section init Initializing oRTP
 *
 * see ortp.h documentation.
 *
 * \section rtpsession the RtpSession object
 *
 * see the rtpsession.h documentation.
 *
 * \section payloadtypes Managing PayloadType(s) and RtpProfile(s)
 *
 * see the payloadtype.h documentation.
 *
 * \section telephonevents Sending and receiving telephone-event (RFC2833)
 *
 * see the telephonyevents.h documentation.
 * To get informed about incoming telephone-event you can register a callback
 * using rtp_session_signal_connect() or by registering an event queue using
 * rtp_session_register_event_queue().
 *
 * \section sessionset Managing several RtpSession simultaneously
 *
 * see the sessionset.h documentation.
 *
 * \section rtcp Parsing incoming rtcp packets.
 *
 * The parsing api is defined in rtcp.h (not yet documented).
 *
 * \section examples Examples
 *
 * oRTP comes with a set of examples in src/tests.
 * - rtprecv.c rtpsend.c show how to receive and send a single RTP stream.
 * - mrtprecv.c mrtpsend.c show how to receive and send multiple RTP streams
 *   simultaneously
 *
 */

/**
 * \file ortp.h
 * \brief General purpose library functions.
 *
 **/

#ifndef ORTP_H
#define ORTP_H
#include "ortp/logging.h"
#include "ortp/rtpsession.h"
#include "ortp/sessionset.h"

#ifdef __cplusplus
extern "C" {
#endif

ORTP_PUBLIC bool_t ortp_min_version_required(int major, int minor, int micro);
ORTP_PUBLIC void ortp_init(void);
ORTP_PUBLIC void ortp_scheduler_init(void);
ORTP_PUBLIC void ortp_exit(void);

/****************/
/*statistics api*/
/****************/

extern rtp_stats_t ortp_global_stats;

ORTP_PUBLIC void ortp_global_stats_reset(void);
ORTP_PUBLIC rtp_stats_t *ortp_get_global_stats(void);

ORTP_PUBLIC void ortp_global_stats_display(void);
ORTP_PUBLIC void rtp_stats_display(const rtp_stats_t *stats, const char *header);
ORTP_PUBLIC void rtp_stats_display_all(const rtp_stats_t *stats1, const rtp_stats_t *stats2, const char *header);
ORTP_PUBLIC void rtp_stats_reset(rtp_stats_t *stats);

#ifdef __cplusplus
}
#endif

#endif


================================================
FILE: include/ortp/payloadtype.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * \file payloadtype.h
 * \brief Definition of payload types
 *
 **/

#ifndef PAYLOADTYPE_H
#define PAYLOADTYPE_H
#include <ortp/port.h>

#ifdef __cplusplus
extern "C" {
#endif

/* flags for PayloadType::flags */

#define PAYLOAD_TYPE_ALLOCATED (1)
/*payload type represents a VBR codec*/
#define PAYLOAD_TYPE_IS_VBR (1 << 1)
#define PAYLOAD_TYPE_RTCP_FEEDBACK_ENABLED (1 << 2)
/* private flags for future use by ortp */
#define PAYLOAD_TYPE_PRIV1 (1 << 3)
/* user flags, can be used by the application on top of oRTP */
#define PAYLOAD_TYPE_USER_FLAG_0 (1 << 4)
#define PAYLOAD_TYPE_USER_FLAG_1 (1 << 5)
#define PAYLOAD_TYPE_USER_FLAG_2 (1 << 6)
#define PAYLOAD_TYPE_USER_FLAG_3 (1 << 7)
#define PAYLOAD_TYPE_USER_FLAG_4 (1 << 8)
#define PAYLOAD_TYPE_USER_FLAG_5 (1 << 9)
#define PAYLOAD_TYPE_USER_FLAG_6 (1 << 10)
#define PAYLOAD_TYPE_USER_FLAG_7 (1 << 11)
/* ask for more if you need*/

#define PAYLOAD_TYPE_FLAG_CAN_RECV PAYLOAD_TYPE_USER_FLAG_1
#define PAYLOAD_TYPE_FLAG_CAN_SEND PAYLOAD_TYPE_USER_FLAG_2

#define PAYLOAD_AUDIO_CONTINUOUS 0
#define PAYLOAD_AUDIO_PACKETIZED 1
#define PAYLOAD_VIDEO 2
#define PAYLOAD_TEXT 3
#define PAYLOAD_OTHER 4 /* ?? */

#define PAYLOAD_TYPE_AVPF_NONE 0
#define PAYLOAD_TYPE_AVPF_FIR (1 << 0)
#define PAYLOAD_TYPE_AVPF_PLI (1 << 1)
#define PAYLOAD_TYPE_AVPF_SLI (1 << 2)
#define PAYLOAD_TYPE_AVPF_RPSI (1 << 3)

struct _PayloadTypeAvpfParams {
	unsigned char features;    /**< A bitmask of PAYLOAD_TYPE_AVPF_* macros. */
	bool_t rpsi_compatibility; /*< Linphone uses positive feeback for RPSI. However first versions handling
	    AVPF wrongly declared RPSI as negative feedback, so this is kept for compatibility
	    with these versions but will probably be removed at some point in time. */
	uint16_t trr_interval;     /**< The interval in milliseconds between regular RTCP packets. */
};

struct _OrtpPayloadType {
	int type;             /**< one of PAYLOAD_* macros*/
	int clock_rate;       /**< rtp clock rate*/
	char bits_per_sample; /* in case of continuous audio data */
	char *zero_pattern;
	int pattern_length;
	/* other useful information for the application*/
	int normal_bitrate;                 /*in bit/s */
	char *mime_type;                    /**<actually the submime, ex: pcm, pcma, gsm*/
	int channels;                       /**< number of channels of audio */
	char *recv_fmtp;                    /* various format parameters for the incoming stream */
	char *send_fmtp;                    /* various format parameters for the outgoing stream */
	struct _PayloadTypeAvpfParams avpf; /* AVPF parameters */
	int flags;
	void *user_data;
};

#ifndef PayloadType_defined
#define PayloadType_defined
typedef struct _OrtpPayloadType OrtpPayloadType;
typedef OrtpPayloadType PayloadType;
typedef struct _PayloadTypeAvpfParams PayloadTypeAvpfParams;
#endif

#define payload_type_set_flag(pt, flag) (pt)->flags |= ((int)flag)
#define payload_type_unset_flag(pt, flag) (pt)->flags &= (~(int)flag)
#define payload_type_get_flags(pt) (pt)->flags

ORTP_PUBLIC PayloadType *payload_type_new(void);
ORTP_PUBLIC PayloadType *payload_type_clone(const PayloadType *payload);
ORTP_PUBLIC char *payload_type_get_rtpmap(PayloadType *pt);
ORTP_PUBLIC void payload_type_destroy(PayloadType *pt);
ORTP_PUBLIC void payload_type_set_recv_fmtp(PayloadType *pt, const char *fmtp);
ORTP_PUBLIC void payload_type_set_send_fmtp(PayloadType *pt, const char *fmtp);
ORTP_PUBLIC void payload_type_append_recv_fmtp(PayloadType *pt, const char *fmtp);
ORTP_PUBLIC void payload_type_append_send_fmtp(PayloadType *pt, const char *fmtp);
#define payload_type_get_avpf_params(pt) ((pt)->avpf)
ORTP_PUBLIC void payload_type_set_avpf_params(PayloadType *pt, PayloadTypeAvpfParams params);
ORTP_PUBLIC bool_t payload_type_is_vbr(const PayloadType *pt);

#define payload_type_get_bitrate(pt) ((pt)->normal_bitrate)
#define payload_type_get_rate(pt) ((pt)->clock_rate)
#define payload_type_get_mime(pt) ((pt)->mime_type)

ORTP_PUBLIC bool_t fmtp_get_value(const char *fmtp, const char *param_name, char *result, size_t result_len);

#define payload_type_set_user_data(pt, p) (pt)->user_data = (p)
#define payload_type_get_user_data(pt) ((pt)->user_data)

/* some payload types */
/* audio */
ORTP_VAR_PUBLIC PayloadType payload_type_pcmu8000;
ORTP_VAR_PUBLIC PayloadType payload_type_pcma8000;
ORTP_VAR_PUBLIC PayloadType payload_type_pcm8000;
ORTP_VAR_PUBLIC PayloadType payload_type_l16_mono;
ORTP_VAR_PUBLIC PayloadType payload_type_l16_stereo;
ORTP_VAR_PUBLIC PayloadType payload_type_lpc1016;
ORTP_VAR_PUBLIC PayloadType payload_type_g729;
ORTP_VAR_PUBLIC PayloadType payload_type_g7231;
ORTP_VAR_PUBLIC PayloadType payload_type_g7221;
ORTP_VAR_PUBLIC PayloadType payload_type_cn;
ORTP_VAR_PUBLIC PayloadType payload_type_g726_40;
ORTP_VAR_PUBLIC PayloadType payload_type_g726_32;
ORTP_VAR_PUBLIC PayloadType payload_type_g726_24;
ORTP_VAR_PUBLIC PayloadType payload_type_g726_16;
ORTP_VAR_PUBLIC PayloadType payload_type_aal2_g726_40;
ORTP_VAR_PUBLIC PayloadType payload_type_aal2_g726_32;
ORTP_VAR_PUBLIC PayloadType payload_type_aal2_g726_24;
ORTP_VAR_PUBLIC PayloadType payload_type_aal2_g726_16;
ORTP_VAR_PUBLIC PayloadType payload_type_gsm;
ORTP_VAR_PUBLIC PayloadType payload_type_lpc;
ORTP_VAR_PUBLIC PayloadType payload_type_lpc1015;
ORTP_VAR_PUBLIC PayloadType payload_type_speex_nb;
ORTP_VAR_PUBLIC PayloadType payload_type_speex_wb;
ORTP_VAR_PUBLIC PayloadType payload_type_speex_uwb;
ORTP_VAR_PUBLIC PayloadType payload_type_ilbc;
ORTP_VAR_PUBLIC PayloadType payload_type_amr;
ORTP_VAR_PUBLIC PayloadType payload_type_amrwb;
ORTP_VAR_PUBLIC PayloadType payload_type_truespeech;
ORTP_VAR_PUBLIC PayloadType payload_type_evrc0;
ORTP_VAR_PUBLIC PayloadType payload_type_evrcb0;
ORTP_VAR_PUBLIC PayloadType payload_type_silk_nb;
ORTP_VAR_PUBLIC PayloadType payload_type_silk_mb;
ORTP_VAR_PUBLIC PayloadType payload_type_silk_wb;
ORTP_VAR_PUBLIC PayloadType payload_type_silk_swb;
ORTP_VAR_PUBLIC PayloadType payload_type_aaceld_16k;
ORTP_VAR_PUBLIC PayloadType payload_type_aaceld_22k;
ORTP_VAR_PUBLIC PayloadType payload_type_aaceld_32k;
ORTP_VAR_PUBLIC PayloadType payload_type_aaceld_44k;
ORTP_VAR_PUBLIC PayloadType payload_type_aaceld_48k;
ORTP_VAR_PUBLIC PayloadType payload_type_opus;
ORTP_VAR_PUBLIC PayloadType payload_type_isac;
ORTP_VAR_PUBLIC PayloadType payload_type_gsm_efr;
ORTP_VAR_PUBLIC PayloadType payload_type_codec2;
ORTP_VAR_PUBLIC PayloadType payload_type_bv16;

/* video */
ORTP_VAR_PUBLIC PayloadType payload_type_mpv;
ORTP_VAR_PUBLIC PayloadType payload_type_h261;
ORTP_VAR_PUBLIC PayloadType payload_type_h263;
ORTP_VAR_PUBLIC PayloadType payload_type_h263_1998;
ORTP_VAR_PUBLIC PayloadType payload_type_h263_2000;
ORTP_VAR_PUBLIC PayloadType payload_type_mp4v;
ORTP_VAR_PUBLIC PayloadType payload_type_theora;
ORTP_VAR_PUBLIC PayloadType payload_type_h264;
ORTP_VAR_PUBLIC PayloadType payload_type_h265;
ORTP_VAR_PUBLIC PayloadType payload_type_x_snow;
ORTP_VAR_PUBLIC PayloadType payload_type_jpeg;
ORTP_VAR_PUBLIC PayloadType payload_type_vp8;
ORTP_VAR_PUBLIC PayloadType payload_type_av1;

ORTP_VAR_PUBLIC PayloadType payload_type_g722;
ORTP_VAR_PUBLIC PayloadType payload_type_flexfec;
/* text */
ORTP_VAR_PUBLIC PayloadType payload_type_t140;
ORTP_VAR_PUBLIC PayloadType payload_type_t140_red;

/* non standard file transfer over UDP */
ORTP_VAR_PUBLIC PayloadType payload_type_x_udpftp;

/* telephone-event */
ORTP_VAR_PUBLIC PayloadType payload_type_telephone_event;

#ifdef __cplusplus
}
#endif

#endif


================================================
FILE: include/ortp/port.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
/* this file is responsible of the portability of the stack */

#ifndef ORTP_PORT_H
#define ORTP_PORT_H

#include "bctoolbox/port.h"

#ifndef ORTP_DEPRECATED
#if defined(_MSC_VER)
#define ORTP_DEPRECATED __declspec(deprecated)
#else
#define ORTP_DEPRECATED __attribute__((deprecated))
#endif // _MSC_VER
#endif // ORTP_DEPRECATED

#if __APPLE__
#include "TargetConditionals.h"
#endif

typedef bctbx_socket_t ortp_socket_t;
typedef bctbx_cond_t ortp_cond_t;
typedef bctbx_mutex_t ortp_mutex_t;
typedef bctbx_thread_t ortp_thread_t;

#define ortp_thread_create bctbx_thread_create
#define ortp_thread_join bctbx_thread_join
#define ortp_thread_self bctbx_thread_self
#define ortp_thread_exit(arg) bctbx_thread_exit
#define ortp_mutex_init bctbx_mutex_init
#define ortp_mutex_lock bctbx_mutex_lock
#define ortp_mutex_unlock bctbx_mutex_unlock
#define ortp_mutex_destroy bctbx_mutex_destroy
#define ortp_cond_init bctbx_cond_init
#define ortp_cond_signal bctbx_cond_signal
#define ortp_cond_broadcast bctbx_cond_broadcast
#define ortp_cond_wait bctbx_cond_wait
#define ortp_cond_destroy bctbx_cond_destroy

#if !defined(_WIN32) && !defined(_WIN32_WCE)
/********************************/
/* definitions for UNIX flavour */
/********************************/

#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <unistd.h>

#ifdef __linux__
#include <stdint.h>
#endif

#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/types.h>
#if defined(_XOPEN_SOURCE_EXTENDED) || !defined(__hpux)
#include <arpa/inet.h>
#endif

#include <sys/time.h>

#include <netdb.h>

#ifdef __INTEL_COMPILER

#pragma warning(disable : 111)  // statement is unreachable
#pragma warning(disable : 181)  // argument is incompatible with corresponding format string conversion
#pragma warning(disable : 188)  // enumerated type mixed with another type
#pragma warning(disable : 593)  // variable "xxx" was set but never used
#pragma warning(disable : 810)  // conversion from "int" to "unsigned short" may lose significant bits
#pragma warning(disable : 869)  // parameter "xxx" was never referenced
#pragma warning(disable : 981)  // operands are evaluated in unspecified order
#pragma warning(disable : 1418) // external function definition with no prior declaration
#pragma warning(disable : 1419) // external declaration in primary source file
#pragma warning(disable : 1469) // "cc" clobber ignored
#endif                          // __INTEL_COMPILER

#define ORTP_PUBLIC
#define ORTP_INLINE inline

#define SOCKET_OPTION_VALUE void *
#define SOCKET_BUFFER void *

#define ortp_log10f(x) log10f(x)

#else // !defined(_WIN32) && !defined(_WIN32_WCE)
/*********************************/
/* definitions for WIN32 flavour */
/*********************************/

#include <stdio.h>
#define _CRT_RAND_S
#include <stdarg.h>
#include <stdlib.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#ifdef _MSC_VER
#include <io.h>
#endif // _MSC_VER

#if defined(__MINGW32__) || !defined(WINAPI_FAMILY_PARTITION) || !defined(WINAPI_PARTITION_DESKTOP)
#define ORTP_WINDOWS_DESKTOP 1
#elif defined(WINAPI_FAMILY_PARTITION)
// See bctoolbox/include/port.h for WINAPI_PARTITION checker
#if defined(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#define ORTP_WINDOWS_DESKTOP 1
#elif defined(WINAPI_PARTITION_PC_APP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PC_APP)
#define ORTP_WINDOWS_DESKTOP 1
#define ORTP_WINDOWS_UWP 1
#elif defined(WINAPI_PARTITION_PHONE_APP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_PHONE_APP)
#define ORTP_WINDOWS_PHONE 1
#elif defined(WINAPI_PARTITION_APP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_APP)
#define ORTP_WINDOWS_UNIVERSAL 1
#endif // defined(WINAPI_PARTITION_DESKTOP) && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
#endif // defined(WINAPI_FAMILY_PARTITION)

#ifdef _MSC_VER
#ifdef ORTP_STATIC
#define ORTP_PUBLIC
#else
#ifdef ORTP_EXPORTS
#define ORTP_PUBLIC __declspec(dllexport)
#else
#define ORTP_PUBLIC __declspec(dllimport)
#endif
#endif
#pragma push_macro("_WINSOCKAPI_")
#ifndef _WINSOCKAPI_
#define _WINSOCKAPI_
#endif

typedef unsigned __int64 uint64_t;
typedef __int64 int64_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
typedef int int32_t;
typedef unsigned char uint8_t;
typedef __int16 int16_t;
#else // _MSC_VER
#include <io.h>
#include <stdint.h> /*provided by mingw32*/

#endif // _MSC_VER

#define SOCKET_OPTION_VALUE char *
#define SOCKET_BUFFER void *
#define ORTP_INLINE __inline

#if defined(_WIN32_WCE)

#define ortp_log10f(x) (float)log10((double)x)

#ifdef assert
#undef assert
#endif /*assert*/
#define assert(exp) ((void)0)

#ifdef errno
#undef errno
#endif /*errno*/
#define errno GetLastError()
#ifdef strerror
#undef strerror
#endif /*strerror*/
const char *ortp_strerror(DWORD value);
#define strerror ortp_strerror

#else /*_WIN32_WCE*/

#define ortp_log10f(x) log10f(x)

#endif // defined(_WIN32_WCE)

#ifdef __cplusplus
extern "C" {
#endif

#ifndef F_OK
#define F_OK 00 /* Visual Studio does not define F_OK */
#endif

#ifdef _WORKAROUND_MINGW32_BUGS
char *WSAAPI gai_strerror(int errnum);
#endif

#ifdef __cplusplus
}
#endif

#endif // _MSC_VER

#ifndef _BOOL_T_
#define _BOOL_T_
typedef unsigned char bool_t;
#endif /* _BOOL_T_ */
#undef TRUE
#undef FALSE
#define TRUE 1
#define FALSE 0

typedef struct bctoolboxTimeSpec ortpTimeSpec;

#ifdef __cplusplus
extern "C" {
#endif

#define ortp_malloc(sz) bctbx_malloc(sz)
#define ortp_free(ptr) bctbx_free(ptr)
#define ortp_realloc(ptr, sz) bctbx_realloc(ptr, sz)
#define ortp_malloc0(sz) bctbx_malloc0(sz)
#define ortp_strdup(str) bctbx_strdup(str)
#define ortp_strndup(str, n) bctbx_strndup(str, n)

#define ortp_new(type, count) (type *)ortp_malloc(sizeof(type) * (count))
#define ortp_new0(type, count) (type *)ortp_malloc0(sizeof(type) * (count))

ORTP_PUBLIC int close_socket(ortp_socket_t sock);
ORTP_PUBLIC int set_non_blocking_socket(ortp_socket_t sock);
ORTP_PUBLIC int set_blocking_socket(ortp_socket_t sock);

#define ortp_strdup_printf bctbx_strdup_printf
#define ortp_strdup_vprintf bctbx_strdup_vprintf
#define ortp_strcat_printf bctbx_strcat_printf
#define ortp_strcat_vprintf bctbx_strcat_vprintf

#define ortp_file_exist(pathname) bctbx_file_exist(pathname)

#define ortp_get_cur_time(ts) bctbx_get_cur_time(ts)
#define ortp_get_utc_cur_time(ts) bctbx_get_utc_cur_time(ts)
#define ortp_get_cur_time_ms(void) bctbx_get_cur_time_ms(void)
#define ortp_sleep_ms(ms) bctbx_sleep_ms(ms)
#define ortp_sleep_until(ts) bctbx_sleep_until(ts)
#define ortp_timespec_compare(t1, t2) bctbx_timespec_compare(t1, t2)
#define ortp_random(void) bctbx_random(void)

/* portable named pipes  and shared memory*/
#if !defined(_WIN32_WCE)
#ifdef _WIN32
typedef HANDLE ortp_pipe_t;
#define ORTP_PIPE_INVALID INVALID_HANDLE_VALUE
#else
typedef int ortp_pipe_t;
#define ORTP_PIPE_INVALID (-1)
#endif

#define ortp_server_pipe_create(name) bctbx_server_pipe_create(name)
/*
 * warning: on win32 ortp_server_pipe_accept_client() might return INVALID_HANDLE_VALUE without
 * any specific error, this happens when ortp_server_pipe_close() is called on another pipe.
 * This pipe api is not thread-safe.
 */
#define ortp_server_pipe_accept_client(server) bctbx_server_pipe_accept_client(server)

#define ortp_server_pipe_close(spipe) bctbx_server_pipe_close(spipe)
#define ortp_server_pipe_close_client(client) bctbx_server_pipe_close_client(client)

#define ortp_client_pipe_connect(name) bctbx_client_pipe_connect(name)
#define ortp_client_pipe_close(sock) bctbx_client_pipe_close(sock)

#define ortp_pipe_read(p, buf, len) bctbx_pipe_read(b, buf, len)
#define ortp_pipe_write(p, buf, len) bctbx_pipe_write(p, buf, len)

#define ortp_shm_open(keyid, size, create) bctbx_shm_open(keyid, size, create)
#define ortp_shm_close(keyid, size, create) bctbx_shm_close(keyid, size, create)

#define ortp_is_multicast_addr(addr) bctbx_is_multicast_addr(addr)

#endif

#ifdef __cplusplus
}
#endif

#if (defined(_WIN32) || defined(_WIN32_WCE)) && !defined(ORTP_STATIC)
#ifdef ORTP_EXPORTS
#define ORTP_VAR_PUBLIC extern __declspec(dllexport)
#else
#define ORTP_VAR_PUBLIC __declspec(dllimport)
#endif
#else
#define ORTP_VAR_PUBLIC extern
#endif

#ifndef IN6_IS_ADDR_MULTICAST
#define IN6_IS_ADDR_MULTICAST(i) (((uint8_t *)(i))[0] == 0xff)
#endif

/*define __ios when we are compiling for ios.
 The TARGET_OS_IPHONE macro is stupid, it is defined to 0 when compiling on mac os x.
*/
#if TARGET_OS_IPHONE
#define __ios 1
#endif

#endif // ORTP_PORT_H


================================================
FILE: include/ortp/rtcp.h
================================================
/*
 * Copyright (c) 2010-2022 Belledonne Communications SARL.
 *
 * This file is part of oRTP
 * (see https://gitlab.linphone.org/BC/public/ortp).
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef RTCP_H
#define RTCP_H

#include "ortp/str_utils.h"
#include <ortp/port.h>

#define RTCP_MAX_RECV_BUFSIZE 1500

#define RTCP_SENDER_INFO_SIZE 20
#define RTCP_REPORT_BLOCK_SIZE 24
#define RTCP_COMMON_HEADER_SIZE 4
#define RTCP_SSRC_FIELD_SIZE 4

#ifdef __cplusplus
extern "C" {
#endif

/* RTCP common header */

typedef enum {
	RTCP_SR = 200,
	RTCP_RR = 201,
	RTCP_SDES = 202,
	RTCP_BYE = 203,
	RTCP_APP = 204,
	RTCP_RTPFB = 205,
	RTCP_PSFB = 206,
	RTCP_XR = 207
} rtcp_type_t;

typedef struct rtcp_common_header {
#ifdef ORTP_BIGENDIAN
	uint16_t version : 2;
	uint16_t padbit : 1;
	uint16_t rc : 5;
	uint16_t packet_type : 8;
#else
	uint16_t rc : 5;
	uint16_t padbit : 1;
	uint16_t version : 2;
	uint16_t packet_type : 8;
#endif
	uint16_t length : 16;
} rtcp_common_header_t;

#define rtcp_common_header_set_version(ch, v) (ch)->version = v
#define rtcp_common_header_set_padbit(ch, p) (ch)->padbit = p
#define rtcp_common_header_set_rc(ch, rc) (ch)->rc = rc
#define rtcp_common_header_set_packet_type(ch, pt) (ch)->packet_type = pt
#define rtcp_common_header_set_length(ch, l) (ch)->length = htons(l)

#define rtcp_common_header_get_version(ch) ((ch)->version)
#define rtcp_common_header_get_padbit(ch) ((ch)->padbit)
#define rtcp_common_header_get_rc(ch) ((ch)->rc)
#define rtcp_common_header_get_packet_type(ch) ((ch)->packet_type)
#define rtcp_common_header_get_length(ch) ntohs((ch)->length)

/* RTCP SR or RR  packets */

typedef struct sender_info {
	uint32_t ntp_timestamp_msw;
	uint32_t ntp_timestamp_lsw;
	uint32_t rtp_timestamp;
	uint32_t senders_packet_count;
	uint32_t senders_octet_count;
} sender_info_t;

static ORTP_INLINE uint64_t sender_info_get_ntp_timestamp(const sender_info_t *si) {
	return ((((uint64_t)ntohl(si->ntp_timestamp_msw)) << 32) + ((uint64_t)ntohl(si->ntp_timestamp_lsw)));
}
#define sender_info_get_rtp_timestamp(si) ntohl((si)->rtp_timestamp)
#define sender_info_get_packet_count(si) ntohl((si)->senders_packet_count)
#define sender_info_get_octet_count(si) ntohl((si)->senders_octet_count)

typedef struct report_block {
	uint32_t ssrc;
	uint32_t fl_cnpl;              /*fraction lost + cumulative number of packet lost*/
	uint32_t ext_high_seq_num_rec; /*extended highest sequence number received */
	uint32_t interarrival_jitter;
	uint32_t lsr;               /*last SR */
	uint32_t delay_snc_last_sr; /*delay since last sr*/
} report_block_t;

static ORTP_INLINE uint32_t report_block_get_ssrc(const report_block_t *rb) {
	return ntohl(rb->ssrc);
}
static ORTP_INLINE uint32_t report_block_get_high_ext_seq(const report_block_t *rb) {
	return ntohl(rb->ext_high_seq_num_rec);
}
static ORTP_INLINE uint32_t report_block_get_interarrival_jitter(const report_block_t *rb) {
	return ntohl(rb->interarrival_jitter);
}

static ORTP_INLINE uint32_t report_block_get_last_SR_time(const report_block_t *rb) {
	return ntohl(rb->lsr);
}
static ORTP_INLINE uint32_t report_block_get_last_SR_delay(const report_block_t *rb) {
	return ntohl(rb->delay_snc_last_sr);
}
static ORTP_INLINE uint32_t report_block_get_fraction_lost(const report_block_t *rb) {
	return (ntohl(rb->fl_cnpl) >> 24);
}
static ORTP_INLINE int32_t report_block_get_cum_packet_lost(const report_block_t *rb) {
	uint32_t cum_loss = (uint32_t)ntohl(rb->fl_cnpl);
	if (((cum_loss >> 23) & 1) == 0) return (int32_t)(0x00FFFFFF & cum_loss);
	else return (int32_t)(0xFF000000 | (cum_loss - 0xFFFFFF - 1));
}

static ORTP_INLINE void report_block_set_fraction_lost(report_block_t *rb, int fl) {
	rb->fl_cnpl = (uint32_t)htonl(((uint32_t)ntohl(rb->fl_cnpl) & 0xFFFFFF) | ((uint32_t)fl & 0xFF) << 24);
}

static ORTP_INLINE void report_block_set_cum_packet_lost(report_block_t *rb, int64_t cpl) {
	uint32_t clamp =
	    (uint32_t)((1 << 24) + ((cpl >= 0) ? (cpl > 0x7FFFFF ? 0x7FFFFF : cpl) : (-cpl > 0x800000 ? -0x800000 : cpl)));

	rb->fl_cnpl = htonl((ntohl(rb->fl_cnpl) & 0xFF000000) | (cpl >= 0 ? clamp & 0x7FFFFF : clamp | 0x800000));
}

/* SDES packets */

typedef enum {
	RTCP_SDES_END = 0,
	RTCP_SDES_CNAME = 1,
	RTCP_SDES_NAME = 2,
	RTCP_SDES_EMAIL = 3,
	RTCP_SDES_PHONE = 4,
	RTCP_SDES_LOC = 5,
	RTCP_SDES_TOOL = 6,
	RTCP_SDES_NOTE = 7,
	RTCP_SDES_PRIV = 8,
	RTCP_SDES_MID = 10, /* TODO: change this value when his identifier will be assigned */
	RTCP_SDES_MAX = 11
} rtcp_sdes_type_t;

typedef struct sdes_chunk {
	uint32_t csrc;
} sdes_chunk_t;

#define sdes_chunk_get_ssrc(m) ntohl(((sdes_chunk_t *)((m)->b_rptr))->csrc)
#define sdes_chunk_get_csrc(c) ntohl((c)->csrc)

typedef struct sdes_item {
	uint8_t item_type;
	uint8_t len;
	char content[1];
} sdes_item_t;

#define RTCP_SDES_MAX_STRING_SIZE 255
#define RTCP_SDES_ITEM_HEADER_SIZE 2
#define RTCP_SDES_CHUNK_DEFAULT_SIZE 1024
#define RTCP_SDES_CHUNK_HEADER_SIZE (sizeof(sdes_chunk_t))

/* RTCP bye packet */

typedef struct rtcp_bye_reason {
	uint8_t len;
	char content[1];
} rtcp_bye_reason_t;

typedef struct rtcp_bye {
	rtcp_common_header_t ch;
	uint32_t ssrc[1]; /* the bye may contain several ssrc/csrc */
} rtcp_bye_t;
#define RTCP_BYE_HEADER_SIZE sizeof(rtcp_bye_t)
#define RTCP_BYE_REASON_MAX_STRING_SIZE 255

/* RTCP XR packet */

#define RTCP_XR_VOIP_METRICS_CONFIG_PLC_STD ((1 << 7) | (1 << 6))
#define RTCP_XR_VOIP_METRICS_CONFIG_PLC_ENH (1 << 7)
#define RTCP_XR_VOIP_METRICS_CONFIG_PLC_DIS (1 << 6)
#define RTCP_XR_VOIP_METRICS_CONFIG_PLC_UNS 0
#define RTCP_XR_VOIP_METRICS_CONFIG_JBA_ADA ((1 << 5) | (1 << 4))
#define RTCP_XR_VOIP_METRICS_CONFIG_JBA_NON (1 << 5)
#define RTCP_XR_VOIP_METRICS_CONFIG_JBA_UNK 0

typedef enum {
	RTCP_XR_LOSS_RLE = 1,
	RTCP_XR_DUPLICATE_RLE = 2,
	RTCP_XR_PACKET_RECEIPT_TIMES = 3,
	RTCP_XR_RCVR_RTT = 4,
	RTCP_XR_DLRR = 5,
	RTCP_XR_STAT_SUMMARY = 6,
	RTCP_XR_VOIP_METRICS = 7
} rtcp_xr_block_type_t;

typedef struct rtcp_xr_header {
	rtcp_common_header_t ch;
	uint32_t ssrc;
} rtcp_xr_header_t;

typedef struct rtcp_xr_generic_block_header {
	uint8_t bt;
	uint8_t flags;
	uint16_t length;
} rtcp_xr_generic_block_header_t;

typedef struct rtcp_xr_rcvr_rtt_report_block {
	rtcp_xr_generic_block_header_t bh;
	uint32_t ntp_timestamp_msw;
	uint32_t ntp_timestamp_lsw;
} rtcp_xr_rcvr_rtt_report_block_t;

typedef struct rtcp_xr_dlrr_report_subblock {
	uint32_t ssrc;
	uint32_t lrr;
	uint32_t dlrr;
} rtcp_xr_dlrr_report_subblock_t;

typedef struct rtcp_xr_dlrr_report_block {
	rtcp_xr_generic_block_header_t bh;
	rtcp_xr_dlrr_report_subblock_t content[1];
} rtcp_xr_dlrr_report_block_t;

typedef struct rtcp_xr_stat_summary_report_block {
	rtcp_xr_generic_block_header_t bh;
	uint32_t ssrc;
	uint16_t begin_seq;
	uint16_t end_seq;
	uint32_t lost_packets;
	uint32_t dup_packets;
	uint32_t min_jitter;
	uint32_t max_jitter;
	uint32_t mean_jitter;
	uint32_t dev_jitter;
	uint8_t min_ttl_or_hl;
	uint8_t max_ttl_or_hl;
	uint8_t mean_ttl_or_hl;
	uint8_t dev_ttl_or_hl;
} rtcp_xr_stat_summary_report_block_t;

typedef struct rtcp_xr_voip_metrics_report_block {
	rtcp_xr_generic_block_header_t bh;
	uint32_t ssrc;
	uint8_t loss_rate;
	uint8_t discard_rate;
	uint8_t burst_density;
	uint8_t gap_density;
	uint16_t burst_duration;
	uint16_t gap_duration;
	uint16_t round_trip_delay;
	uint16_t end_system_delay;
	uint8_t signal_level;
	uint8_t noise_level;
	uint8_t rerl;
	uint8_t gmin;
	uint8_t r_factor;
	uint8_t ext_r_factor;
	uint8_t mos_lq;
	uint8_t mos_cq;
	uint8_t rx_config;
	uint8_t reserved2;
	uint16_t jb_nominal;
	uint16_t jb_maximum;
	uint16_t jb_abs_max;
} rtcp_xr_voip_metrics_report_block_t;

#define MIN_RTCP_XR_PACKET_SIZE (sizeof(rtcp_xr_header_t) + 4)

/* RTCP FB packet */
typedef enum { RTCP_RTPFB_NACK = 1, RTCP_RTPFB_TMMBR = 3, RTCP_RTPFB_TMMBN = 4 } rtcp_rtpfb_type_t;

typedef enum {
	RTCP_PSFB_PLI = 1,
	RTCP_PSFB_SLI = 2,
	RTCP_PSFB_RPSI = 3,
	RTCP_PSFB_FIR = 4,
	RTCP_PSFB_AFB = 15
} rtcp_psfb_type_t;

typedef struct rtcp_fb_header {
	uint32_t packet_sender_ssrc;
	uint32_t media_source_ssrc;
} rtcp_fb_header_t;

typedef struct rtcp_fb_generic_nack_fci {
	uint16_t pid;
	uint16_t blp;
} rtcp_fb_generic_nack_fci_t;

#define rtcp_fb_generic_nack_fci_get_pid(nack) ntohs((nack)->pid)
#define rtcp_fb_generic_nack_fci_set_pid(nack, value) ((nack)->pid) = htons(value)
#define rtcp_fb_generic_nack_fci_get_blp(nack) ntohs((nack)->blp)
#define rtcp_fb_generic_nack_fci_set_blp(nack, value) ((nack)->blp) = htons(value)

typedef struct rtcp_fb_tmmbr_fci {
	uint32_t ssrc;
	uint32_t value;
} rtcp_fb_tmmbr_fci_t;

#define rtcp_fb_tmmbr_fci_get_ssrc(tmmbr) ntohl((tmmbr)->ssrc)
#define rtcp_fb_tmmbr_fci_get_mxtbr_exp(tmmbr) ((uint8_t)((ntohl((tmmbr)->value) >> 26) & 0x0000003F))
#define rtcp_fb_tmmbr_fci_set_mxtbr_exp(tmmbr, mxtbr_exp)                                                              \
	((tmmbr)->value) = htonl((ntohl((tmmbr)->value) & 0x03FFFFFF) | (((mxtbr_exp) & 0x0000003F) << 26))
#define rtcp_fb_tmmbr_fci_get_mxtbr_mantissa(tmmbr) ((uint32_t)((ntohl((tmmbr)->value) >> 9) & 0x0001FFFF))
#define rtcp_fb_tmmbr_fci_set_mxtbr_mantissa(tmmbr, mxtbr_mantissa)                                                    \
	((tmmbr)->value) = htonl((ntohl((tmmbr)->value) & 0xFC0001FF) | (((mxtbr_mantissa) & 0x0001FFFF) << 9))
#define rtcp_fb_tmmbr_fci_get_measured_overhead(tmmbr) ((uint16_t)(ntohl((tmmbr)->value) & 0x000001FF))
#define rtcp_fb_tmmbr_fci_set_measured_overhead(tmmbr, measured_overhead)                                              \
	((tmmbr)->value) = htonl((ntohl((tmmbr)->value) & 0xFFFFFE00) | ((measured_overhead) & 0x000001FF))

typedef struct rtcp_fb_fir_fci {
	uint32_t ssrc;
	uint8_t seq_nr;
	uint8_t pad1;
	uint16_t pad2;
} rtcp_fb_fir_fci_t;

#define rtcp_fb_fir_fci_get_ssrc(fci) ntohl((fci)->ssrc)
#define rtcp_fb_fir_fci_get_seq_nr(fci) (fci)->seq_nr

typedef struct rtcp_fb_sli_fci {
	uint32_t value;
} rtcp_fb_sli_fci_t;

#define rtcp_fb_sli_fci_get_first(fci) ((uint16_t)((ntohl((fci)->value) >> 19) & 0x00001FFF))
#define rtcp_fb_sli_fci_set_first(fci, first)                                                                          \
	((fci)->value) = htonl((ntohl((fci)->value) & 0x0007FFFF) | (((first) & 0x00001FFF) << 19))
#define rtcp_fb_sli_fci_get_number(fci) ((uint16_t)((ntohl((fci)->value) >> 6) & 0x00001FFF))
#define rtcp_fb_sli_fci_set_number(fci, number)                                                                        \
	((fci)->value) = htonl((ntohl((fci)->value) & 0xFFF8003F) | (((number) & 0x00001FFF) << 6))
#define rtcp_fb_sli_fci_get_picture_id(fci) ((uint8_t)(ntohl((fci)->value) & 0x0000003F))
#define rtcp_fb_sli_fci_set_picture_id(fci, picture_id)                                                                \
	((fci)->value) = htonl((ntohl((fci)->value) & 0xFFFFFFC0) | ((picture_id) & 0x0000003F))

typedef struct rtcp_fb_rpsi_fci {
	uint8_t pb;
	uint8_t payload_type;
	uint16_t bit_string[1];
} rtcp_fb_rpsi_fci_t;

#define rtcp_fb_rpsi_fci_get_payload_type(fci) (fci)->payload_type
#define rtcp_fb_rpsi_fci_get_bit_string(fci) ((uint8_t *)(fci)->bit_string)

#define MIN_RTCP_PSFB_PACKET_SIZE (sizeof(rtcp_common_header_t) + sizeof(rtcp_fb_header_t))
#define MIN_RTCP_RTPFB_PACKET_SIZE (sizeof(rtcp_common_header_t) + sizeof(rtcp_fb_header_t))

typedef struct rtcp_fb_goog_remb_fci {
	uint32_t identifier;
	uint32_t value;
} rtcp_fb_goog_remb_fci_t;

#define rtcp_fb_goog_remb_fci_get_num_ssrc(tmmbr) ((uint8_t)((ntohl((tmmbr)->value) >> 24) & 0x000000FF))
#define rtcp_fb_goog_remb_fci_set_num_ssrc(tmmbr, num)                                                                 \
	((tmmbr)->value) = htonl((ntohl((tmmbr)->value) & 0x00FFFFFF) | (((num) & 0x000000FF) << 24))
#define rtcp_fb_goog_remb_fci_get_mxtbr_exp(tmmbr) ((uint8_t)((ntohl((tmmbr)->value) >> 18) & 0x0000003F))
#define rtcp_fb_goog_remb_fci_set_mxtbr_exp(tmmbr, mxtbr_exp)                                                          \
	((tmmbr)->value) = htonl((ntohl((tmmbr)->value) & 0xFF03FFFF) | (((mxtbr_exp) & 0x0000003F) << 18))
#define rtcp_fb_goog_remb_fci_get_mxtbr_mantissa(tmmbr) ((uint32_t)(ntohl((tmmbr)->value) & 0x0003FFFF))
#define rtcp_fb_goog_remb_fci_set_mxtbr_mantissa(tmmbr, mxtbr_mantissa)                                                \
	((tmmbr)->value) = htonl((ntohl((tmmbr)->value) & 0xFFFC0000) | ((mxtbr_mantissa) & 0x0003FFFF))

/* RTCP structs */

typedef struct rtcp_sr {
	rtcp_common_header_t ch;
	uint32_t ssrc;
	sender_info_t si;
	report_block_t rb[1];
} rtcp_sr_t;

typedef struct rtcp_rr {
	rtcp_common_header_t ch;
	uint32_t ssrc;
	report_block_t rb[1];
} rtcp_rr_t;

typedef struct rtcp_app {
	rtcp_common_header_t ch;
	uint32_t ssrc;
	char name[4];
} rtcp_app_t;

struct _RtpSession;
struct _RtpStream;
ORTP_PUBLIC void rtp_session_rtcp_process_send(struct _RtpSession *s);
ORTP_PUBLIC void rtp_session_rtcp_process_recv(struct _RtpSession *s);

#define RTCP_DEFAULT_REPORT_INTERVAL 5000 /* in milliseconds */

/* packet parsing api */

/*return the size of the rtcp packet*/
ORTP_PUBLIC size_t rtcp_get_size(const mblk_t *m);
/*in case of coumpound packet, set read pointer of m to the beginning of the next RTCP
packet */
ORTP_PUBLIC ORTP_DEPRECATED bool_t rtcp_next_packet(mblk_t *m);
/* put the read pointer at the first RTCP packet of the compound packet (as before any previous calls ot
 * rtcp_next_packet() */
ORTP_PUBLIC ORTP_DEPRECATED void rtcp_rewind(mblk_t *m);

typedef struct _RtcpParserContext {
	mblk_t *current_packet;
	uint8_t *start;
} RtcpParserContext;

ORTP_PUBLIC const mblk_t *rtcp_parser_context_init(RtcpParserContext *context, const mblk_t *compound_packet);
ORTP_PUBLIC const mblk_t *rtcp_parser_context_next_packet(RtcpParserContext *context);
ORTP_PUBLIC const mblk_t *rtcp_parser_context_start(RtcpParserContext *context);
ORTP_PUBLIC void rtcp_parser_context_uninit(RtcpParserContext *context);

/* get common header*/
ORTP_PUBLIC const rtcp_common_header_t *rtcp_get_common_header(const mblk_t *m);

/*Sender Report accessors */
/* check if this packet is a SR and if it is correct */
ORTP_PUBLIC bool_t rtcp_is_SR(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_SR_get_ssrc(const mblk_t *m);
ORTP_PUBLIC const sender_info_t *rtcp_SR_get_sender_info(const mblk_t *m);
ORTP_PUBLIC const report_block_t *rtcp_SR_get_report_block(const mblk_t *m, int idx);

/*Receiver report accessors*/
ORTP_PUBLIC bool_t rtcp_is_RR(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_RR_get_ssrc(const mblk_t *m);
ORTP_PUBLIC const report_block_t *rtcp_RR_get_report_block(const mblk_t *m, int idx);

/*SDES accessors */
ORTP_PUBLIC bool_t rtcp_is_SDES(const mblk_t *m);
typedef void (*SdesItemFoundCallback)(
    void *user_data, uint32_t csrc, rtcp_sdes_type_t t, const char *content, uint8_t content_len);
ORTP_PUBLIC void rtcp_sdes_parse(const mblk_t *m, SdesItemFoundCallback cb, void *user_data);

/*BYE accessors */
ORTP_PUBLIC bool_t rtcp_is_BYE(const mblk_t *m);
ORTP_PUBLIC bool_t rtcp_BYE_get_ssrc(const mblk_t *m, int idx, uint32_t *ssrc);
ORTP_PUBLIC bool_t rtcp_BYE_get_reason(const mblk_t *m, const char **reason, int *reason_len);

/*APP accessors */
ORTP_PUBLIC bool_t rtcp_is_APP(const mblk_t *m);
ORTP_PUBLIC int rtcp_APP_get_subtype(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_APP_get_ssrc(const mblk_t *m);
/* name argument is supposed to be at least 4 characters (note: no '\0' written)*/
ORTP_PUBLIC void rtcp_APP_get_name(const mblk_t *m, char *name);
/* retrieve the data. when returning, data points directly into the mblk_t */
ORTP_PUBLIC void rtcp_APP_get_data(const mblk_t *m, uint8_t **data, int *len);

/* RTCP XR accessors */
ORTP_PUBLIC bool_t rtcp_is_XR(const mblk_t *m);
ORTP_PUBLIC rtcp_xr_block_type_t rtcp_XR_get_block_type(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_get_ssrc(const mblk_t *m);
ORTP_PUBLIC uint64_t rtcp_XR_rcvr_rtt_get_ntp_timestamp(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_dlrr_get_ssrc(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_dlrr_get_lrr(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_dlrr_get_dlrr(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_stat_summary_get_flags(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_ssrc(const mblk_t *m);
ORTP_PUBLIC uint16_t rtcp_XR_stat_summary_get_begin_seq(const mblk_t *m);
ORTP_PUBLIC uint16_t rtcp_XR_stat_summary_get_end_seq(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_lost_packets(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_dup_packets(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_min_jitter(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_max_jitter(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_mean_jitter(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_stat_summary_get_dev_jitter(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_stat_summary_get_min_ttl_or_hl(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_stat_summary_get_max_ttl_or_hl(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_stat_summary_get_mean_ttl_or_hl(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_stat_summary_get_dev_ttl_or_hl(const mblk_t *m);
ORTP_PUBLIC uint32_t rtcp_XR_voip_metrics_get_ssrc(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_loss_rate(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_discard_rate(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_burst_density(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_gap_density(const mblk_t *m);
ORTP_PUBLIC uint16_t rtcp_XR_voip_metrics_get_burst_duration(const mblk_t *m);
ORTP_PUBLIC uint16_t rtcp_XR_voip_metrics_get_gap_duration(const mblk_t *m);
ORTP_PUBLIC uint16_t rtcp_XR_voip_metrics_get_round_trip_delay(const mblk_t *m);
ORTP_PUBLIC uint16_t rtcp_XR_voip_metrics_get_end_system_delay(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_signal_level(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_noise_level(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_rerl(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_gmin(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_r_factor(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_ext_r_factor(const mblk_t *m);
ORTP_PUBLIC uint8_t rtcp_XR_voip_metrics_get_m
Download .txt
gitextract_sj8succ9/

├── .clang-format
├── .github/
│   └── ISSUE_TEMPLATE/
│       └── bug_report.yml
├── .gitignore
├── AUTHORS.md
├── CHANGELOG.md
├── CMakeLists.txt
├── LICENSE.txt
├── Makefile.am
├── README.md
├── autogen.sh
├── build/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── Makefile.am
│   ├── android/
│   │   ├── Android.mk
│   │   └── ortp_AndroidConfig.h
│   ├── osx/
│   │   └── Info.plist.in
│   ├── rpm/
│   │   └── ortp.spec.cmake
│   └── wp8/
│       └── oRTP/
│           ├── inttypes.h
│           ├── oRTP.sln
│           ├── oRTP.vcxproj
│           └── stdint.h
├── cmake/
│   └── OrtpConfig.cmake.in
├── configure.ac
├── debian/
│   ├── changelog
│   ├── compat
│   ├── control
│   ├── copyright
│   ├── libortp-dev.docs
│   ├── libortp-dev.install
│   ├── libortp13.docs
│   ├── libortp13.install
│   ├── rules
│   ├── source/
│   │   ├── format
│   │   └── options
│   └── watch
├── docs/
│   └── .gitignore
├── include/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── MSVC/
│   │   ├── inttypes.h
│   │   └── stdint.h
│   ├── Makefile.am
│   └── ortp/
│       ├── .gitignore
│       ├── Makefile.am
│       ├── event.h
│       ├── logging.h
│       ├── nack.h
│       ├── ortp.h
│       ├── payloadtype.h
│       ├── port.h
│       ├── rtcp.h
│       ├── rtp.h
│       ├── rtpprofile.h
│       ├── rtpsession.h
│       ├── rtpsignaltable.h
│       ├── sessionset.h
│       ├── str_utils.h
│       ├── telephonyevents.h
│       └── utils.h
├── m4/
│   ├── Makefile.am
│   ├── ld-output-def.m4
│   └── obsolete.m4
├── oRTP.prj
├── oRTP.pws
├── ortp-config.h.cmake
├── ortp.doxygen.in
├── ortp.pc.in
├── ortp.spec.in
├── pkg.list
├── src/
│   ├── .gitignore
│   ├── CMakeLists.txt
│   ├── Makefile.am
│   ├── audiobandwidthestimator.c
│   ├── audiobandwidthestimator.h
│   ├── avprofile.c
│   ├── bandwidth-measurer.cc
│   ├── congestiondetector.c
│   ├── congestiondetector.h
│   ├── dblk.cc
│   ├── dll_entry.c
│   ├── event.c
│   ├── extremum.c
│   ├── fecstream/
│   │   ├── fec-encoder.cpp
│   │   ├── fec-encoder.h
│   │   ├── fec-packets-connection.cpp
│   │   ├── fec-packets-connection.h
│   │   ├── fec-params.cpp
│   │   ├── fec-params.h
│   │   ├── fec-stream-stats.cc
│   │   ├── fec-stream-stats.h
│   │   ├── fecstream.cc
│   │   ├── fecstream.h
│   │   ├── overhead.cpp
│   │   ├── overhead.h
│   │   ├── packet-api.cpp
│   │   ├── packet-api.h
│   │   ├── receive-cluster.cpp
│   │   └── receive-cluster.h
│   ├── jitterctl.c
│   ├── jitterctl.h
│   ├── kalmanrls.c
│   ├── logging.c
│   ├── master
│   ├── nack.c
│   ├── netsim.c
│   ├── ortp.c
│   ├── payloadtype.c
│   ├── port.c
│   ├── posixtimer.c
│   ├── rtcp.c
│   ├── rtcp_fb.c
│   ├── rtcp_xr.c
│   ├── rtcpparse.c
│   ├── rtpaudiolevel.c
│   ├── rtpbundle.cc
│   ├── rtpbundle.h
│   ├── rtpframemarking.c
│   ├── rtpparse.c
│   ├── rtpprofile.c
│   ├── rtpsession.c
│   ├── rtpsession_inet.c
│   ├── rtpsession_priv.h
│   ├── rtpsignaltable.c
│   ├── rtptimer.c
│   ├── rtptimer.h
│   ├── scheduler.c
│   ├── scheduler.h
│   ├── sessionset.c
│   ├── str_utils.c
│   ├── telephonyevents.c
│   ├── tests/
│   │   ├── .gitignore
│   │   ├── CMakeLists.txt
│   │   ├── Makefile.am
│   │   ├── fmtpparse.c
│   │   ├── mrtprecv.c
│   │   ├── mrtpsend.c
│   │   ├── rtpmemtest.c
│   │   ├── rtprecv.c
│   │   ├── rtpsend.c
│   │   ├── rtpsend_stupid.c
│   │   ├── test_timer.c
│   │   ├── tevmrtprecv.c
│   │   ├── tevrtprecv.c
│   │   ├── tevrtpsend.c
│   │   ├── win_receiver/
│   │   │   ├── .gitignore
│   │   │   ├── Makefile.am
│   │   │   ├── RTPReceiver.cpp
│   │   │   └── RTPReceiver.vcproj
│   │   └── win_sender/
│   │       ├── .gitignore
│   │       ├── Makefile.am
│   │       ├── RTPSender.cpp
│   │       └── RTPSender.vcproj
│   ├── utils.c
│   ├── utils.h
│   ├── videobandwidthestimator.cc
│   ├── videobandwidthestimator.h
│   ├── winrttimer.cpp
│   └── winrttimer.h
└── tester/
    ├── CMakeLists.txt
    ├── bundle_tester.cc
    ├── extension_header_tester.c
    ├── fec_tester.cc
    ├── ortp_tester.c
    ├── ortp_tester.h
    ├── ortp_tester_utils.cc
    ├── ortp_tester_utils.h
    ├── raw/
    │   └── h265-iframe
    └── rtp_tester.c
Download .txt
SYMBOL INDEX (1144 symbols across 95 files)

FILE: build/wp8/oRTP/inttypes.h
  type imaxdiv_t (line 47) | typedef struct {
  function _inline (line 276) | static

FILE: build/wp8/oRTP/stdint.h
  type int_least8_t (line 92) | typedef int8_t int_least8_t;
  type int_least16_t (line 93) | typedef int16_t int_least16_t;
  type int_least32_t (line 94) | typedef int32_t int_least32_t;
  type int_least64_t (line 95) | typedef int64_t int_least64_t;
  type uint_least8_t (line 96) | typedef uint8_t uint_least8_t;
  type uint_least16_t (line 97) | typedef uint16_t uint_least16_t;
  type uint_least32_t (line 98) | typedef uint32_t uint_least32_t;
  type uint_least64_t (line 99) | typedef uint64_t uint_least64_t;
  type int_fast8_t (line 102) | typedef int8_t int_fast8_t;
  type int_fast16_t (line 103) | typedef int16_t int_fast16_t;
  type int_fast32_t (line 104) | typedef int32_t int_fast32_t;
  type int_fast64_t (line 105) | typedef int64_t int_fast64_t;
  type uint_fast8_t (line 106) | typedef uint8_t uint_fast8_t;
  type uint_fast16_t (line 107) | typedef uint16_t uint_fast16_t;
  type uint_fast32_t (line 108) | typedef uint32_t uint_fast32_t;
  type uint_fast64_t (line 109) | typedef uint64_t uint_fast64_t;
  type intmax_t (line 121) | typedef int64_t intmax_t;
  type uintmax_t (line 122) | typedef uint64_t uintmax_t;

FILE: include/MSVC/inttypes.h
  type imaxdiv_t (line 66) | typedef struct {
  function _inline (line 295) | static

FILE: include/MSVC/stdint.h
  type int_least8_t (line 111) | typedef int8_t int_least8_t;
  type int_least16_t (line 112) | typedef int16_t int_least16_t;
  type int_least32_t (line 113) | typedef int32_t int_least32_t;
  type int_least64_t (line 114) | typedef int64_t int_least64_t;
  type uint_least8_t (line 115) | typedef uint8_t uint_least8_t;
  type uint_least16_t (line 116) | typedef uint16_t uint_least16_t;
  type uint_least32_t (line 117) | typedef uint32_t uint_least32_t;
  type uint_least64_t (line 118) | typedef uint64_t uint_least64_t;
  type int_fast8_t (line 121) | typedef int8_t int_fast8_t;
  type int_fast16_t (line 122) | typedef int16_t int_fast16_t;
  type int_fast32_t (line 123) | typedef int32_t int_fast32_t;
  type int_fast64_t (line 124) | typedef int64_t int_fast64_t;
  type uint_fast8_t (line 125) | typedef uint8_t uint_fast8_t;
  type uint_fast16_t (line 126) | typedef uint16_t uint_fast16_t;
  type uint_fast32_t (line 127) | typedef uint32_t uint_fast32_t;
  type uint_fast64_t (line 128) | typedef uint64_t uint_fast64_t;
  type intmax_t (line 140) | typedef int64_t intmax_t;
  type uintmax_t (line 141) | typedef uint64_t uintmax_t;

FILE: include/ortp/event.h
  type mblk_t (line 29) | typedef mblk_t OrtpEvent;
  type OrtpEventType (line 31) | typedef unsigned long OrtpEventType;
  type OrtpSocketType (line 33) | typedef enum { OrtpRTPSocket, OrtpRTCPSocket } OrtpSocketType;
  type _OrtpEventData (line 35) | struct _OrtpEventData {
  type OrtpEventData (line 74) | typedef struct _OrtpEventData OrtpEventData;
  type OrtpEvQueue (line 117) | typedef struct OrtpEvQueue {
  type _RtpSession (line 127) | struct _RtpSession
  type OrtpEvDispatcherData (line 137) | typedef struct OrtpEvDispatcherData {
  type OrtpEvDispatcher (line 144) | typedef struct OrtpEvDispatcher {
  type _RtpSession (line 159) | struct _RtpSession

FILE: include/ortp/nack.h
  type _OrtpNackContext (line 33) | struct _OrtpNackContext {
  type OrtpNackContext (line 48) | typedef struct _OrtpNackContext OrtpNackContext;

FILE: include/ortp/payloadtype.h
  type _PayloadTypeAvpfParams (line 69) | struct _PayloadTypeAvpfParams {
  type _OrtpPayloadType (line 77) | struct _OrtpPayloadType {
  type OrtpPayloadType (line 96) | typedef struct _OrtpPayloadType OrtpPayloadType;
  type OrtpPayloadType (line 97) | typedef OrtpPayloadType PayloadType;
  type PayloadTypeAvpfParams (line 98) | typedef struct _PayloadTypeAvpfParams PayloadTypeAvpfParams;

FILE: include/ortp/port.h
  type bctbx_socket_t (line 39) | typedef bctbx_socket_t ortp_socket_t;
  type bctbx_cond_t (line 40) | typedef bctbx_cond_t ortp_cond_t;
  type bctbx_mutex_t (line 41) | typedef bctbx_mutex_t ortp_mutex_t;
  type bctbx_thread_t (line 42) | typedef bctbx_thread_t ortp_thread_t;
  type __int64 (line 157) | typedef __int64 int64_t;
  type __int16 (line 162) | typedef __int16 int16_t;
  type bool_t (line 218) | typedef unsigned char bool_t;
  type ortpTimeSpec (line 225) | typedef struct bctoolboxTimeSpec ortpTimeSpec;
  type HANDLE (line 263) | typedef HANDLE ortp_pipe_t;
  type ortp_pipe_t (line 266) | typedef int ortp_pipe_t;

FILE: include/ortp/rtcp.h
  type rtcp_type_t (line 40) | typedef enum {
  type rtcp_common_header_t (line 51) | typedef struct rtcp_common_header {
  type sender_info_t (line 80) | typedef struct sender_info {
  function ORTP_INLINE (line 88) | static ORTP_INLINE uint64_t sender_info_get_ntp_timestamp(const sender_i...
  type report_block_t (line 95) | typedef struct report_block {
  function ORTP_INLINE (line 104) | static ORTP_INLINE uint32_t report_block_get_ssrc(const report_block_t *...
  function ORTP_INLINE (line 107) | static ORTP_INLINE uint32_t report_block_get_high_ext_seq(const report_b...
  function ORTP_INLINE (line 110) | static ORTP_INLINE uint32_t report_block_get_interarrival_jitter(const r...
  function ORTP_INLINE (line 114) | static ORTP_INLINE uint32_t report_block_get_last_SR_time(const report_b...
  function ORTP_INLINE (line 117) | static ORTP_INLINE uint32_t report_block_get_last_SR_delay(const report_...
  function ORTP_INLINE (line 120) | static ORTP_INLINE uint32_t report_block_get_fraction_lost(const report_...
  function ORTP_INLINE (line 123) | static ORTP_INLINE int32_t report_block_get_cum_packet_lost(const report...
  function ORTP_INLINE (line 129) | static ORTP_INLINE void report_block_set_fraction_lost(report_block_t *r...
  function ORTP_INLINE (line 133) | static ORTP_INLINE void report_block_set_cum_packet_lost(report_block_t ...
  type rtcp_sdes_type_t (line 142) | typedef enum {
  type sdes_chunk_t (line 156) | typedef struct sdes_chunk {
  type sdes_item_t (line 163) | typedef struct sdes_item {
  type rtcp_bye_reason_t (line 176) | typedef struct rtcp_bye_reason {
  type rtcp_bye_t (line 181) | typedef struct rtcp_bye {
  type rtcp_xr_block_type_t (line 198) | typedef enum {
  type rtcp_xr_header_t (line 208) | typedef struct rtcp_xr_header {
  type rtcp_xr_generic_block_header_t (line 213) | typedef struct rtcp_xr_generic_block_header {
  type rtcp_xr_rcvr_rtt_report_block_t (line 219) | typedef struct rtcp_xr_rcvr_rtt_report_block {
  type rtcp_xr_dlrr_report_subblock_t (line 225) | typedef struct rtcp_xr_dlrr_report_subblock {
  type rtcp_xr_dlrr_report_block_t (line 231) | typedef struct rtcp_xr_dlrr_report_block {
  type rtcp_xr_stat_summary_report_block_t (line 236) | typedef struct rtcp_xr_stat_summary_report_block {
  type rtcp_xr_voip_metrics_report_block_t (line 253) | typedef struct rtcp_xr_voip_metrics_report_block {
  type rtcp_rtpfb_type_t (line 282) | typedef enum { RTCP_RTPFB_NACK = 1, RTCP_RTPFB_TMMBR = 3, RTCP_RTPFB_TMM...
  type rtcp_psfb_type_t (line 284) | typedef enum {
  type rtcp_fb_header_t (line 292) | typedef struct rtcp_fb_header {
  type rtcp_fb_generic_nack_fci_t (line 297) | typedef struct rtcp_fb_generic_nack_fci {
  type rtcp_fb_tmmbr_fci_t (line 307) | typedef struct rtcp_fb_tmmbr_fci {
  type rtcp_fb_fir_fci_t (line 323) | typedef struct rtcp_fb_fir_fci {
  type rtcp_fb_sli_fci_t (line 333) | typedef struct rtcp_fb_sli_fci {
  type rtcp_fb_rpsi_fci_t (line 347) | typedef struct rtcp_fb_rpsi_fci {
  type rtcp_fb_goog_remb_fci_t (line 359) | typedef struct rtcp_fb_goog_remb_fci {
  type rtcp_sr_t (line 376) | typedef struct rtcp_sr {
  type rtcp_rr_t (line 383) | typedef struct rtcp_rr {
  type rtcp_app_t (line 389) | typedef struct rtcp_app {
  type _RtpSession (line 395) | struct _RtpSession
  type _RtpStream (line 396) | struct _RtpStream
  type _RtpSession (line 397) | struct _RtpSession
  type _RtpSession (line 398) | struct _RtpSession
  type RtcpParserContext (line 413) | typedef struct _RtcpParserContext {
  type OrtpLossRateEstimator (line 530) | typedef struct OrtpLossRateEstimator {
  type _RtpSession (line 550) | struct _RtpSession
  type _RtpSession (line 555) | struct _RtpSession
  type _RtpSession (line 573) | struct _RtpSession

FILE: include/ortp/rtp.h
  type rtp_header_t (line 36) | typedef struct rtp_header {
  type rtp_stats_t (line 58) | typedef struct rtp_stats {
  type jitter_stats_t (line 75) | typedef struct jitter_stats {
  type rtp_extension_type_t (line 84) | typedef enum {
  type rtp_audio_level_t (line 93) | typedef struct rtp_audio_level {

FILE: include/ortp/rtpprofile.h
  type _RtpProfile (line 42) | struct _RtpProfile {
  type RtpProfile (line 47) | typedef struct _RtpProfile RtpProfile;
  function ORTP_INLINE (line 72) | static ORTP_INLINE PayloadType *rtp_profile_get_payload(const RtpProfile...

FILE: include/ortp/rtpsession.h
  type RtpSessionMode (line 52) | typedef enum { RTP_SESSION_RECVONLY, RTP_SESSION_SENDONLY, RTP_SESSION_S...
  type OrtpJitterBufferAlgorithm (line 54) | typedef enum _OrtpJitterBufferAlgorithm {
  type JBParameters (line 61) | typedef struct _JBParameters {
  type JitterControl (line 78) | typedef struct _JitterControl {
  type WaitPoint (line 107) | typedef struct _WaitPoint {
  type RtpTransportModifierLevel (line 114) | typedef enum {
  type RtpTransportModifier (line 123) | typedef struct _RtpTransportModifier {
  type RtpTransport (line 139) | typedef struct _RtpTransport {
  type OrtpNetworkSimulatorMode (line 153) | typedef enum _OrtpNetworkSimulatorMode {
  type OrtpNetworkSimulatorParams (line 164) | typedef struct _OrtpNetworkSimulatorParams {
  type OrtpNetworkSimulatorCtx (line 183) | typedef struct _OrtpNetworkSimulatorCtx {
  type OrtpRtcpSendAlgorithm (line 202) | typedef struct OrtpRtcpSendAlgorithm {
  type OrtpRtcpFbConfiguration (line 221) | typedef struct OrtpRtcpFbConfiguration {
  type OrtpRtcpXrPlcStatus (line 229) | typedef enum { OrtpRtcpXrNoPlc, OrtpRtcpXrSilencePlc, OrtpRtcpXrEnhanced...
  type OrtpRtcpXrPlcStatus (line 231) | typedef OrtpRtcpXrPlcStatus (*OrtpRtcpXrPlcCallback)(void *userdata);
  type OrtpRtcpXrMediaCallbacks (line 236) | typedef struct OrtpRtcpXrMediaCallbacks {
  type OrtpRtcpXrRcvrRttMode (line 245) | typedef enum { OrtpRtcpXrRcvrRttNone, OrtpRtcpXrRcvrRttAll, OrtpRtcpXrRc...
  type OrtpRtcpXrStatSummaryFlag (line 247) | typedef enum {
  type OrtpRtcpXrConfiguration (line 256) | typedef struct OrtpRtcpXrConfiguration {
  type OrtpRtcpXrStats (line 266) | typedef struct OrtpRtcpXrStats {
  type OrtpRtcpTmmbrInfo (line 292) | typedef struct OrtpRtcpTmmbrInfo {
  type OrtpRtcpGooRembInfo (line 297) | typedef struct OrtpRtcpGooRembInfo {
  type OrtpAddress (line 302) | typedef struct _OrtpAddress {
  type OrtpStream (line 307) | typedef struct _OrtpStream {
  type RtpStream (line 330) | typedef struct _RtpStream {
  type RtcpStream (line 375) | typedef struct _RtcpStream {
  type RtcpSdesItems (line 388) | typedef struct _RtcpSdesItems {
  type RtpSession (line 398) | typedef struct _RtpSession RtpSession;
  type _RtpSession (line 408) | struct _RtpSession {
  type OrtpVideoBandwidthEstimatorParams (line 502) | typedef struct _OrtpVideoBandwidthEstimatorParams {
  type OrtpAudioBandwidthEstimatorParams (line 514) | typedef struct _OrtpAudioBandwidthEstimatorParams {
  type sockaddr (line 757) | struct sockaddr
  type sockaddr (line 759) | struct sockaddr
  type timeval (line 847) | struct timeval
  type sockaddr (line 904) | struct sockaddr
  type sockaddr (line 909) | struct sockaddr
  type RtpBundle (line 944) | typedef struct _RtpBundle RtpBundle;
  type sockaddr (line 964) | struct sockaddr
  type FecStream (line 990) | typedef struct _FecStream FecStream;
  type FecParams (line 991) | typedef struct _FecParams FecParams;
  type fec_stats (line 993) | typedef struct fec_stats_t {
  type _RtpSession (line 1009) | struct _RtpSession
  type _RtpSession (line 1009) | struct _RtpSession
  type abe_stats_t (line 1024) | typedef struct abe_stats {

FILE: include/ortp/rtpsignaltable.h
  type _RtpSession (line 32) | struct _RtpSession
  type _RtpSignalCallback (line 34) | struct _RtpSignalCallback {
  type RtpSignalCallback (line 43) | typedef struct _RtpSignalCallback RtpSignalCallback;
  type _RtpSignalTable (line 45) | struct _RtpSignalTable {
  type RtpSignalTable (line 53) | typedef struct _RtpSignalTable RtpSignalTable;
  type _RtpSession (line 55) | struct _RtpSession
  type _RtpSession (line 64) | struct _RtpSession
  type _RtpSession (line 78) | struct _RtpSession

FILE: include/ortp/sessionset.h
  type fd_set (line 45) | typedef fd_set ortp_fd_set;
  type ortp__fd_mask (line 62) | typedef long int ortp__fd_mask;
  type ortp_fd_set (line 73) | typedef struct {
  type _SessionSet (line 80) | struct _SessionSet {
  type SessionSet (line 84) | typedef struct _SessionSet SessionSet;
  type timeval (line 122) | struct timeval

FILE: include/ortp/str_utils.h
  type ortp_recv_addr_t (line 47) | typedef struct ortp_recv_addr {
  type ortp_recv_addr_map_t (line 56) | typedef struct ortp_recv_addr_map {
  type mblk_t (line 62) | typedef struct msgb {
  type dblk_t (line 81) | typedef struct datab {
  type queue_t (line 88) | typedef struct _queue {
  type msgb_allocator_t (line 177) | typedef struct _msgb_allocator {
  type sockaddr (line 189) | struct sockaddr
  type sockaddr (line 190) | struct sockaddr

FILE: include/ortp/telephonyevents.h
  type _telephone_event (line 32) | struct _telephone_event {
  type telephone_event_t (line 48) | typedef struct _telephone_event telephone_event_t;

FILE: include/ortp/utils.h
  type OrtpExtremum (line 34) | typedef struct _OrtpExtremum {
  type OrtpKalmanRLS (line 63) | typedef struct _OrtpKalmanRLS {
  type OrtpBandwidthMeasurer (line 80) | typedef struct _OrtpBandwidthMeasurer OrtpBandwidthMeasurer;
  type timeval (line 86) | struct timeval

FILE: src/audiobandwidthestimator.c
  function compute_bitrate_add_to_list_and_remove_oldest_value (line 32) | static void compute_bitrate_add_to_list_and_remove_oldest_value(OrtpAudi...
  function bool_t (line 86) | static bool_t ortp_audio_bandwidth_estimator_process_packet(OrtpAudioBan...
  function ortp_abe_process_onsend (line 126) | static int ortp_abe_process_onsend(struct _RtpTransportModifier *tm, mbl...
  function ortp_abe_process_onreceive (line 150) | static int ortp_abe_process_onreceive(struct _RtpTransportModifier *tm, ...
  function ortp_abe_modifier_destroy (line 165) | static void ortp_abe_modifier_destroy(RtpTransportModifier *tm) {
  function OrtpAudioBandwidthEstimator (line 169) | OrtpAudioBandwidthEstimator *ortp_audio_bandwidth_estimator_new(RtpSessi...
  function ortp_audio_bandwidth_estimator_destroy (line 204) | void ortp_audio_bandwidth_estimator_destroy(OrtpAudioBandwidthEstimator ...
  function ortp_audio_bandwidth_estimator_reset (line 209) | void ortp_audio_bandwidth_estimator_reset(OrtpAudioBandwidthEstimator *a...
  function ortp_audio_bandwidth_estimator_set_history_max_size (line 217) | void ortp_audio_bandwidth_estimator_set_history_max_size(OrtpAudioBandwi...
  function ortp_audio_bandwidth_estimator_set_trust (line 221) | void ortp_audio_bandwidth_estimator_set_trust(OrtpAudioBandwidthEstimato...
  function ortp_audio_bandwidth_estimator_set_duplicate_rate (line 224) | void ortp_audio_bandwidth_estimator_set_duplicate_rate(OrtpAudioBandwidt...
  function ortp_audio_bandwidth_estimator_get_history_max_size (line 228) | unsigned int ortp_audio_bandwidth_estimator_get_history_max_size(OrtpAud...
  function ortp_audio_bandwidth_estimator_get_trust (line 232) | unsigned int ortp_audio_bandwidth_estimator_get_trust(OrtpAudioBandwidth...
  function ortp_audio_bandwidth_estimator_get_duplicate_rate (line 235) | unsigned int ortp_audio_bandwidth_estimator_get_duplicate_rate(OrtpAudio...
  function compare_float (line 239) | static int compare_float(const float *v1, const float *v2) {
  function ortp_audio_bandwidth_estimator_get_estimated_available_bandwidth (line 245) | float ortp_audio_bandwidth_estimator_get_estimated_available_bandwidth(O...

FILE: src/audiobandwidthestimator.h
  type OrtpAudioBandwidthEstimatorPacket (line 29) | typedef struct _OrtpAudioBandwidthEstimatorPacket {
  type OrtpAudioBandwidthEstimator (line 36) | typedef struct _OrtpAudioBandwidthEstimator {
  type _RtpSession (line 56) | struct _RtpSession

FILE: src/avprofile.c
  function av_profile_init (line 460) | void av_profile_init(RtpProfile *profile) {

FILE: src/bandwidth-measurer.cc
  type ortp (line 23) | namespace ortp {
    class BandwidthMeasurerBase (line 25) | class BandwidthMeasurerBase {
      type timeval (line 28) | struct timeval
    class BandwidthMeasurer (line 45) | class BandwidthMeasurer : public BandwidthMeasurerBase {
      method addBytes (line 50) | void addBytes(size_t bytes, const struct timeval &tv) override {
      method computeBandwidth (line 55) | float computeBandwidth() override {
      method moveToTimeval (line 70) | size_t moveToTimeval(const struct timeval &tv) {
      method timevalToAbsIndex (line 82) | size_t timevalToAbsIndex(const struct timeval &tv) {
  type _OrtpBandwidthMeasurer (line 92) | struct _OrtpBandwidthMeasurer
  function OrtpBandwidthMeasurer (line 94) | OrtpBandwidthMeasurer *ortp_bandwidth_measurer_long_term_new(void) {
  function OrtpBandwidthMeasurer (line 98) | OrtpBandwidthMeasurer *ortp_bandwidth_measurer_short_term_new(void) {
  function ortp_bandwidth_measurer_add_bytes (line 102) | void ortp_bandwidth_measurer_add_bytes(OrtpBandwidthMeasurer *obj, size_...
  function ortp_bandwidth_measurer_get_bandwdith (line 106) | float ortp_bandwidth_measurer_get_bandwdith(OrtpBandwidthMeasurer *obj) {
  function ortp_bandwidth_measurer_destroy (line 110) | void ortp_bandwidth_measurer_destroy(OrtpBandwidthMeasurer *obj) {

FILE: src/congestiondetector.c
  function bool_t (line 52) | static bool_t ortp_congestion_detector_set_state(OrtpCongestionDetector ...
  function ortp_congestion_detector_reset (line 74) | void ortp_congestion_detector_reset(OrtpCongestionDetector *cd) {
  function OrtpCongestionDetector (line 85) | OrtpCongestionDetector *ortp_congestion_detector_new(RtpSession *session) {
  function ortp_congestion_detector_get_loss_rate (line 98) | static float ortp_congestion_detector_get_loss_rate(OrtpCongestionDetect...
  function bool_t (line 107) | bool_t ortp_congestion_detector_record(OrtpCongestionDetector *cd, uint3...
  function ortp_congestion_detector_destroy (line 224) | void ortp_congestion_detector_destroy(OrtpCongestionDetector *obj) {

FILE: src/congestiondetector.h
  type _JitterControl (line 27) | struct _JitterControl
  type OrtpCongestionState (line 29) | typedef enum _OrtpCongestionState {
  type OrtpCongestionDetector (line 36) | typedef struct _OrtpCongestionDetector {
  type _RtpSession (line 49) | struct _RtpSession

FILE: src/dblk.cc
  function dblk_t (line 31) | dblk_t *dblk_alloc(size_t size) {
  type datab (line 43) | struct datab
  type datab (line 44) | struct datab
  type datab (line 45) | struct datab
  type datab (line 45) | struct datab
  function dblk_ref (line 55) | void dblk_ref(struct datab *data) {
  function dblk_unref (line 59) | void dblk_unref(struct datab *data) {
  function dblk_ref_value (line 70) | int dblk_ref_value(dblk_t *db) {

FILE: src/dll_entry.c
  type SHARED_DATA (line 26) | typedef struct __STRUCT_SHARED_DATA__ {
  function BOOL (line 54) | BOOL WINAPI DllMain(HINSTANCE hinstDLL, // handle to DLL module

FILE: src/event.c
  function OrtpEvent (line 29) | OrtpEvent *ortp_event_new(unsigned long type) {
  function OrtpEvent (line 40) | OrtpEvent *ortp_event_dup(OrtpEvent *ev) {
  function OrtpEventType (line 49) | OrtpEventType ortp_event_get_type(const OrtpEvent *ev) {
  function OrtpEventData (line 53) | OrtpEventData *ortp_event_get_data(OrtpEvent *ev) {
  function ortp_event_destroy (line 57) | void ortp_event_destroy(OrtpEvent *ev) {
  function OrtpEvQueue (line 65) | OrtpEvQueue *ortp_ev_queue_new(void) {
  function ortp_ev_queue_flush (line 72) | void ortp_ev_queue_flush(OrtpEvQueue *qp) {
  function OrtpEvent (line 79) | OrtpEvent *ortp_ev_queue_get(OrtpEvQueue *q) {
  function ortp_ev_queue_destroy (line 87) | void ortp_ev_queue_destroy(OrtpEvQueue *qp) {
  function ortp_ev_queue_put (line 93) | void ortp_ev_queue_put(OrtpEvQueue *q, OrtpEvent *ev) {
  function bool_t (line 99) | static bool_t rtcp_is_type(const mblk_t *m, rtcp_type_t type) {
  function OrtpEvDispatcher (line 104) | OrtpEvDispatcher *ortp_ev_dispatcher_new(RtpSession *session) {
  function ortp_ev_dispatcher_destroy (line 114) | void ortp_ev_dispatcher_destroy(OrtpEvDispatcher *d) {
  function bool_t (line 125) | static bool_t is_rtcp_event(OrtpEventType type) {
  function analyse_event_and_invoke (line 129) | static void analyse_event_and_invoke(OrtpEvDispatcher *disp, OrtpEvent *...
  function ortp_ev_dispatcher_iterate (line 150) | void ortp_ev_dispatcher_iterate(OrtpEvDispatcher *d) {
  function ortp_ev_dispatcher_connect (line 158) | void ortp_ev_dispatcher_connect(
  function ortp_ev_dispatcher_disconnect (line 168) | void ortp_ev_dispatcher_disconnect(OrtpEvDispatcher *d,

FILE: src/extremum.c
  function ortp_extremum_reset (line 26) | void ortp_extremum_reset(OrtpExtremum *obj) {
  function ortp_extremum_init (line 32) | void ortp_extremum_init(OrtpExtremum *obj, int period) {
  function bool_t (line 37) | static bool_t extremum_check_init(OrtpExtremum *obj, uint64_t curtime, f...
  function bool_t (line 55) | bool_t ortp_extremum_record_min(OrtpExtremum *obj, uint64_t curtime, flo...
  function bool_t (line 66) | bool_t ortp_extremum_record_max(OrtpExtremum *obj, uint64_t curtime, flo...
  function ortp_extremum_get_current (line 77) | float ortp_extremum_get_current(OrtpExtremum *obj) {
  function ortp_extremum_get_previous (line 81) | float ortp_extremum_get_previous(OrtpExtremum *obj) {

FILE: src/fecstream/fec-encoder.cpp
  type _RtpSession (line 69) | struct _RtpSession
  type _RtpSession (line 69) | struct _RtpSession
  function mblk_t (line 187) | mblk_t *FecEncoder::getRowRepairMblk(int i) const {
  function mblk_t (line 192) | mblk_t *FecEncoder::getColRepairMblk(int i) const {

FILE: src/fecstream/fec-encoder.h
  function namespace (line 30) | namespace ortp {

FILE: src/fecstream/fec-packets-connection.h
  function namespace (line 30) | namespace ortp {

FILE: src/fecstream/fec-params.cpp
  function FecParams (line 26) | FecParams *fec_params_new(uint32_t repairWindow) {
  function fec_params_destroy (line 29) | void fec_params_destroy(FecParams *params) {
  function fec_params_update (line 32) | void fec_params_update(FecParams *params, uint8_t level) {
  function fec_params_estimate_best_level (line 35) | uint8_t fec_params_estimate_best_level(

FILE: src/fecstream/fec-params.h
  function namespace (line 28) | namespace ortp {

FILE: src/fecstream/fec-stream-stats.h
  function namespace (line 29) | namespace ortp {

FILE: src/fecstream/fecstream.cc
  function FecStream (line 30) | FecStream *fec_stream_new(struct _RtpSession *source, struct _RtpSession...
  function fec_stream_destroy (line 33) | void fec_stream_destroy(FecStream *fec_stream) {
  function fec_stream_unsubscribe (line 36) | void fec_stream_unsubscribe(FecStream *fec_stream, FecParams *fecParams) {
  function fec_stream_reset_cluster (line 39) | void fec_stream_reset_cluster(FecStream *fec_stream) {
  function fec_stream_receive_repair_packet (line 42) | void fec_stream_receive_repair_packet(FecStream *fec_stream, uint32_t ti...
  function mblk_t (line 45) | mblk_t *fec_stream_find_missing_packet(FecStream *fec_stream, uint16_t s...
  function RtpSession (line 48) | RtpSession *fec_stream_get_fec_session(FecStream *fec_stream) {
  function fec_stream_count_lost_packets (line 51) | void fec_stream_count_lost_packets(FecStream *fec_stream, uint16_t new_s...
  function fec_stream_print_stats (line 54) | void fec_stream_print_stats(FecStream *fec_stream) {
  function fec_stats (line 57) | fec_stats *fec_stream_get_stats(FecStream *fec_stream) {
  function bool_t (line 60) | bool_t fec_stream_enabled(FecStream *fec_stream) {
  function fec_stream_get_overhead (line 63) | float fec_stream_get_overhead(FecStream *fec_stream) {
  function fec_stream_reset_overhead_measure (line 66) | void fec_stream_reset_overhead_measure(FecStream *fec_stream) {
  type _RtpSession (line 70) | struct _RtpSession
  type _RtpSession (line 70) | struct _RtpSession
  type _RtpTransportModifier (line 114) | struct _RtpTransportModifier
  type _RtpTransportModifier (line 129) | struct _RtpTransportModifier
  type _RtpTransportModifier (line 140) | struct _RtpTransportModifier
  function mblk_t (line 259) | mblk_t *FecStreamCxx::findMissingPacket(uint16_t seqnum) {
  function RtpSession (line 298) | RtpSession *FecStreamCxx::getFecSession() const {
  function RtpSession (line 302) | RtpSession *FecStreamCxx::getSourceSession() const {
  function fec_stats (line 306) | fec_stats *FecStreamCxx::getStats() {

FILE: src/fecstream/fecstream.h
  function namespace (line 30) | namespace ortp {

FILE: src/fecstream/overhead.h
  function namespace (line 26) | namespace ortp {

FILE: src/fecstream/packet-api.cpp
  type _RtpSession (line 78) | struct _RtpSession
  function mblk_t (line 135) | mblk_t *FecSourcePacket::transfer() {
  function mblk_t (line 144) | mblk_t *FecSourcePacket::getPacket() const {
  function mblk_t (line 148) | mblk_t *FecSourcePacket::getPacketCopy() const {
  function Bitstring (line 152) | const Bitstring &FecSourcePacket::getBitstring() const {
  type _RtpSession (line 175) | struct _RtpSession
  type _RtpSession (line 175) | struct _RtpSession
  function Bitstring (line 229) | Bitstring FecRepairPacket::extractBitstring() const {
  function mblk_t (line 334) | mblk_t *FecRepairPacket::transfer() {
  function mblk_t (line 343) | mblk_t *FecRepairPacket::getRepairPacket() const {
  function mblk_t (line 347) | mblk_t *FecRepairPacket::getCopy() {

FILE: src/fecstream/packet-api.h
  function class (line 29) | class ORTP_PUBLIC Bitstring {
  function class (line 63) | class ORTP_PUBLIC FecSourcePacket {

FILE: src/fecstream/receive-cluster.cpp
  type _RtpSession (line 25) | struct _RtpSession

FILE: src/fecstream/receive-cluster.h
  function namespace (line 33) | namespace ortp {

FILE: src/jitterctl.c
  function jitter_control_init (line 42) | void jitter_control_init(JitterControl *ctl, PayloadType *payload) {
  function jitter_control_enable_adaptive (line 60) | void jitter_control_enable_adaptive(JitterControl *ctl, bool_t val) {
  function jitter_control_set_payload (line 64) | void jitter_control_set_payload(JitterControl *ctl, PayloadType *pt) {
  function jitter_control_dump_stats (line 72) | void jitter_control_dump_stats(JitterControl *ctl) {
  function jitter_control_update_corrective_slide (line 79) | void jitter_control_update_corrective_slide(JitterControl *ctl) {
  function jitter_control_update_size (line 91) | void jitter_control_update_size(JitterControl *ctl, queue_t *q) {
  function jitter_control_compute_mean_size (line 102) | float jitter_control_compute_mean_size(JitterControl *ctl) {
  function rtp_session_init_jitter_buffer (line 113) | void rtp_session_init_jitter_buffer(RtpSession *session) {
  function rtp_session_set_jitter_compensation (line 129) | void rtp_session_set_jitter_compensation(RtpSession *session, int milise...
  function rtp_session_enable_adaptive_jitter_compensation (line 134) | void rtp_session_enable_adaptive_jitter_compensation(RtpSession *session...
  function bool_t (line 138) | bool_t rtp_session_adaptive_jitter_compensation_enabled(RtpSession *sess...
  function rtp_session_enable_jitter_buffer (line 142) | void rtp_session_enable_jitter_buffer(RtpSession *session, bool_t enable...
  function bool_t (line 147) | bool_t rtp_session_jitter_buffer_enabled(const RtpSession *session) {
  function rtp_session_set_jitter_buffer_params (line 151) | void rtp_session_set_jitter_buffer_params(RtpSession *session, const JBP...
  function rtp_session_get_jitter_buffer_params (line 158) | void rtp_session_get_jitter_buffer_params(RtpSession *session, JBParamet...
  function jitter_control_new_packet (line 170) | void jitter_control_new_packet(JitterControl *ctl, uint32_t packet_ts, u...
  function jitter_control_update_interarrival_jitter (line 185) | static void jitter_control_update_interarrival_jitter(JitterControl *ctl...
  function jitter_control_new_packet_basic (line 193) | void jitter_control_new_packet_basic(JitterControl *ctl, uint32_t packet...
  function bool_t (line 221) | static bool_t time_for_log(JitterControl *ctl, uint32_t cur_str_ts) {
  function jitter_control_local_ts_to_remote_ts_rls (line 230) | static uint32_t jitter_control_local_ts_to_remote_ts_rls(JitterControl *...
  function jitter_control_new_packet_rls (line 236) | void jitter_control_new_packet_rls(JitterControl *ctl, uint32_t packet_t...
  function jitter_control_get_compensated_timestamp (line 342) | uint32_t jitter_control_get_compensated_timestamp(JitterControl *obj, ui...

FILE: src/jitterctl.h
  function ORTP_INLINE (line 35) | static ORTP_INLINE bool_t jitter_control_adaptive_enabled(JitterControl ...

FILE: src/kalmanrls.c
  function ortp_kalman_rls_init (line 23) | void ortp_kalman_rls_init(OrtpKalmanRLS *rls, double m0, double b0) {
  function ortp_kalman_rls_record (line 32) | void ortp_kalman_rls_record(OrtpKalmanRLS *rls, double xmes, double ymes) {

FILE: src/logging.c
  function ortp_set_log_handler (line 24) | void ortp_set_log_handler(OrtpLogFunc func) {
  function OrtpLogFunc (line 28) | OrtpLogFunc ortp_get_log_handler(void) {
  function ortp_set_log_file (line 35) | void ortp_set_log_file(FILE *file) {

FILE: src/nack.c
  function mblk_t (line 28) | static mblk_t *find_packet_with_sequence_number(const queue_t *q, const ...
  function generic_nack_received (line 40) | static void generic_nack_received(const OrtpEventData *evd, OrtpNackCont...
  function ortp_nack_rtp_process_on_send (line 81) | static int ortp_nack_rtp_process_on_send(RtpTransportModifier *t, mblk_t...
  function ortp_nack_rtp_process_on_receive (line 107) | static int ortp_nack_rtp_process_on_receive(BCTBX_UNUSED(RtpTransportMod...
  function ortp_nack_rtcp_process_on_send (line 111) | static int ortp_nack_rtcp_process_on_send(RtpTransportModifier *t, mblk_...
  function ortp_nack_rtcp_process_on_receive (line 164) | static int ortp_nack_rtcp_process_on_receive(BCTBX_UNUSED(RtpTransportMo...
  function ortp_nack_transport_modifier_destroy (line 168) | static void ortp_nack_transport_modifier_destroy(RtpTransportModifier *t...
  function ortp_nack_transport_modifier_new (line 172) | static void
  function OrtpNackContext (line 195) | static OrtpNackContext *ortp_nack_configure_context(OrtpNackContext *use...
  function OrtpNackContext (line 211) | OrtpNackContext *ortp_nack_context_new(OrtpEvDispatcher *evt) {
  function ortp_nack_context_destroy (line 230) | void ortp_nack_context_destroy(OrtpNackContext *ctx) {
  function ortp_nack_context_set_max_packet (line 252) | void ortp_nack_context_set_max_packet(OrtpNackContext *ctx, int max) {
  function ortp_nack_context_process_timer (line 256) | void ortp_nack_context_process_timer(OrtpNackContext *ctx) {

FILE: src/netsim.c
  function OrtpNetworkSimulatorCtx (line 34) | static OrtpNetworkSimulatorCtx *simulator_ctx_new(void) {
  function ortp_network_simulator_dump_stats (line 42) | static void ortp_network_simulator_dump_stats(OrtpNetworkSimulatorCtx *s...
  function ortp_network_simulator_stop_thread (line 56) | void ortp_network_simulator_stop_thread(OrtpNetworkSimulatorCtx *sim) {
  function ortp_network_simulator_destroy (line 63) | void ortp_network_simulator_destroy(OrtpNetworkSimulatorCtx *sim) {
  function set_high_prio (line 88) | static void set_high_prio(void) {
  function OrtpNetworkSimulatorMode (line 161) | OrtpNetworkSimulatorMode ortp_network_simulator_mode_from_string(const c...
  function rtp_session_enable_network_simulation (line 168) | void rtp_session_enable_network_simulation(RtpSession *session, const Or...
  function elapsed_us (line 223) | static int64_t elapsed_us(struct timeval *tv1, struct timeval *tv2) {
  function mblk_t (line 227) | static mblk_t *simulate_latency(RtpSession *session, mblk_t *input) {
  function simulate_jitter_by_bit_budget_reduction (line 255) | static int simulate_jitter_by_bit_budget_reduction(OrtpNetworkSimulatorC...
  function get_packet_overhead (line 286) | static int get_packet_overhead(RtpSession *session, mblk_t *packet) {
  function mblk_t (line 292) | static mblk_t *simulate_bandwidth_limit_and_jitter(RtpSession *session, ...
  function mblk_t (line 348) | static mblk_t *simulate_loss_rate(OrtpNetworkSimulatorCtx *net_sim_ctx, ...
  function mblk_t (line 381) | mblk_t *rtp_session_network_simulate(RtpSession *session, mblk_t *input,...
  function mblk_t (line 420) | static mblk_t *rtp_session_netsim_find_next_packet_to_send(RtpSession *s...
  function rtp_session_schedule_outbound_network_simulator (line 442) | static void rtp_session_schedule_outbound_network_simulator(RtpSession *...

FILE: src/ortp.c
  function init_random_number_generator (line 39) | static void init_random_number_generator(void) {
  function bool_t (line 49) | static bool_t win32_init_sockets(void) {
  function ortp_init (line 69) | void ortp_init(void) {
  function ortp_scheduler_init (line 91) | void ortp_scheduler_init(void) {
  function ortp_exit (line 113) | void ortp_exit(void) {
  function RtpScheduler (line 127) | RtpScheduler *ortp_get_scheduler(void) {
  function ortp_global_stats_display (line 137) | void ortp_global_stats_display(void) {
  function rtp_stats_display (line 147) | void rtp_stats_display(const rtp_stats_t *stats, const char *header) {
  function rtp_stats_display_all (line 172) | void rtp_stats_display_all(const rtp_stats_t *stats1, const rtp_stats_t ...
  function ortp_global_stats_reset (line 211) | void ortp_global_stats_reset(void) {
  function rtp_stats_t (line 215) | rtp_stats_t *ortp_get_global_stats(void) {
  function rtp_stats_reset (line 219) | void rtp_stats_reset(rtp_stats_t *stats) {
  function bool_t (line 229) | bool_t ortp_min_version_required(int major, int minor, int micro) {

FILE: src/payloadtype.c
  function PayloadType (line 38) | PayloadType *payload_type_new(void) {
  function PayloadType (line 44) | PayloadType *payload_type_clone(const PayloadType *payload) {
  function bool_t (line 58) | static bool_t canWrite(PayloadType *pt) {
  function payload_type_set_recv_fmtp (line 72) | void payload_type_set_recv_fmtp(PayloadType *pt, const char *fmtp) {
  function payload_type_set_send_fmtp (line 85) | void payload_type_set_send_fmtp(PayloadType *pt, const char *fmtp) {
  function payload_type_append_recv_fmtp (line 93) | void payload_type_append_recv_fmtp(PayloadType *pt, const char *fmtp) {
  function payload_type_append_send_fmtp (line 104) | void payload_type_append_send_fmtp(PayloadType *pt, const char *fmtp) {
  function payload_type_set_avpf_params (line 115) | void payload_type_set_avpf_params(PayloadType *pt, PayloadTypeAvpfParams...
  function bool_t (line 121) | bool_t payload_type_is_vbr(const PayloadType *pt) {
  function payload_type_destroy (line 129) | void payload_type_destroy(PayloadType *pt) {
  function bool_t (line 178) | bool_t fmtp_get_value(const char *fmtp, const char *param_name, char *re...

FILE: src/port.c
  function set_non_blocking_socket (line 40) | int set_non_blocking_socket(ortp_socket_t sock) {
  function set_blocking_socket (line 54) | int set_blocking_socket(ortp_socket_t sock) {
  function close_socket (line 68) | int close_socket(ortp_socket_t sock) {

FILE: src/posixtimer.c
  type timeval (line 38) | struct timeval
  function posix_timer_init (line 41) | void posix_timer_init(void) {
  function posix_timer_do (line 47) | void posix_timer_do(void) {
  function posix_timer_uninit (line 70) | void posix_timer_uninit(void) {
  function VOID (line 98) | VOID CALLBACK timerCb(PTP_CALLBACK_INSTANCE Instance, PVOID Context, PTP...
  function win_timer_init (line 105) | void win_timer_init(void) {
  function win_timer_do (line 154) | void win_timer_do(void) {
  function win_timer_close (line 175) | void win_timer_close(void) {
  function timerCb (line 212) | void CALLBACK timerCb(UINT uID, UINT uMsg, DWORD_PTR dwUser, DWORD_PTR d...
  function win_timer_init (line 220) | void win_timer_init(void) {
  function win_timer_do (line 230) | void win_timer_do(void) {
  function win_timer_close (line 252) | void win_timer_close(void) {

FILE: src/rtcp.c
  function mblk_t (line 45) | static mblk_t *rtcp_create_simple_bye_packet(uint32_t ssrc, const char *...
  function mblk_t (line 78) | static mblk_t *sdes_chunk_new(uint32_t ssrc) {
  function mblk_t (line 86) | static mblk_t *sdes_chunk_append_item(mblk_t *m, rtcp_sdes_type_t sdes_t...
  function mblk_t (line 97) | static mblk_t *sdes_chunk_pad(mblk_t *m) {
  function mblk_t (line 101) | static mblk_t *sdes_chunk_set_minimal_items(mblk_t *m, const char *cname) {
  function mblk_t (line 108) | static mblk_t *sdes_chunk_set_full_items(mblk_t *m,
  function rtcp_sdes_items_uninit (line 129) | void rtcp_sdes_items_uninit(RtcpSdesItems *items) {
  function mblk_t (line 140) | static mblk_t *rtp_session_make_sdes(RtpSession *session, bool_t minimal) {
  function assign_string (line 177) | static void assign_string(char **str, const char *value) {
  function rtp_session_set_source_description (line 188) | void rtp_session_set_source_description(RtpSession *session,
  function rtp_session_add_contributing_source (line 218) | void rtp_session_add_contributing_source(RtpSession *session,
  function rtp_session_remove_contributing_source (line 241) | void rtp_session_remove_contributing_source(RtpSession *session, uint32_...
  function rtp_session_clear_contributing_sources (line 255) | void rtp_session_clear_contributing_sources(RtpSession *session) {
  function rtcp_common_header_init (line 260) | void rtcp_common_header_init(
  function mblk_t (line 269) | mblk_t *rtp_session_create_rtcp_sdes_packet(RtpSession *session, bool_t ...
  function sender_info_init (line 297) | static void sender_info_init(sender_info_t *info, RtpSession *session) {
  function report_block_init (line 310) | static void report_block_init(report_block_t *b, RtpSession *session) {
  function extended_statistics (line 400) | static void extended_statistics(RtpSession *session, BCTBX_UNUSED(report...
  function rtcp_sr_init (line 418) | static size_t rtcp_sr_init(RtpSession *session, uint8_t *buf, size_t siz...
  function rtcp_rr_init (line 434) | static size_t rtcp_rr_init(RtpSession *session, uint8_t *buf, size_t siz...
  function rtcp_app_init (line 444) | static size_t rtcp_app_init(RtpSession *session, uint8_t *buf, uint8_t s...
  function mblk_t (line 454) | static mblk_t *make_rr(RtpSession *session) {
  function mblk_t (line 460) | static mblk_t *make_sr(RtpSession *session) {
  function mblk_t (line 466) | static mblk_t *append_sdes(RtpSession *session, mblk_t *m, bool_t full) {
  function notify_sent_rtcp (line 473) | static void notify_sent_rtcp(RtpSession *session, mblk_t *rtcp) {
  function append_xr_packets (line 485) | static void append_xr_packets(RtpSession *session, mblk_t *m) {
  function append_fb_packets (line 501) | static void append_fb_packets(RtpSession *session, mblk_t *m) {
  function rtp_session_create_and_send_rtcp_packet (line 535) | static void rtp_session_create_and_send_rtcp_packet(RtpSession *session,...
  function rtcp_rand (line 564) | static float rtcp_rand(float t) {
  function compute_rtcp_interval (line 572) | void compute_rtcp_interval(RtpSession *session) {
  function rtp_session_update_avg_rtcp_size (line 599) | void rtp_session_update_avg_rtcp_size(RtpSession *session, int bytes) {
  function rtp_session_schedule_first_rtcp_send (line 605) | static void rtp_session_schedule_first_rtcp_send(RtpSession *session) {
  function rtp_session_reschedule (line 649) | static void rtp_session_reschedule(RtpSession *session, uint64_t tc) {
  function rtp_session_send_regular_rtcp_packet_and_reschedule (line 657) | void rtp_session_send_regular_rtcp_packet_and_reschedule(RtpSession *ses...
  function rtp_session_send_fb_rtcp_packet_and_reschedule (line 667) | void rtp_session_send_fb_rtcp_packet_and_reschedule(RtpSession *session) {
  function rtp_session_run_rtcp_send_scheduler (line 677) | void rtp_session_run_rtcp_send_scheduler(RtpSession *session) {
  function rtp_session_rtcp_process_send (line 705) | void rtp_session_rtcp_process_send(RtpSession *session) {
  function rtp_session_rtcp_process_recv (line 709) | void rtp_session_rtcp_process_recv(RtpSession *session) {
  function rtp_session_send_rtcp_APP (line 713) | void rtp_session_send_rtcp_APP(
  function rtp_session_bye (line 729) | int rtp_session_bye(RtpSession *session, const char *reason) {
  function OrtpLossRateEstimator (line 760) | OrtpLossRateEstimator *
  function ortp_loss_rate_estimator_init (line 767) | void ortp_loss_rate_estimator_init(OrtpLossRateEstimator *obj,
  function bool_t (line 781) | bool_t ortp_loss_rate_estimator_process_report_block(OrtpLossRateEstimat...
  function ortp_loss_rate_estimator_get_value (line 854) | float ortp_loss_rate_estimator_get_value(OrtpLossRateEstimator *obj) {
  function ortp_loss_rate_estimator_destroy (line 858) | void ortp_loss_rate_estimator_destroy(OrtpLossRateEstimator *obj) {

FILE: src/rtcp_fb.c
  function rtp_session_add_fb_packet_to_send (line 26) | static void rtp_session_add_fb_packet_to_send(RtpSession *session, mblk_...
  function bool_t (line 40) | static bool_t is_fb_packet_to_be_sent_immediately(RtpSession *session) {
  function mblk_t (line 58) | static mblk_t *make_rtcp_fb_pli(RtpSession *session) {
  function mblk_t (line 78) | static mblk_t *make_rtcp_fb_fir(RtpSession *session) {
  function mblk_t (line 123) | static mblk_t *make_rtcp_fb_sli(RtpSession *session, uint16_t first, uin...
  function mblk_t (line 149) | static mblk_t *make_rtcp_fb_rpsi(RtpSession *session, uint8_t *bit_strin...
  function mblk_t (line 194) | static mblk_t *make_rtcp_fb_generic_nack(RtpSession *session, uint16_t p...
  function mblk_t (line 218) | static mblk_t *make_rtcp_fb_tmmbr(RtpSession *session, uint64_t mxtbr, u...
  function mblk_t (line 258) | static mblk_t *make_rtcp_fb_tmmbn(RtpSession *session, uint32_t ssrc) {
  function mblk_t (line 286) | static mblk_t *make_rtcp_fb_goog_remb(RtpSession *session, uint64_t mxtb...
  function bool_t (line 336) | bool_t rtp_session_rtcp_psfb_scheduled(RtpSession *session, rtcp_psfb_ty...
  function bool_t (line 347) | bool_t rtp_session_rtcp_rtpfb_scheduled(RtpSession *session, rtcp_rtpfb_...
  function rtp_session_send_rtcp_fb_generic_nack (line 358) | void rtp_session_send_rtcp_fb_generic_nack(RtpSession *session, uint16_t...
  function rtp_session_send_rtcp_fb_pli (line 368) | void rtp_session_send_rtcp_fb_pli(RtpSession *session) {
  function rtp_session_send_rtcp_fb_fir (line 384) | void rtp_session_send_rtcp_fb_fir(RtpSession *session) {
  function rtp_session_send_rtcp_fb_sli (line 400) | void rtp_session_send_rtcp_fb_sli(RtpSession *session, uint16_t first, u...
  function rtp_session_send_rtcp_fb_rpsi (line 423) | void rtp_session_send_rtcp_fb_rpsi(RtpSession *session, uint8_t *bit_str...
  function rtp_session_send_rtcp_fb_tmmbr (line 437) | void rtp_session_send_rtcp_fb_tmmbr(RtpSession *session, uint64_t mxtbr) {
  function rtp_session_send_rtcp_fb_tmmbn (line 452) | void rtp_session_send_rtcp_fb_tmmbn(RtpSession *session, uint32_t ssrc) {
  function rtp_session_send_rtcp_fb_goog_remb (line 465) | void rtp_session_send_rtcp_fb_goog_remb(RtpSession *session, uint64_t mx...
  function bool_t (line 479) | bool_t rtp_session_avpf_enabled(RtpSession *session) {
  function bool_t (line 487) | bool_t rtp_session_avpf_payload_type_feature_enabled(RtpSession *session...
  function bool_t (line 496) | bool_t rtp_session_avpf_feature_enabled(RtpSession *session, unsigned ch...
  function rtp_session_enable_avpf_feature (line 501) | void rtp_session_enable_avpf_feature(RtpSession *session, unsigned char ...
  function rtp_session_get_avpf_rr_interval (line 509) | uint16_t rtp_session_get_avpf_rr_interval(RtpSession *session) {
  function bool_t (line 517) | bool_t rtp_session_has_fb_packets_to_send(RtpSession *session) {

FILE: src/rtcp_xr.c
  function calc_rate (line 34) | static uint8_t calc_rate(double d1, double d2) {
  function rtcp_xr_header_init (line 41) | static int rtcp_xr_header_init(uint8_t *buf, RtpSession *session, int by...
  function rtcp_xr_rcvr_rtt_init (line 48) | static int rtcp_xr_rcvr_rtt_init(uint8_t *buf, BCTBX_UNUSED(RtpSession *...
  function rtcp_xr_dlrr_init (line 63) | static int rtcp_xr_dlrr_init(uint8_t *buf, RtpSession *session) {
  function rtcp_xr_stat_summary_init (line 85) | static int rtcp_xr_stat_summary_init(uint8_t *buf, RtpSession *session) {
  function rtcp_xr_voip_metrics_init (line 151) | static int rtcp_xr_voip_metrics_init(uint8_t *buf, RtpSession *session) {
  function mblk_t (line 273) | mblk_t *make_xr_rcvr_rtt(RtpSession *session) {
  function mblk_t (line 281) | mblk_t *make_xr_dlrr(RtpSession *session) {
  function mblk_t (line 289) | mblk_t *make_xr_stat_summary(RtpSession *session) {
  function mblk_t (line 297) | mblk_t *make_xr_voip_metrics(RtpSession *session) {
  function rtp_session_configure_rtcp_xr (line 305) | void rtp_session_configure_rtcp_xr(RtpSession *session, const OrtpRtcpXr...
  function rtp_session_set_rtcp_xr_media_callbacks (line 311) | void rtp_session_set_rtcp_xr_media_callbacks(RtpSession *session, const ...

FILE: src/rtcpparse.c
  function bool_t (line 30) | bool_t _rtcp_next_packet(mblk_t *m) {
  function mblk_t (line 39) | const mblk_t *rtcp_parser_context_init(RtcpParserContext *context, const...
  function mblk_t (line 47) | const mblk_t *rtcp_parser_context_next_packet(RtcpParserContext *context) {
  function mblk_t (line 52) | const mblk_t *rtcp_parser_context_start(RtcpParserContext *context) {
  function rtcp_parser_context_uninit (line 57) | void rtcp_parser_context_uninit(RtcpParserContext *context) {
  function rtcp_get_size (line 61) | size_t rtcp_get_size(const mblk_t *m) {
  function bool_t (line 76) | bool_t rtcp_next_packet(mblk_t *m) {
  function rtcp_rewind (line 81) | void rtcp_rewind(mblk_t *m) {
  function rtcp_common_header_t (line 86) | const rtcp_common_header_t *rtcp_get_common_header(const mblk_t *m) {
  function bool_t (line 101) | bool_t rtcp_is_SR(const mblk_t *m) {
  function rtcp_SR_get_ssrc (line 114) | uint32_t rtcp_SR_get_ssrc(const mblk_t *m) {
  function sender_info_t (line 119) | const sender_info_t *rtcp_SR_get_sender_info(const mblk_t *m) {
  function report_block_t (line 124) | const report_block_t *rtcp_SR_get_report_block(const mblk_t *m, int idx) {
  function bool_t (line 139) | bool_t rtcp_is_RR(const mblk_t *m) {
  function rtcp_RR_get_ssrc (line 151) | uint32_t rtcp_RR_get_ssrc(const mblk_t *m) {
  function report_block_t (line 156) | const report_block_t *rtcp_RR_get_report_block(const mblk_t *m, int idx) {
  function bool_t (line 171) | bool_t rtcp_is_SDES(const mblk_t *m) {
  function rtcp_sdes_parse (line 183) | void rtcp_sdes_parse(const mblk_t *m, SdesItemFoundCallback cb, void *us...
  function bool_t (line 234) | bool_t rtcp_is_BYE(const mblk_t *m) {
  function bool_t (line 246) | bool_t rtcp_BYE_get_ssrc(const mblk_t *m, int idx, uint32_t *ssrc) {
  function bool_t (line 260) | bool_t rtcp_BYE_get_reason(const mblk_t *m, const char **reason, int *re...
  function bool_t (line 280) | bool_t rtcp_is_APP(const mblk_t *m) {
  function rtcp_APP_get_subtype (line 297) | int rtcp_APP_get_subtype(const mblk_t *m) {
  function rtcp_APP_get_ssrc (line 302) | uint32_t rtcp_APP_get_ssrc(const mblk_t *m) {
  function rtcp_APP_get_name (line 307) | void rtcp_APP_get_name(const mblk_t *m, char *name) {
  function rtcp_APP_get_data (line 312) | void rtcp_APP_get_data(const mblk_t *m, uint8_t **data, int *len) {
  function bool_t (line 324) | bool_t rtcp_is_XR(const mblk_t *m) {
  function rtcp_xr_block_type_t (line 336) | rtcp_xr_block_type_t rtcp_XR_get_block_type(const mblk_t *m) {
  function rtcp_XR_get_ssrc (line 341) | uint32_t rtcp_XR_get_ssrc(const mblk_t *m) {
  function rtcp_XR_rcvr_rtt_get_ntp_timestamp (line 346) | uint64_t rtcp_XR_rcvr_rtt_get_ntp_timestamp(const mblk_t *m) {
  function rtcp_XR_dlrr_get_ssrc (line 355) | uint32_t rtcp_XR_dlrr_get_ssrc(const mblk_t *m) {
  function rtcp_XR_dlrr_get_lrr (line 361) | uint32_t rtcp_XR_dlrr_get_lrr(const mblk_t *m) {
  function rtcp_XR_dlrr_get_dlrr (line 367) | uint32_t rtcp_XR_dlrr_get_dlrr(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_flags (line 373) | uint8_t rtcp_XR_stat_summary_get_flags(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_ssrc (line 378) | uint32_t rtcp_XR_stat_summary_get_ssrc(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_begin_seq (line 384) | uint16_t rtcp_XR_stat_summary_get_begin_seq(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_end_seq (line 390) | uint16_t rtcp_XR_stat_summary_get_end_seq(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_lost_packets (line 396) | uint32_t rtcp_XR_stat_summary_get_lost_packets(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_dup_packets (line 402) | uint32_t rtcp_XR_stat_summary_get_dup_packets(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_min_jitter (line 408) | uint32_t rtcp_XR_stat_summary_get_min_jitter(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_max_jitter (line 414) | uint32_t rtcp_XR_stat_summary_get_max_jitter(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_mean_jitter (line 420) | uint32_t rtcp_XR_stat_summary_get_mean_jitter(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_dev_jitter (line 426) | uint32_t rtcp_XR_stat_summary_get_dev_jitter(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_min_ttl_or_hl (line 432) | uint8_t rtcp_XR_stat_summary_get_min_ttl_or_hl(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_max_ttl_or_hl (line 438) | uint8_t rtcp_XR_stat_summary_get_max_ttl_or_hl(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_mean_ttl_or_hl (line 444) | uint8_t rtcp_XR_stat_summary_get_mean_ttl_or_hl(const mblk_t *m) {
  function rtcp_XR_stat_summary_get_dev_ttl_or_hl (line 450) | uint8_t rtcp_XR_stat_summary_get_dev_ttl_or_hl(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_ssrc (line 456) | uint32_t rtcp_XR_voip_metrics_get_ssrc(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_loss_rate (line 462) | uint8_t rtcp_XR_voip_metrics_get_loss_rate(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_discard_rate (line 468) | uint8_t rtcp_XR_voip_metrics_get_discard_rate(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_burst_density (line 474) | uint8_t rtcp_XR_voip_metrics_get_burst_density(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_gap_density (line 480) | uint8_t rtcp_XR_voip_metrics_get_gap_density(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_burst_duration (line 486) | uint16_t rtcp_XR_voip_metrics_get_burst_duration(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_gap_duration (line 492) | uint16_t rtcp_XR_voip_metrics_get_gap_duration(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_round_trip_delay (line 498) | uint16_t rtcp_XR_voip_metrics_get_round_trip_delay(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_end_system_delay (line 504) | uint16_t rtcp_XR_voip_metrics_get_end_system_delay(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_signal_level (line 510) | uint8_t rtcp_XR_voip_metrics_get_signal_level(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_noise_level (line 516) | uint8_t rtcp_XR_voip_metrics_get_noise_level(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_rerl (line 522) | uint8_t rtcp_XR_voip_metrics_get_rerl(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_gmin (line 528) | uint8_t rtcp_XR_voip_metrics_get_gmin(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_r_factor (line 534) | uint8_t rtcp_XR_voip_metrics_get_r_factor(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_ext_r_factor (line 540) | uint8_t rtcp_XR_voip_metrics_get_ext_r_factor(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_mos_lq (line 546) | uint8_t rtcp_XR_voip_metrics_get_mos_lq(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_mos_cq (line 552) | uint8_t rtcp_XR_voip_metrics_get_mos_cq(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_rx_config (line 558) | uint8_t rtcp_XR_voip_metrics_get_rx_config(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_jb_nominal (line 564) | uint16_t rtcp_XR_voip_metrics_get_jb_nominal(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_jb_maximum (line 570) | uint16_t rtcp_XR_voip_metrics_get_jb_maximum(const mblk_t *m) {
  function rtcp_XR_voip_metrics_get_jb_abs_max (line 576) | uint16_t rtcp_XR_voip_metrics_get_jb_abs_max(const mblk_t *m) {
  function bool_t (line 583) | bool_t rtcp_is_RTPFB(const mblk_t *m) {
  function bool_t (line 596) | bool_t rtcp_is_RTPFB_internal(const mblk_t *m) {
  function rtcp_rtpfb_type_t (line 601) | rtcp_rtpfb_type_t rtcp_RTPFB_get_type(const mblk_t *m) {
  function rtcp_RTPFB_get_packet_sender_ssrc (line 606) | uint32_t rtcp_RTPFB_get_packet_sender_ssrc(const mblk_t *m) {
  function rtcp_RTPFB_get_media_source_ssrc (line 611) | uint32_t rtcp_RTPFB_get_media_source_ssrc(const mblk_t *m) {
  function rtcp_fb_generic_nack_fci_t (line 616) | rtcp_fb_generic_nack_fci_t *rtcp_RTPFB_generic_nack_get_fci(const mblk_t...
  function rtcp_fb_tmmbr_fci_t (line 625) | rtcp_fb_tmmbr_fci_t *rtcp_RTPFB_tmmbr_get_fci(const mblk_t *m) {
  function rtcp_RTPFB_tmmbr_get_max_bitrate (line 634) | uint64_t rtcp_RTPFB_tmmbr_get_max_bitrate(const mblk_t *m) {
  function rtcp_fb_goog_remb_fci_t (line 639) | rtcp_fb_goog_remb_fci_t *rtcp_PSFB_goog_remb_get_fci(const mblk_t *m) {
  function rtcp_PSFB_goog_remb_get_max_bitrate (line 648) | uint64_t rtcp_PSFB_goog_remb_get_max_bitrate(const mblk_t *m) {
  function bool_t (line 653) | bool_t rtcp_PSFB_is_goog_remb(const mblk_t *m) {
  function bool_t (line 659) | bool_t rtcp_is_PSFB(const mblk_t *m) {
  function bool_t (line 672) | bool_t rtcp_is_PSFB_internal(const mblk_t *m) {
  function rtcp_psfb_type_t (line 677) | rtcp_psfb_type_t rtcp_PSFB_get_type(const mblk_t *m) {
  function rtcp_PSFB_get_packet_sender_ssrc (line 682) | uint32_t rtcp_PSFB_get_packet_sender_ssrc(const mblk_t *m) {
  function rtcp_PSFB_get_media_source_ssrc (line 687) | uint32_t rtcp_PSFB_get_media_source_ssrc(const mblk_t *m) {
  function rtcp_fb_fir_fci_t (line 692) | rtcp_fb_fir_fci_t *rtcp_PSFB_fir_get_fci(const mblk_t *m, unsigned int i...
  function rtcp_fb_sli_fci_t (line 701) | rtcp_fb_sli_fci_t *rtcp_PSFB_sli_get_fci(const mblk_t *m, unsigned int i...
  function rtcp_fb_rpsi_fci_t (line 710) | rtcp_fb_rpsi_fci_t *rtcp_PSFB_rpsi_get_fci(const mblk_t *m) {
  function rtcp_PSFB_rpsi_get_fci_bit_string_len (line 714) | uint16_t rtcp_PSFB_rpsi_get_fci_bit_string_len(const mblk_t *m) {

FILE: src/rtpaudiolevel.c
  function rtp_add_client_to_mixer_audio_level (line 32) | void rtp_add_client_to_mixer_audio_level(mblk_t *packet, int id, bool_t ...
  function rtp_get_client_to_mixer_audio_level (line 46) | int rtp_get_client_to_mixer_audio_level(mblk_t *packet, int id, bool_t *...
  function rtp_add_mixer_to_client_audio_level_base (line 60) | static void rtp_add_mixer_to_client_audio_level_base(
  function rtp_write_mixer_to_client_audio_level (line 98) | void rtp_write_mixer_to_client_audio_level(mblk_t *packet, int id, size_...
  function rtp_add_mixer_to_client_audio_level (line 110) | void rtp_add_mixer_to_client_audio_level(mblk_t *packet, int id, size_t ...
  function rtp_get_mixer_to_client_audio_level (line 123) | int rtp_get_mixer_to_client_audio_level(mblk_t *packet, int id, rtp_audi...

FILE: src/rtpbundle.cc
  function RtpBundle (line 32) | RtpBundle *rtp_bundle_new(void) {
  function rtp_bundle_delete (line 36) | void rtp_bundle_delete(RtpBundle *bundle) {
  function rtp_bundle_get_mid_extension_id (line 40) | int rtp_bundle_get_mid_extension_id(RtpBundle *bundle) {
  function rtp_bundle_set_mid_extension_id (line 44) | void rtp_bundle_set_mid_extension_id(RtpBundle *bundle, int id) {
  function rtp_bundle_add_session (line 48) | void rtp_bundle_add_session(RtpBundle *bundle, const char *mid, RtpSessi...
  function rtp_bundle_remove_sessions_by_id (line 52) | void rtp_bundle_remove_sessions_by_id(RtpBundle *bundle, const char *mid) {
  function rtp_bundle_remove_session (line 56) | void rtp_bundle_remove_session(RtpBundle *bundle, RtpSession *session) {
  function rtp_bundle_clear (line 60) | void rtp_bundle_clear(RtpBundle *bundle) {
  function rtp_bundle_session_mode_updated (line 64) | void rtp_bundle_session_mode_updated(RtpBundle *bundle, RtpSession *sess...
  function RtpSession (line 68) | RtpSession *rtp_bundle_get_primary_session(RtpBundle *bundle) {
  function rtp_bundle_set_primary_session (line 72) | void rtp_bundle_set_primary_session(RtpBundle *bundle, RtpSession *sessi...
  function mblk_t (line 86) | mblk_t *rtp_bundle_dispatch(RtpBundle *bundle, bool_t is_rtp, mblk_t *m) {
  function RtpSession (line 90) | RtpSession *rtp_bundle_lookup_session_for_outgoing_packet(RtpBundle *bun...
  function RtpSession (line 320) | RtpSession *RtpBundleCxx::getPrimarySession() const {
  function getSsrcFromSdes (line 355) | static void getSsrcFromSdes(void *userData,
  function getSsrcFromMessage (line 367) | static uint32_t getSsrcFromMessage(const mblk_t *m, bool isRtp) {
  function getRTCPReferedSSRC (line 405) | static bool getRTCPReferedSSRC(const mblk_t *m, uint32_t *ssrc) {
  function RtpSession (line 510) | RtpSession *RtpBundleCxx::checkForSession(const mblk_t *m, bool isRtp, b...

FILE: src/rtpbundle.h
  function class (line 31) | class RtpBundleCxx {

FILE: src/rtpframemarking.c
  function rtp_add_frame_marker (line 31) | void rtp_add_frame_marker(mblk_t *packet, int id, uint8_t marker) {
  function rtp_get_frame_marker (line 43) | int rtp_get_frame_marker(const mblk_t *packet, int id, uint8_t *marker) {

FILE: src/rtpparse.c
  function bool_t (line 32) | static bool_t queue_packet(queue_t *q, int maxrqsz, mblk_t *mp, rtp_head...
  function compute_mean_and_deviation (line 64) | static void compute_mean_and_deviation(uint32_t nb, double x, double *ol...
  function update_rtcp_xr_stat_summary (line 71) | static void update_rtcp_xr_stat_summary(RtpSession *session, mblk_t *mp,...
  function check_for_seq_number_gap_immediate (line 121) | static void check_for_seq_number_gap_immediate(RtpSession *session, rtp_...
  function rtp_session_rtp_parse (line 168) | void rtp_session_rtp_parse(

FILE: src/rtpprofile.c
  function rtp_profile_get_payload_number_from_mime (line 24) | int rtp_profile_get_payload_number_from_mime(RtpProfile *profile, const ...
  function rtp_profile_get_payload_number_from_mime_and_flag (line 28) | int rtp_profile_get_payload_number_from_mime_and_flag(RtpProfile *profil...
  function rtp_profile_find_payload_number (line 44) | int rtp_profile_find_payload_number(RtpProfile *profile, const char *mim...
  function rtp_profile_get_payload_number_from_rtpmap (line 61) | int rtp_profile_get_payload_number_from_rtpmap(RtpProfile *profile, cons...
  function PayloadType (line 99) | PayloadType *rtp_profile_find_payload(RtpProfile *prof, const char *mime...
  function PayloadType (line 106) | PayloadType *rtp_profile_get_payload_from_mime(RtpProfile *profile, cons...
  function PayloadType (line 113) | PayloadType *rtp_profile_get_payload_from_rtpmap(RtpProfile *profile, co...
  function rtp_profile_move_payload (line 119) | int rtp_profile_move_payload(RtpProfile *prof, int oldpos, int newpos) {
  function RtpProfile (line 133) | RtpProfile *rtp_profile_new(const char *name) {
  function rtp_profile_set_payload (line 146) | void rtp_profile_set_payload(RtpProfile *profile, int idx, PayloadType *...
  function rtp_profile_clear_all (line 159) | void rtp_profile_clear_all(RtpProfile *profile) {
  function rtp_profile_set_name (line 172) | void rtp_profile_set_name(RtpProfile *profile, const char *name) {
  function RtpProfile (line 178) | RtpProfile *rtp_profile_clone(RtpProfile *prof) {
  function RtpProfile (line 192) | RtpProfile *rtp_profile_clone_full(RtpProfile *prof) {
  function rtp_profile_destroy (line 205) | void rtp_profile_destroy(RtpProfile *prof) {

FILE: src/rtpsession.c
  function payload_type_changed (line 74) | static void payload_type_changed(RtpSession *session, PayloadType *pt) {
  function wait_point_init (line 83) | void wait_point_init(WaitPoint *wp) {
  function wait_point_uninit (line 89) | void wait_point_uninit(WaitPoint *wp) {
  function wait_point_wakeup_at (line 97) | void wait_point_wakeup_at(WaitPoint *wp, uint32_t t, bool_t dosleep) {
  function bool_t (line 103) | bool_t wait_point_check(WaitPoint *wp, uint32_t t) {
  type sockaddr (line 116) | struct sockaddr
  function rtp_putq (line 120) | int rtp_putq(queue_t *q, mblk_t *mp) {
  function mblk_t (line 157) | mblk_t *rtp_peekq(queue_t *q, uint32_t timestamp, int *rejected) {
  function mblk_t (line 195) | mblk_t *rtp_peekq_permissive(queue_t *q, uint32_t timestamp, int *reject...
  function rtp_session_init (line 218) | void rtp_session_init(RtpSession *session, RtpSessionMode mode) {
  function rtp_session_set_mode (line 327) | void rtp_session_set_mode(RtpSession *session, RtpSessionMode mode) {
  function rtp_session_enable_congestion_detection (line 338) | void rtp_session_enable_congestion_detection(RtpSession *session, bool_t...
  function rtp_session_reset_video_bandwidth_estimator (line 354) | void rtp_session_reset_video_bandwidth_estimator(RtpSession *session) {
  function rtp_session_enable_video_bandwidth_estimator (line 358) | void rtp_session_enable_video_bandwidth_estimator(RtpSession *session,
  function rtp_session_enable_audio_bandwidth_estimator (line 378) | void rtp_session_enable_audio_bandwidth_estimator(RtpSession *session,
  function jb_parameters_init (line 395) | void jb_parameters_init(JBParameters *jbp) {
  function RtpSession (line 419) | RtpSession *rtp_session_new(RtpSessionMode mode) {
  function rtp_session_set_scheduling_mode (line 443) | void rtp_session_set_scheduling_mode(RtpSession *session, int yesno) {
  function rtp_session_set_blocking_mode (line 469) | void rtp_session_set_blocking_mode(RtpSession *session, int yesno) {
  function rtp_session_set_profile (line 485) | void rtp_session_set_profile(RtpSession *session, RtpProfile *profile) {
  function rtp_session_enable_rtcp (line 499) | void rtp_session_enable_rtcp(RtpSession *session, bool_t yesno) {
  function bool_t (line 503) | bool_t rtp_session_rtcp_enabled(const RtpSession *session) {
  function rtp_session_set_rtcp_report_interval (line 511) | void rtp_session_set_rtcp_report_interval(RtpSession *session, int value...
  function rtp_session_set_target_upload_bandwidth (line 516) | void rtp_session_set_target_upload_bandwidth(RtpSession *session, int ta...
  function rtp_session_get_target_upload_bandwidth (line 523) | int rtp_session_get_target_upload_bandwidth(RtpSession *session) {
  function rtp_session_set_send_profile (line 536) | void rtp_session_set_send_profile(RtpSession *session, RtpProfile *profi...
  function rtp_session_set_recv_profile (line 550) | void rtp_session_set_recv_profile(RtpSession *session, RtpProfile *profi...
  function RtpProfile (line 562) | RtpProfile *rtp_session_get_profile(RtpSession *session) {
  function RtpProfile (line 572) | RtpProfile *rtp_session_get_send_profile(RtpSession *session) {
  function RtpProfile (line 582) | RtpProfile *rtp_session_get_recv_profile(RtpSession *session) {
  function rtp_session_set_send_ts_offset (line 586) | void rtp_session_set_send_ts_offset(RtpSession *s, uint32_t offset) {
  function rtp_session_get_send_ts_offset (line 590) | uint32_t rtp_session_get_send_ts_offset(RtpSession *s) {
  function rtp_session_set_recv_buf_size (line 602) | void rtp_session_set_recv_buf_size(RtpSession *session, int bufsize) {
  function rtp_session_set_rtp_socket_send_buffer_size (line 610) | void rtp_session_set_rtp_socket_send_buffer_size(RtpSession *session, un...
  function rtp_session_set_rtp_socket_recv_buffer_size (line 619) | void rtp_session_set_rtp_socket_recv_buffer_size(RtpSession *session, un...
  function rtp_session_signal_connect (line 666) | int rtp_session_signal_connect(RtpSession *session, const char *signal_n...
  function rtp_session_signal_connect_from_source_session (line 682) | int rtp_session_signal_connect_from_source_session(
  function rtp_session_signal_disconnect_by_callback (line 703) | int rtp_session_signal_disconnect_by_callback(RtpSession *session, const...
  function rtp_session_signal_disconnect_by_callback_and_user_data (line 724) | int rtp_session_signal_disconnect_by_callback_and_user_data(RtpSession *...
  function rtp_session_signal_disconnect_by_source_session (line 747) | int rtp_session_signal_disconnect_by_source_session(RtpSession *session,
  function rtp_session_set_seq_number (line 767) | void rtp_session_set_seq_number(RtpSession *session, uint16_t seq) {
  function rtp_session_set_duplication_ratio (line 771) | void rtp_session_set_duplication_ratio(RtpSession *session, float ratio) {
  function rtp_session_get_seq_number (line 778) | uint16_t rtp_session_get_seq_number(RtpSession *session) {
  function rtp_session_get_rcv_ext_seq_number (line 785) | uint32_t rtp_session_get_rcv_ext_seq_number(RtpSession *session) {
  function rtp_session_get_cum_loss (line 792) | int rtp_session_get_cum_loss(RtpSession *session) {
  function rtp_session_set_ssrc (line 803) | void rtp_session_set_ssrc(RtpSession *session, uint32_t ssrc) {
  function rtp_session_get_send_ssrc (line 812) | uint32_t rtp_session_get_send_ssrc(const RtpSession *session) {
  function rtp_session_get_recv_ssrc (line 821) | uint32_t rtp_session_get_recv_ssrc(RtpSession *session) {
  function rtp_session_update_payload_type (line 825) | void rtp_session_update_payload_type(RtpSession *session, int paytype) {
  function rtp_session_set_send_payload_type (line 848) | int rtp_session_set_send_payload_type(RtpSession *session, int paytype) {
  function rtp_session_get_send_payload_type (line 858) | int rtp_session_get_send_payload_type(const RtpSession *session) {
  function rtp_session_set_send_telephone_event_payload_type (line 872) | int rtp_session_set_send_telephone_event_payload_type(RtpSession *sessio...
  function rtp_session_set_recv_payload_type (line 888) | int rtp_session_set_recv_payload_type(RtpSession *session, int paytype) {
  function rtp_session_get_recv_payload_type (line 904) | int rtp_session_get_recv_payload_type(const RtpSession *session) {
  function rtp_session_set_payload_type (line 917) | int rtp_session_set_payload_type(RtpSession *session, int pt) {
  function rtp_header_init_from_session (line 923) | static void rtp_header_init_from_session(rtp_header_t *rtp, RtpSession *...
  function rtp_session_calculate_packet_header_size (line 943) | size_t rtp_session_calculate_packet_header_size(int cc, const char *mid) {
  function rtp_header_add_csrcs_from_session (line 958) | static void rtp_header_add_csrcs_from_session(rtp_header_t *header, RtpS...
  function bool_t (line 966) | static bool_t rtp_session_should_send_mid(RtpSession *session) {
  function mblk_t (line 981) | mblk_t *rtp_session_create_packet_header(RtpSession *session, size_t ext...
  function mblk_t (line 1016) | mblk_t *
  function mblk_t (line 1052) | mblk_t *rtp_session_create_packet_header_with_mixer_to_client_audio_leve...
  function mblk_t (line 1116) | mblk_t *rtp_create_packet(const uint8_t *packet, size_t packet_size) {
  function mblk_t (line 1134) | mblk_t *rtp_package_packet(uint8_t *packet, size_t packet_size, void (*f...
  function mblk_t (line 1164) | mblk_t *
  function mblk_t (line 1224) | mblk_t *rtp_session_create_packet_with_mixer_to_client_audio_level(RtpSe...
  function mblk_t (line 1301) | mblk_t *rtp_session_create_packet_raw(const uint8_t *packet, size_t pack...
  function mblk_t (line 1328) | mblk_t *rtp_session_create_packet_with_data(RtpSession *session,
  function __rtp_session_sendm_with_ts_2 (line 1370) | static int __rtp_session_sendm_with_ts_2(
  function __rtp_session_sendm_with_ts (line 1504) | int __rtp_session_sendm_with_ts(RtpSession *session, mblk_t *mp, uint32_...
  function rtp_session_sendm_with_ts (line 1520) | int rtp_session_sendm_with_ts(RtpSession *session, mblk_t *packet, uint3...
  function rtp_session_send_with_ts (line 1536) | int rtp_session_send_with_ts(RtpSession *session, const uint8_t *buffer,...
  function payload_type_changed_notify (line 1554) | static void payload_type_changed_notify(RtpSession *session, int paytype) {
  function mblk_t (line 1574) | mblk_t *rtp_session_pick_with_cseq(RtpSession *session, const uint16_t s...
  function check_for_seq_number_gap (line 1585) | static void check_for_seq_number_gap(RtpSession *session, rtp_header_t *...
  function apply_fec_on_missing_packets (line 1621) | static void apply_fec_on_missing_packets(RtpSession *session) {
  function mblk_t (line 1698) | mblk_t *rtp_session_recvm_with_ts(RtpSession *session, uint32_t user_ts) {
  function rtp_session_recv_with_ts (line 1921) | int rtp_session_recv_with_ts(RtpSession *session, uint8_t *buffer, int l...
  function rtp_session_get_current_send_ts (line 1968) | uint32_t rtp_session_get_current_send_ts(RtpSession *session) {
  function rtp_session_get_current_recv_ts (line 1992) | uint32_t rtp_session_get_current_recv_ts(RtpSession *session) {
  function rtp_session_set_time_jump_limit (line 2018) | void rtp_session_set_time_jump_limit(RtpSession *session, int milisecs) {
  function _rtp_session_release_sockets (line 2026) | void _rtp_session_release_sockets(RtpSession *session, bool_t release_tr...
  function rtp_session_release_sockets (line 2056) | void rtp_session_release_sockets(RtpSession *session) {
  function ortp_socket_t (line 2060) | ortp_socket_t rtp_session_get_rtp_socket(const RtpSession *session) {
  function ortp_socket_t (line 2065) | ortp_socket_t rtp_session_get_rtcp_socket(const RtpSession *session) {
  function rtp_session_register_event_queue (line 2074) | void rtp_session_register_event_queue(RtpSession *session, OrtpEvQueue *...
  function rtp_session_unregister_event_queue (line 2078) | void rtp_session_unregister_event_queue(RtpSession *session, OrtpEvQueue...
  function rtp_session_unregister_event_queues (line 2082) | void rtp_session_unregister_event_queues(RtpSession *session) {
  function rtp_session_dispatch_event (line 2087) | void rtp_session_dispatch_event(RtpSession *session, OrtpEvent *ev) {
  function ortp_stream_clear_aux_addresses (line 2096) | void ortp_stream_clear_aux_addresses(OrtpStream *os) {
  function ortp_stream_init (line 2105) | static void ortp_stream_init(OrtpStream *os) {
  function ortp_stream_uninit (line 2110) | static void ortp_stream_uninit(OrtpStream *os) {
  function rtp_session_uninit (line 2116) | void rtp_session_uninit(RtpSession *session) {
  function rtp_session_set_ssrc_changed_threshold (line 2221) | void rtp_session_set_ssrc_changed_threshold(RtpSession *session, int num...
  function rtp_session_resync (line 2231) | void rtp_session_resync(RtpSession *session) {
  function rtp_session_reset (line 2257) | void rtp_session_reset(RtpSession *session) {
  function rtp_stats_t (line 2284) | const rtp_stats_t *rtp_session_get_stats(const RtpSession *session) {
  function jitter_stats_t (line 2291) | const jitter_stats_t *rtp_session_get_jitter_stats(const RtpSession *ses...
  function rtp_session_rtcp_set_lost_packet_value (line 2304) | void rtp_session_rtcp_set_lost_packet_value(struct _RtpSession *s, const...
  function rtp_session_rtcp_set_jitter_value (line 2319) | void rtp_session_rtcp_set_jitter_value(struct _RtpSession *s, const unsi...
  function rtp_session_rtcp_set_delay_value (line 2350) | void rtp_session_rtcp_set_delay_value(struct _RtpSession *s, const unsig...
  function rtp_session_reset_stats (line 2355) | void rtp_session_reset_stats(RtpSession *session) {
  function rtp_session_set_data (line 2366) | void rtp_session_set_data(RtpSession *session, void *data) {
  function rtp_session_set_symmetric_rtp (line 2387) | void rtp_session_set_symmetric_rtp(RtpSession *session, bool_t yesno) {
  function rtp_session_enable_rtcp_mux (line 2391) | void rtp_session_enable_rtcp_mux(RtpSession *session, bool_t yesno) {
  function bool_t (line 2395) | bool_t rtp_session_rtcp_mux_enabled(RtpSession *session) {
  function rtp_session_set_connected_mode (line 2412) | void rtp_session_set_connected_mode(RtpSession *session, bool_t yesno) {
  function rtp_session_get_recv_bandwidth (line 2419) | float rtp_session_get_recv_bandwidth(RtpSession *session) {
  function rtp_session_get_recv_bandwidth_smooth (line 2424) | float rtp_session_get_recv_bandwidth_smooth(RtpSession *session) {
  function rtp_session_get_send_bandwidth (line 2432) | float rtp_session_get_send_bandwidth(RtpSession *session) {
  function rtp_session_get_send_bandwidth_smooth (line 2437) | float rtp_session_get_send_bandwidth_smooth(RtpSession *session) {
  function rtp_session_get_rtp_recv_bandwidth (line 2442) | float rtp_session_get_rtp_recv_bandwidth(RtpSession *session) {
  function rtp_session_get_rtp_send_bandwidth (line 2446) | float rtp_session_get_rtp_send_bandwidth(RtpSession *session) {
  function rtp_session_get_rtcp_recv_bandwidth (line 2450) | float rtp_session_get_rtcp_recv_bandwidth(RtpSession *session) {
  function rtp_session_get_rtcp_send_bandwidth (line 2454) | float rtp_session_get_rtcp_send_bandwidth(RtpSession *session) {
  function rtp_session_get_last_send_error_code (line 2458) | int rtp_session_get_last_send_error_code(RtpSession *session) {
  function rtp_session_clear_send_error_code (line 2462) | void rtp_session_clear_send_error_code(RtpSession *session) {
  function rtp_session_get_last_recv_error_code (line 2466) | int rtp_session_get_last_recv_error_code(RtpSession *session) {
  function rtp_session_clear_recv_error_code (line 2470) | void rtp_session_clear_recv_error_code(RtpSession *session) {
  function rtp_session_get_round_trip_propagation (line 2485) | float rtp_session_get_round_trip_propagation(RtpSession *session) {
  function rtp_session_destroy (line 2495) | void rtp_session_destroy(RtpSession *session) {
  function rtp_session_make_time_distorsion (line 2500) | void rtp_session_make_time_distorsion(RtpSession *session, int milisec) {
  function rtp_header_add_csrc (line 2505) | void rtp_header_add_csrc(rtp_header_t *hdr, uint32_t csrc) {
  function rtp_add_csrc (line 2510) | void rtp_add_csrc(mblk_t *mp, uint32_t csrc) {
  function rtp_get_payload (line 2520) | int rtp_get_payload(mblk_t *packet, unsigned char **start) {
  function rtp_get_extheader (line 2557) | int rtp_get_extheader(const mblk_t *packet, uint16_t *profile, uint8_t *...
  function rtp_delete_extension_header (line 2588) | void rtp_delete_extension_header(mblk_t *packet, int id) {
  function rtp_add_extension_header_base (line 2624) | static void rtp_add_extension_header_base(mblk_t *packet, int id, size_t...
  function rtp_write_extension_header (line 2737) | void rtp_write_extension_header(mblk_t *packet, int id, size_t size, uin...
  function rtp_add_extension_header (line 2751) | void rtp_add_extension_header(mblk_t *packet, int id, size_t size, uint8...
  function rtp_get_extension_header (line 2763) | int rtp_get_extension_header(const mblk_t *packet, int id, uint8_t **dat...
  function rtp_remap_header_extension_ids (line 2829) | void rtp_remap_header_extension_ids(mblk_t *packet, const int mapping[16...
  function rtp_session_get_last_recv_time (line 2885) | void rtp_session_get_last_recv_time(RtpSession *session, struct timeval ...
  function rtp_session_time_to_ts (line 2893) | uint32_t rtp_session_time_to_ts(RtpSession *session, int millisecs) {
  function rtp_session_ts_to_time (line 2905) | uint32_t rtp_session_ts_to_time(RtpSession *session, uint32_t timestamp) {
  function rtp_session_process (line 2917) | void rtp_session_process(RtpSession *session, uint32_t time, RtpSchedule...
  function rtp_session_set_reuseaddr (line 2933) | void rtp_session_set_reuseaddr(RtpSession *session, bool_t yes) {
  type MetaRtpTransportImpl (line 2937) | typedef struct _MetaRtpTransportImpl {
  function ortp_socket_t (line 2946) | ortp_socket_t meta_rtp_transport_getsocket(RtpTransport *t) {
  function meta_rtp_set_session (line 2955) | void meta_rtp_set_session(RtpSession *s, MetaRtpTransportImpl *m) {
  function _meta_rtp_transport_send_through_endpoint (line 2972) | static int _meta_rtp_transport_send_through_endpoint(
  function meta_rtp_transport_sendto (line 2985) | int meta_rtp_transport_sendto(RtpTransport *t, mblk_t *msg, int flags, c...
  function meta_rtp_transport_modifier_inject_packet_to_send (line 3023) | int meta_rtp_transport_modifier_inject_packet_to_send(RtpTransport *t,
  function meta_rtp_transport_modifier_inject_packet_to_send_to (line 3049) | int meta_rtp_transport_modifier_inject_packet_to_send_to(
  function _meta_rtp_transport_recv_through_modifiers (line 3087) | static int _meta_rtp_transport_recv_through_modifiers(RtpTransport *t,
  function meta_rtp_transport_modifier_inject_packet_to_recv (line 3127) | int meta_rtp_transport_modifier_inject_packet_to_recv(RtpTransport *t,
  function meta_rtp_transport_apply_all_except_one_on_receive (line 3138) | int meta_rtp_transport_apply_all_except_one_on_receive(RtpTransport *t, ...
  function meta_rtp_transport_recvfrom (line 3168) | int meta_rtp_transport_recvfrom(RtpTransport *t, mblk_t *msg, int flags,...
  function meta_rtp_transport_close (line 3232) | void meta_rtp_transport_close(RtpTransport *t) {
  function RtpTransport (line 3239) | static RtpTransport *
  function RtpTransport (line 3261) | RtpTransport *meta_rtp_transport_new(RtpTransport *endpoint, unsigned mo...
  function RtpTransport (line 3270) | RtpTransport *meta_rtcp_transport_new(RtpTransport *endpoint, unsigned m...
  function meta_rtp_transport_link (line 3280) | void meta_rtp_transport_link(RtpTransport *rtp, RtpTransport *rtcp) {
  function RtpTransport (line 3287) | RtpTransport *meta_rtp_transport_get_endpoint(const RtpTransport *transp...
  function meta_rtp_transport_set_endpoint (line 3291) | void meta_rtp_transport_set_endpoint(RtpTransport *transport, RtpTranspo...
  function meta_rtp_transport_destroy (line 3297) | void meta_rtp_transport_destroy(RtpTransport *tp) {
  function rtp_transport_modifier_level_compare (line 3316) | int rtp_transport_modifier_level_compare(const RtpTransportModifier *mod...
  function meta_rtp_transport_remove_modifier (line 3321) | void meta_rtp_transport_remove_modifier(RtpTransport *tp, RtpTransportMo...
  function meta_rtp_transport_append_modifier (line 3326) | void meta_rtp_transport_append_modifier(RtpTransport *tp, RtpTransportMo...
  function meta_rtp_transport_prepend_modifier (line 3335) | void meta_rtp_transport_prepend_modifier(RtpTransport *tp, RtpTransportM...
  function bool_t (line 3344) | bool_t rtp_session_get_symmetric_rtp(const RtpSession *session) {
  function rtp_session_splice (line 3348) | int rtp_session_splice(RtpSession *session, RtpSession *to_session) {
  function rtp_session_unsplice (line 3360) | int rtp_session_unsplice(RtpSession *session, RtpSession *to_session) {
  function rtp_session_do_splice (line 3374) | void rtp_session_do_splice(RtpSession *session, mblk_t *packet, bool_t i...
  function bool_t (line 3382) | bool_t ortp_stream_is_ipv6(OrtpStream *os) {
  function rtp_session_reset_recvfrom (line 3390) | void rtp_session_reset_recvfrom(RtpSession *session) {
  function rtp_session_enable_transfer_mode (line 3402) | void rtp_session_enable_transfer_mode(RtpSession *session, bool_t enable) {
  function bool_t (line 3420) | bool_t rtp_session_transfer_mode_enabled(RtpSession *session) {
  function abe_stats_t (line 3424) | const abe_stats_t *rtp_session_get_audio_bandwidth_estimator_stats(RtpSe...
  function rtp_session_get_audio_bandwidth_estimator_duplicate_rate (line 3432) | int rtp_session_get_audio_bandwidth_estimator_duplicate_rate(RtpSession ...
  function rtp_session_set_bundle (line 3440) | void rtp_session_set_bundle(RtpSession *session, RtpBundle *bundle) {

FILE: src/rtpsession_inet.c
  type WSACMSGHDR (line 98) | typedef WSACMSGHDR *LPWSACMSGHDR;
  type LPWSAMSG (line 127) | typedef INT(WINAPI *LPFN_WSARECVMSG)(SOCKET, LPWSAMSG, LPDWORD, LPWSAOVE...
  function bool_t (line 153) | static bool_t try_connect(ortp_socket_t fd, const struct sockaddr *dest,...
  function set_multicast_group (line 161) | static int set_multicast_group(ortp_socket_t sock, const char *addr) {
  function ortp_socket_t (line 204) | static ortp_socket_t create_and_bind(const char *addr,
  function _rtp_session_apply_socket_sizes (line 352) | void _rtp_session_apply_socket_sizes(RtpSession *session) {
  function rtp_session_set_local_addr (line 408) | int rtp_session_set_local_addr(RtpSession *session, const char *addr, in...
  function _rtp_session_recreate_sockets (line 451) | static void _rtp_session_recreate_sockets(RtpSession *session) {
  function _rtp_session_check_socket_refresh (line 461) | static void _rtp_session_check_socket_refresh(RtpSession *session) {
  function rtp_session_refresh_sockets (line 473) | void rtp_session_refresh_sockets(RtpSession *session) {
  function rtp_session_join_multicast_group (line 479) | int rtp_session_join_multicast_group(RtpSession *session, const char *ip) {
  function rtp_session_set_pktinfo (line 501) | int rtp_session_set_pktinfo(RtpSession *session, int activate) {
  function rtp_session_set_multicast_ttl (line 566) | int rtp_session_set_multicast_ttl(RtpSession *session, int ttl) {
  function rtp_session_get_multicast_ttl (line 613) | int rtp_session_get_multicast_ttl(RtpSession *session) {
  function rtp_session_set_multicast_loopback (line 626) | int rtp_session_set_multicast_loopback(RtpSession *session, int yesno) {
  function rtp_session_get_multicast_loopback (line 679) | int rtp_session_get_multicast_loopback(RtpSession *session) {
  function rtp_session_get_dscp (line 788) | int rtp_session_get_dscp(const RtpSession *session) {
  function rtp_session_get_local_port (line 803) | int rtp_session_get_local_port(const RtpSession *session) {
  function rtp_session_get_local_rtcp_port (line 807) | int rtp_session_get_local_rtcp_port(const RtpSession *session) {
  function rtp_session_set_remote_addr (line 823) | int rtp_session_set_remote_addr(RtpSession *session, const char *addr, i...
  function rtp_session_set_remote_addr_full (line 842) | int rtp_session_set_remote_addr_full(
  function _rtp_session_set_remote_addr_full (line 847) | static int _rtp_session_set_remote_addr_full(
  function rtp_session_set_remote_addr_and_port (line 1011) | int rtp_session_set_remote_addr_and_port(RtpSession *session, const char...
  function rtp_session_add_aux_remote_addr_full (line 1029) | int rtp_session_add_aux_remote_addr_full(
  function rtp_session_clear_aux_remote_addr (line 1034) | void rtp_session_clear_aux_remote_addr(RtpSession *session) {
  function rtp_session_set_sockets (line 1041) | void rtp_session_set_sockets(RtpSession *session, int rtpfd, int rtcpfd) {
  function rtp_session_set_transports (line 1051) | void rtp_session_set_transports(RtpSession *session, struct _RtpTranspor...
  function rtp_session_get_transports (line 1061) | void rtp_session_get_transports(const RtpSession *session, RtpTransport ...
  function rtp_session_flush_sockets (line 1076) | void rtp_session_flush_sockets(RtpSession *session) {
  function rtp_sendmsg (line 1084) | static int rtp_sendmsg(ortp_socket_t sock, mblk_t *m, const struct socka...
  function rtp_sendmsg (line 1175) | static int rtp_sendmsg(ortp_socket_t sock, mblk_t *m, const struct socka...
  function ortp_socket_t (line 1292) | ortp_socket_t rtp_session_get_socket(RtpSession *session, bool_t is_rtp) {
  function _ortp_sendto (line 1296) | int _ortp_sendto(
  function rtp_session_sendto (line 1308) | int rtp_session_sendto(
  function ortp_recv_addr_t (line 1342) | static const ortp_recv_addr_t *lookup_recv_addr(RtpSession *session, str...
  function ortp_recv_addr_t (line 1360) | static const ortp_recv_addr_t *get_recv_addr(RtpSession *session, struct...
  function rtp_session_recvfrom (line 1399) | int rtp_session_recvfrom(
  function ortp_stream_update_sent_bytes (line 1432) | void ortp_stream_update_sent_bytes(OrtpStream *os, int nbytes) {
  function update_recv_bytes (line 1441) | static void update_recv_bytes(OrtpStream *os, size_t nbytes, const struc...
  function log_send_error (line 1447) | static void
  function rtp_session_rtp_sendto (line 1457) | static int
  function rtp_session_rtp_send (line 1502) | int rtp_session_rtp_send(RtpSession *session, mblk_t *m) {
  function rtp_session_rtcp_sendto (line 1532) | static int
  function rtp_session_rtcp_send (line 1579) | int rtp_session_rtcp_send(RtpSession *session, mblk_t *m) {
  function rtp_recvmsg (line 1611) | static int rtp_recvmsg(ortp_socket_t socket,
  type sockaddr (line 1636) | struct sockaddr
  type msghdr (line 1666) | struct msghdr
  type cmsghdr (line 1675) | struct cmsghdr
  type timeval (line 1680) | struct timeval
  type timeval (line 1680) | struct timeval
  type in_pktinfo (line 1685) | struct in_pktinfo
  type in_pktinfo (line 1685) | struct in_pktinfo
  type in6_pktinfo (line 1692) | struct in6_pktinfo
  type in6_pktinfo (line 1692) | struct in6_pktinfo
  type in_addr (line 1699) | struct in_addr
  type in_addr (line 1699) | struct in_addr
  type in6_addr (line 1706) | struct in6_addr
  type in6_addr (line 1706) | struct in6_addr
  function rtp_session_notify_inc_rtcp (line 1734) | void rtp_session_notify_inc_rtcp(RtpSession *session, mblk_t *m, bool_t ...
  function compute_rtt (line 1744) | static void compute_rtt(RtpSession *session, const struct timeval *now, ...
  function compute_rtt_from_report_block (line 1760) | static void compute_rtt_from_report_block(RtpSession *session, const str...
  function compute_rtcp_xr_statistics (line 1767) | static void compute_rtcp_xr_statistics(RtpSession *session, const mblk_t...
  function handle_rtcp_rtpfb_packet (line 1786) | static void handle_rtcp_rtpfb_packet(RtpSession *session, const mblk_t *...
  function process_rtcp_packet (line 1820) | static int process_rtcp_packet(RtpSession *session, mblk_t *block, struc...
  function reply_to_collaborative_rtcp_xr_packet (line 1915) | static void reply_to_collaborative_rtcp_xr_packet(RtpSession *session, m...
  function rtp_process_incoming_packet (line 1921) | static void rtp_process_incoming_packet(
  function rtp_session_process_incoming (line 1978) | void rtp_session_process_incoming(
  function mblk_t (line 1994) | static mblk_t *rtp_session_alloc_recv_block(RtpSession *session) {
  function rtp_session_recycle_recv_block (line 2011) | static void rtp_session_recycle_recv_block(RtpSession *session, mblk_t *...
  type sockaddr_storage (line 2042) | struct sockaddr_storage
  type sockaddr_storage (line 2056) | struct sockaddr_storage
  type sockaddr (line 2069) | struct sockaddr
  type sockaddr (line 2071) | struct sockaddr
  function rtp_session_rtp_recv (line 2129) | int rtp_session_rtp_recv(RtpSession *session, uint32_t user_ts) {
  function rtp_session_rtcp_recv (line 2194) | int rtp_session_rtcp_recv(RtpSession *session) {
  function rtp_session_update_remote_sock_addr (line 2268) | int rtp_session_update_remote_sock_addr(RtpSession *session, mblk_t *mp,...
  function rtp_session_use_local_addr (line 2323) | void rtp_session_use_local_addr(RtpSession *session, const char *rtp_loc...

FILE: src/rtpsession_priv.h
  type RtpSessionFlags (line 31) | typedef enum {
  type sockaddr (line 58) | struct sockaddr
  type sockaddr (line 70) | struct sockaddr

FILE: src/rtpsignaltable.c
  function rtp_signal_table_init (line 28) | void rtp_signal_table_init(RtpSignalTable *table, RtpSession *session, c...
  function rtp_signal_table_uninit (line 36) | void rtp_signal_table_uninit(RtpSignalTable *table) {
  function rtp_signal_table_add (line 40) | int rtp_signal_table_add(RtpSignalTable *table, RtpCallback cb, void *us...
  function rtp_signal_table_add_from_source_session (line 44) | int rtp_signal_table_add_from_source_session(RtpSignalTable *table,
  function rtp_signal_table_emit (line 66) | void rtp_signal_table_emit(RtpSignalTable *table) {
  function rtp_signal_table_emit2 (line 70) | void rtp_signal_table_emit2(RtpSignalTable *table, void *arg) {
  function rtp_signal_table_emit3 (line 74) | void rtp_signal_table_emit3(RtpSignalTable *table, void *arg1, void *arg...
  function rtp_signal_table_remove_by_callback (line 93) | int rtp_signal_table_remove_by_callback(RtpSignalTable *table, RtpCallba...
  function rtp_signal_table_remove_by_callback_and_user_data (line 97) | int rtp_signal_table_remove_by_callback_and_user_data(RtpSignalTable *ta...
  function rtp_signal_table_remove_by_source_session (line 118) | int rtp_signal_table_remove_by_source_session(RtpSignalTable *table, con...

FILE: src/rtptimer.c
  function rtp_timer_set_interval (line 24) | void rtp_timer_set_interval(RtpTimer *timer, struct timeval *interval) {

FILE: src/rtptimer.h
  type _RtpTimer (line 35) | struct _RtpTimer {
  type RtpTimer (line 45) | typedef struct _RtpTimer RtpTimer;
  type timeval (line 47) | struct timeval

FILE: src/scheduler.c
  function rtp_scheduler_init (line 31) | void rtp_scheduler_init(RtpScheduler *sched) {
  function RtpScheduler (line 51) | RtpScheduler *rtp_scheduler_new(void) {
  function rtp_scheduler_set_timer (line 58) | void rtp_scheduler_set_timer(RtpScheduler *sched, RtpTimer *timer) {
  function rtp_scheduler_start (line 68) | void rtp_scheduler_start(RtpScheduler *sched) {
  function rtp_scheduler_stop (line 77) | void rtp_scheduler_stop(RtpScheduler *sched) {
  function rtp_scheduler_destroy (line 84) | void rtp_scheduler_destroy(RtpScheduler *sched) {
  function rtp_scheduler_add_session (line 129) | void rtp_scheduler_add_session(RtpScheduler *sched, RtpSession *session) {
  function rtp_scheduler_remove_session (line 163) | void rtp_scheduler_remove_session(RtpScheduler *sched, RtpSession *sessi...

FILE: src/scheduler.h
  type _RtpScheduler (line 28) | struct _RtpScheduler {
  type RtpScheduler (line 50) | typedef struct _RtpScheduler RtpScheduler;

FILE: src/sessionset.c
  function SessionSet (line 30) | SessionSet *session_set_new(void) {
  function session_set_destroy (line 41) | void session_set_destroy(SessionSet *set) {
  function count_power_items_simple (line 45) | int count_power_items_simple(uint32_t v) {
  function count_power_items_fast (line 55) | int count_power_items_fast(uint32_t v) {
  function session_set_and (line 64) | int session_set_and(SessionSet *sched_set, int maxs, SessionSet *user_se...
  function session_set_select (line 107) | int session_set_select(SessionSet *recvs, SessionSet *sends, SessionSet ...
  function session_set_timedselect (line 157) | int session_set_timedselect(SessionSet *recvs, SessionSet *sends, Sessio...

FILE: src/str_utils.c
  function qinit (line 31) | void qinit(queue_t *q) {
  function mblk_init (line 38) | void mblk_init(mblk_t *mp) {
  function mblk_meta_copy (line 42) | void mblk_meta_copy(const mblk_t *source, mblk_t *dest) {
  function mblk_t (line 59) | mblk_t *allocb(size_t size, BCTBX_UNUSED(int pri)) {
  function mblk_t (line 72) | mblk_t *esballoc(uint8_t *buf, size_t size, BCTBX_UNUSED(int pri), void ...
  function freeb (line 85) | void freeb(mblk_t *mp) {
  function freemsg (line 93) | void freemsg(mblk_t *mp) {
  function mblk_t (line 103) | mblk_t *dupb(mblk_t *mp) {
  function mblk_t (line 118) | mblk_t *dupmsg(mblk_t *m) {
  function putq (line 131) | void putq(queue_t *q, mblk_t *mp) {
  function mblk_t (line 139) | mblk_t *getq(queue_t *q) {
  function mblk_t (line 151) | mblk_t *peekq(queue_t *q) {
  function insq (line 159) | void insq(queue_t *q, mblk_t *emp, mblk_t *mp) {
  function remq (line 171) | void remq(queue_t *q, mblk_t *mp) {
  function flushq (line 180) | void flushq(queue_t *q, BCTBX_UNUSED(int how)) {
  function msgdsize (line 188) | size_t msgdsize(const mblk_t *mp) {
  function msgpullup (line 197) | void msgpullup(mblk_t *mp, size_t len) {
  function msgpullup_with_insert (line 239) | void msgpullup_with_insert(mblk_t *mp, size_t offset, size_t insert_size) {
  function mblk_t (line 278) | mblk_t *copyb(const mblk_t *mp) {
  function mblk_t (line 288) | mblk_t *copymsg(const mblk_t *mp) {
  function mblk_t (line 300) | mblk_t *appendb(mblk_t *mp, const char *data, size_t size, bool_t pad) {
  function msgappend (line 323) | void msgappend(mblk_t *mp, const char *data, size_t size, bool_t pad) {
  function mblk_t (line 329) | mblk_t *concatb(mblk_t *mp, mblk_t *newm) {
  function msgb_allocator_init (line 338) | void msgb_allocator_init(msgb_allocator_t *a) {
  function msgb_allocator_set_max_blocks (line 343) | void msgb_allocator_set_max_blocks(msgb_allocator_t *pa, int max_blocks) {
  function msgb_allocator_free_db (line 347) | static void msgb_allocator_free_db(BCTBX_UNUSED(void *unused)) {
  function mblk_t (line 350) | mblk_t *msgb_allocator_alloc(msgb_allocator_t *a, size_t size) {
  function msgb_allocator_uninit (line 378) | void msgb_allocator_uninit(msgb_allocator_t *a) {
  function mblk_t (line 383) | mblk_t *msgown(mblk_t *mp) {
  function ortp_recvaddr_to_sockaddr (line 394) | void ortp_recvaddr_to_sockaddr(ortp_recv_addr_t *recvaddr, struct sockad...
  function ortp_sockaddr_to_recvaddr (line 411) | void ortp_sockaddr_to_recvaddr(const struct sockaddr *addr, ortp_recv_ad...

FILE: src/telephonyevents.c
  function rtp_session_telephone_events_supported (line 52) | int rtp_session_telephone_events_supported(RtpSession *session) {
  function bool_t (line 57) | bool_t rtp_profile_is_telephone_event(const RtpProfile *prof, int pt_num) {
  function rtp_session_send_telephone_events_supported (line 69) | int rtp_session_send_telephone_events_supported(RtpSession *session) {
  function rtp_session_recv_telephone_events_supported (line 81) | int rtp_session_recv_telephone_events_supported(RtpSession *session) {
  function mblk_t (line 98) | mblk_t *rtp_session_create_telephone_event_packet(RtpSession *session, i...
  function rtp_session_add_telephone_event (line 155) | int rtp_session_add_telephone_event(RtpSession *session,
  function rtp_session_send_dtmf (line 193) | int rtp_session_send_dtmf(RtpSession *session, char dtmf, uint32_t usert...
  function rtp_session_send_dtmf2 (line 207) | int rtp_session_send_dtmf2(RtpSession *session, char dtmf, uint32_t user...
  function rtp_session_read_telephone_event (line 320) | int rtp_session_read_telephone_event(RtpSession *session, mblk_t *packet...
  function notify_tev (line 338) | static void notify_tev(RtpSession *session, telephone_event_t *event) {
  function notify_events_ended (line 351) | static void notify_events_ended(RtpSession *session, telephone_event_t *...
  function rtp_session_check_telephone_events (line 361) | void rtp_session_check_telephone_events(RtpSession *session, mblk_t *m0) {

FILE: src/tests/fmtpparse.c
  function main (line 23) | int main(int argc, char *argv[]) {

FILE: src/tests/mrtprecv.c
  function stophandler (line 41) | void stophandler(int signum) {
  function rtp2disk (line 53) | int rtp2disk(RtpSession *session, uint32_t ts, int fd) {
  function main (line 71) | int main(int argc, char *argv[]) {

FILE: src/tests/mrtpsend.c
  function stophandler (line 36) | void stophandler(int signum) {
  function main (line 44) | int main(int argc, char *argv[]) {

FILE: src/tests/rtpmemtest.c
  function stophandler (line 42) | void stophandler(int signum) {
  function rtp2disk (line 51) | int rtp2disk(RtpSession *session, uint32_t ts, int fd) {
  function main (line 69) | int main(int argc, char *argv[]) {

FILE: src/tests/rtprecv.c
  function stop_handler (line 33) | void stop_handler(int signum) {
  function ssrc_cb (line 37) | void ssrc_cb(RtpSession *session) {
  function sound_init (line 51) | int sound_init(int format) {
  function sound_init (line 66) | int sound_init(int format) {
  function main (line 71) | int main(int argc, char *argv[]) {

FILE: src/tests/rtpsend.c
  function stophandler (line 33) | void stophandler(int signum) {
  function main (line 40) | int main(int argc, char *argv[]) {

FILE: src/tests/rtpsend_stupid.c
  function stophandler (line 36) | void stophandler(int signum) {
  function main (line 43) | int main(int argc, char *argv[]) {

FILE: src/tests/test_timer.c
  function main (line 24) | int main(int argc, char *argv[]) {

FILE: src/tests/tevmrtprecv.c
  function stophandler (line 45) | void stophandler(int signum) {
  function recv_tev_cb (line 61) | void recv_tev_cb(RtpSession *session, unsigned long type, unsigned long ...
  function rtp2disk (line 67) | int rtp2disk(RtpSession *session, uint32_t ts, int fd) {
  function main (line 85) | int main(int argc, char *argv[]) {

FILE: src/tests/tevrtprecv.c
  function stophandler (line 38) | void stophandler(int signum) {
  function recv_tev_cb (line 46) | void recv_tev_cb(RtpSession *session, unsigned long type, unsigned long ...
  function main (line 52) | int main(int argc, char *argv[]) {

FILE: src/tests/tevrtpsend.c
  function stophandler (line 35) | void stophandler(int signum) {
  function main (line 41) | int main(int argc, char *argv[]) {

FILE: src/tests/win_receiver/RTPReceiver.cpp
  function ProductVersion (line 34) | void ProductVersion() {
  function BOOL (line 50) | BOOL ctrlHandlerFunction(DWORD fdwCtrlType) {
  function rtp2disk (line 67) | int rtp2disk(RtpSession *session, uint32_t ts, FILE *fd) {
  function GetSystemInformation (line 89) | int GetSystemInformation() {
  function main (line 97) | int __cdecl main(int argc, char *argv[]) {

FILE: src/tests/win_sender/RTPSender.cpp
  function BOOL (line 48) | BOOL ctrlHandlerFunction(DWORD fdwCtrlType) {
  function GetCommandArguments (line 66) | int GetCommandArguments(int argc, char *argv[]) {
  function ProductVersion (line 117) | void ProductVersion() {
  function main (line 133) | int __cdecl main(int argc, char *argv[]) {

FILE: src/utils.c
  function ortp_timeval_to_ntp (line 28) | uint64_t ortp_timeval_to_ntp(const struct timeval *tv) {

FILE: src/utils.h
  type dwsplit_t (line 48) | typedef struct _dwsplit_t {
  type poly32_t (line 58) | typedef union {
  type timeval (line 81) | struct timeval
  type sockaddr (line 83) | struct sockaddr

FILE: src/videobandwidthestimator.cc
  type ortp (line 32) | namespace ortp {
    type VBEInProgressMeasurement (line 34) | struct VBEInProgressMeasurement {
      method reset (line 35) | void reset() {
      type timeval (line 43) | struct timeval
      type timeval (line 44) | struct timeval
    type VBEMeasurement (line 49) | struct VBEMeasurement {
    type VBEMeasurementGreater (line 53) | struct VBEMeasurementGreater {
    class VideoBandwidthEstimator (line 66) | class VideoBandwidthEstimator {
      method VideoBandwidthEstimator (line 68) | VideoBandwidthEstimator(RtpSession *session) : mSession(session) {
      method reset (line 71) | void reset() {
      method setMinPacketCount (line 77) | void setMinPacketCount(unsigned int count) {
      method getMinPacketCount (line 80) | unsigned int getMinPacketCount() const {
      method setTrustPercentage (line 83) | void setTrustPercentage(unsigned int trust) {
      method getTrustPercentage (line 86) | unsigned int getTrustPercentage() const {
      method setMinMeasurements (line 89) | void setMinMeasurements(unsigned int count) {
      method getMinMeasurements (line 93) | unsigned int getMinMeasurements() const {
      type timeval (line 97) | struct timeval
      method VideoBandwidthEstimator (line 98) | static VideoBandwidthEstimator *toCpp(OrtpVideoBandwidthEstimator *v...
      method VideoBandwidthEstimator (line 101) | static const VideoBandwidthEstimator *toCpp(const OrtpVideoBandwidth...
      type timeval (line 106) | struct timeval
      method periodElapsed (line 109) | bool periodElapsed(const struct timeval &now) {
      type timeval (line 120) | struct timeval
    type timeval (line 174) | struct timeval
    type timeval (line 189) | struct timeval
  function OrtpVideoBandwidthEstimator (line 213) | OrtpVideoBandwidthEstimator *ortp_video_bandwidth_estimator_new(RtpSessi...
  function ortp_video_bandwidth_estimator_destroy (line 218) | void ortp_video_bandwidth_estimator_destroy(OrtpVideoBandwidthEstimator ...
  function ortp_video_bandwidth_estimator_reset (line 222) | void ortp_video_bandwidth_estimator_reset(OrtpVideoBandwidthEstimator *v...
  function ortp_video_bandwidth_estimator_set_packets_count_min (line 226) | void ortp_video_bandwidth_estimator_set_packets_count_min(OrtpVideoBandw...
  function ortp_video_bandwidth_estimator_set_trust (line 230) | void ortp_video_bandwidth_estimator_set_trust(OrtpVideoBandwidthEstimato...
  function ortp_video_bandwidth_estimator_set_min_measurements_count (line 234) | void ortp_video_bandwidth_estimator_set_min_measurements_count(OrtpVideo...
  function ortp_video_bandwidth_estimator_get_packets_count_min (line 238) | unsigned int ortp_video_bandwidth_estimator_get_packets_count_min(OrtpVi...
  function ortp_video_bandwidth_estimator_get_min_measurements_count (line 242) | unsigned int ortp_video_bandwidth_estimator_get_min_measurements_count(c...
  function ortp_video_bandwidth_estimator_get_trust (line 246) | unsigned int ortp_video_bandwidth_estimator_get_trust(OrtpVideoBandwidth...
  function ortp_video_bandwidth_estimator_get_estimated_available_bandwidth (line 250) | float ortp_video_bandwidth_estimator_get_estimated_available_bandwidth(O...
  function ortp_video_bandwidth_estimator_process_packet (line 254) | void ortp_video_bandwidth_estimator_process_packet(OrtpVideoBandwidthEst...

FILE: src/videobandwidthestimator.h
  type OrtpVideoBandwidthEstimator (line 28) | typedef struct _OrtpVideoBandwidthEstimator OrtpVideoBandwidthEstimator;
  type _RtpSession (line 34) | struct _RtpSession
  type timeval (line 80) | struct timeval

FILE: src/winrttimer.cpp
  class WinRTTimer (line 34) | class WinRTTimer {
  function winrt_timer_init (line 85) | void winrt_timer_init(void) {
  function winrt_timer_do (line 89) | void winrt_timer_do(void) {
  function winrt_timer_close (line 93) | void winrt_timer_close(void) {

FILE: tester/bundle_tester.cc
  function add_sessions (line 28) | static void add_sessions() {
  function primary_change (line 64) | static void primary_change() {
  function dispatch_packet (line 87) | static void dispatch_packet() {
  function dispatch_packet_without_mid (line 149) | static void dispatch_packet_without_mid() {
  function dispatch_rtcp_packet_with_referred_ssrc_assigned_base (line 198) | static void dispatch_rtcp_packet_with_referred_ssrc_assigned_base(bool a...
  function dispatch_rtcp_packet_with_referred_ssrc_assigned (line 269) | static void dispatch_rtcp_packet_with_referred_ssrc_assigned() {
  function dispatch_rtcp_packet_with_referred_ssrc_unassigned (line 273) | static void dispatch_rtcp_packet_with_referred_ssrc_unassigned() {
  function on_incoming_ssrc_in_bundle (line 277) | static void on_incoming_ssrc_in_bundle(BCTBX_UNUSED(RtpSession *session)...
  function dispatch_new_ssrc_with_incoming_callback_set (line 293) | static void dispatch_new_ssrc_with_incoming_callback_set() {
  function look_out_for_outgoing_session (line 333) | static void look_out_for_outgoing_session() {
  function on_outgoing_ssrc_in_bundle (line 356) | static void on_outgoing_ssrc_in_bundle(BCTBX_UNUSED(RtpSession *session)...
  function look_out_for_outgoing_session_with_outgoing_callback_set (line 372) | static void look_out_for_outgoing_session_with_outgoing_callback_set() {

FILE: tester/extension_header_tester.c
  function tester_before_all (line 38) | static int tester_before_all(void) {
  function tester_after_all (line 66) | static int tester_after_all(void) {
  function tester_before_each (line 86) | static void tester_before_each(void) {
  function insert_extension_header_into_packet_base (line 104) | static void insert_extension_header_into_packet_base(uint8_t with_payloa...
  function insert_extension_header_into_packet (line 174) | static void insert_extension_header_into_packet(void) {
  function insert_extension_header_into_packet_with_payload (line 178) | static void insert_extension_header_into_packet_with_payload(void) {
  function insert_extension_header_into_packet_with_detached_payload (line 182) | static void insert_extension_header_into_packet_with_detached_payload(vo...
  function insert_extension_header_into_packet_in_bundled_session (line 186) | static void insert_extension_header_into_packet_in_bundled_session(void) {
  function insert_extension_header_into_packet_with_payload_in_bundled_session (line 189) | static void insert_extension_header_into_packet_with_payload_in_bundled_...
  function insert_extension_header_into_packet_with_detached_payload_in_bundled_session (line 192) | static void insert_extension_header_into_packet_with_detached_payload_in...
  function insert_extension_header_into_packet_in_csrc_session (line 196) | static void insert_extension_header_into_packet_in_csrc_session(void) {
  function insert_extension_header_into_packet_with_payload_in_csrc_session (line 199) | static void insert_extension_header_into_packet_with_payload_in_csrc_ses...
  function insert_extension_header_into_packet_with_detached_payload_in_csrc_session (line 202) | static void insert_extension_header_into_packet_with_detached_payload_in...
  function insert_extension_header_into_packet_in_csrc_bundled_session (line 206) | static void insert_extension_header_into_packet_in_csrc_bundled_session(...
  function insert_extension_header_into_packet_with_payload_in_csrc_bundled_session (line 209) | static void insert_extension_header_into_packet_with_payload_in_csrc_bun...
  function insert_extension_header_into_packet_with_detached_payload_in_csrc_bundled_session (line 212) | static void insert_extension_header_into_packet_with_detached_payload_in...
  function insert_multiple_extension_headers_into_packet_base (line 216) | static void insert_multiple_extension_headers_into_packet_base(uint8_t w...
  function insert_multiple_extension_headers_into_packet (line 317) | static void insert_multiple_extension_headers_into_packet(void) {
  function insert_multiple_extension_headers_into_packet_with_payload (line 320) | static void insert_multiple_extension_headers_into_packet_with_payload(v...
  function insert_multiple_extension_headers_into_packet_with_detached_payload (line 323) | static void insert_multiple_extension_headers_into_packet_with_detached_...
  function insert_multiple_extension_headers_into_packet_in_bundled_session (line 327) | static void insert_multiple_extension_headers_into_packet_in_bundled_ses...
  function insert_multiple_extension_headers_into_packet_with_payload_in_bundled_session (line 330) | static void insert_multiple_extension_headers_into_packet_with_payload_i...
  function insert_multiple_extension_headers_into_packet_with_detached_payload_in_bundled_session (line 333) | static void insert_multiple_extension_headers_into_packet_with_detached_...
  function insert_multiple_extension_headers_into_packet_in_csrc_session (line 337) | static void insert_multiple_extension_headers_into_packet_in_csrc_sessio...
  function insert_multiple_extension_headers_into_packet_with_payload_in_csrc_session (line 340) | static void insert_multiple_extension_headers_into_packet_with_payload_i...
  function insert_multiple_extension_headers_into_packet_with_detached_payload_in_csrc_session (line 343) | static void insert_multiple_extension_headers_into_packet_with_detached_...
  function insert_multiple_extension_headers_into_packet_in_csrc_bundled_session (line 347) | static void insert_multiple_extension_headers_into_packet_in_csrc_bundle...
  function insert_multiple_extension_headers_into_packet_with_payload_in_csrc_bundled_session (line 350) | static void insert_multiple_extension_headers_into_packet_with_payload_i...
  function insert_multiple_extension_headers_into_packet_with_detached_payload_in_csrc_bundled_session (line 353) | static void insert_multiple_extension_headers_into_packet_with_detached_...
  function insert_client_to_mixer_into_packet_base (line 357) | static void insert_client_to_mixer_into_packet_base(uint8_t with_payload...
  function insert_client_to_mixer_into_packet (line 424) | static void insert_client_to_mixer_into_packet(void) {
  function insert_client_to_mixer_into_packet_with_payload (line 427) | static void insert_client_to_mixer_into_packet_with_payload(void) {
  function insert_client_to_mixer_into_packet_with_detached_payload (line 430) | static void insert_client_to_mixer_into_packet_with_detached_payload(voi...
  function insert_client_to_mixer_into_packet_in_bundled_session (line 434) | static void insert_client_to_mixer_into_packet_in_bundled_session(void) {
  function insert_client_to_mixer_into_packet_with_payload_in_bundled_session (line 437) | static void insert_client_to_mixer_into_packet_with_payload_in_bundled_s...
  function insert_client_to_mixer_into_packet_with_detached_payload_in_bundled_session (line 440) | static void insert_client_to_mixer_into_packet_with_detached_payload_in_...
  function insert_client_to_mixer_into_packet_in_csrc_session (line 444) | static void insert_client_to_mixer_into_packet_in_csrc_session(void) {
  function insert_client_to_mixer_into_packet_with_payload_in_csrc_session (line 447) | static void insert_client_to_mixer_into_packet_with_payload_in_csrc_sess...
  function insert_client_to_mixer_into_packet_with_detached_payload_in_csrc_session (line 450) | static void insert_client_to_mixer_into_packet_with_detached_payload_in_...
  function insert_client_to_mixer_into_packet_in_csrc_bundled_session (line 454) | static void insert_client_to_mixer_into_packet_in_csrc_bundled_session(v...
  function insert_client_to_mixer_into_packet_with_payload_in_csrc_bundled_session (line 457) | static void insert_client_to_mixer_into_packet_with_payload_in_csrc_bund...
  function insert_client_to_mixer_into_packet_with_detached_payload_in_csrc_bundled_session (line 460) | static void insert_client_to_mixer_into_packet_with_detached_payload_in_...
  function insert_mixer_to_client_into_packet_base (line 464) | static void
  function insert_mixer_to_client_into_packet (line 526) | static void insert_mixer_to_client_into_packet(void) {
  function insert_mixer_to_client_into_packet_with_payload (line 529) | static void insert_mixer_to_client_into_packet_with_payload(void) {
  function insert_mixer_to_client_into_packet_in_bundled_session (line 532) | static void insert_mixer_to_client_into_packet_in_bundled_session(void) {
  function insert_mixer_to_client_into_packet_with_payload_in_bundled_session (line 535) | static void insert_mixer_to_client_into_packet_with_payload_in_bundled_s...
  function insert_mixer_to_client_into_packet_use_create_with_mixer (line 539) | static void insert_mixer_to_client_into_packet_use_create_with_mixer(voi...
  function insert_mixer_to_client_into_packet_with_payload_use_create_with_mixer (line 542) | static void insert_mixer_to_client_into_packet_with_payload_use_create_w...
  function insert_mixer_to_client_into_packet_in_bundled_session_use_create_with_mixer (line 545) | static void insert_mixer_to_client_into_packet_in_bundled_session_use_cr...
  function insert_mixer_to_client_into_packet_with_payload_in_bundled_session_use_create_with_mixer (line 548) | static void insert_mixer_to_client_into_packet_with_payload_in_bundled_s...
  function insert_frame_marking_into_packet_base (line 552) | static void insert_frame_marking_into_packet_base(BCTBX_UNUSED(bool_t wi...
  function insert_frame_marking_into_packet (line 573) | static void insert_frame_marking_into_packet(void) {
  function insert_frame_marking_into_packet_with_payload (line 576) | static void insert_frame_marking_into_packet_with_payload(void) {
  function insert_frame_marking_into_packet_in_bundled_session (line 579) | static void insert_frame_marking_into_packet_in_bundled_session(void) {
  function insert_frame_marking_into_packet_with_payload_in_bundled_session (line 582) | static void insert_frame_marking_into_packet_with_payload_in_bundled_ses...
  function padding_test (line 586) | static void padding_test(void) {
  function create_packet_with_payload_in_bundled_session (line 671) | static void create_packet_with_payload_in_bundled_session(void) {
  function remap_extension_header_ids_from_packet (line 718) | static void remap_extension_header_ids_from_packet(void) {
  function add_existing_extensions_to_packet (line 765) | static void add_existing_extensions_to_packet(void) {

FILE: tester/fec_tester.cc
  function mblk_t (line 9) | static mblk_t *
  function bool_t (line 20) | static bool_t compare_sizes(mblk_t *ma, mblk_t *mb) {
  function bool_t (line 26) | static bool_t compare_header_fields(mblk_t *ma, mblk_t *mb) {
  function bool_t (line 37) | static bool_t compare_csrc_fields(mblk_t *ma, mblk_t *mb) {
  function bool_t (line 46) | static bool_t compare_ext_headers(mblk_t *ma, mblk_t *mb) {
  function bool_t (line 65) | static bool_t compare_payloads(mblk_t *ma, mblk_t *mb) {
  function bool_t (line 77) | static bool_t packets_are_equals(mblk_t *ma, mblk_t *mb) {
  function fec_params_update_test (line 86) | static void fec_params_update_test(void) {

FILE: tester/ortp_tester.c
  function log_handler (line 29) | static void log_handler(int lev, const char *fmt, va_list args) {
  function ortp_tester_set_log_file (line 47) | int ortp_tester_set_log_file(const char *filename) {
  function silent_arg_func (line 76) | int silent_arg_func(BCTBX_UNUSED(const char *arg)) {
  function verbose_arg_func (line 82) | int verbose_arg_func(BCTBX_UNUSED(const char *arg)) {
  function logfile_arg_func (line 88) | int logfile_arg_func(const char *arg) {
  function ortp_tester_init (line 93) | void ortp_tester_init(void (*ftester_printf)(int level, const char *fmt,...
  function ortp_tester_uninit (line 106) | void ortp_tester_uninit(void) {
  function main (line 117) | int main(int argc, char *argv[]) {

FILE: tester/ortp_tester_utils.cc
  function bool_t (line 29) | bool_t ortp_tester_is_executable_installed(const char *executable, const...
  function mblk_t (line 33) | mblk_t *ortp_tester_make_dummy_rtcp_fb_pli(RtpSession *session) {
  function rtcp_sr_init (line 53) | static size_t rtcp_sr_init(RtpSession *session, uint8_t *buf, size_t siz...
  function mblk_t (line 62) | mblk_t *ortp_tester_make_dummy_sr(RtpSession *session) {

FILE: tester/rtp_tester.c
  function tester_before_all (line 24) | static int tester_before_all(void) {
  function tester_after_all (line 30) | static int tester_after_all(void) {
  function send_packets_through_tranfer_session (line 36) | static void send_packets_through_tranfer_session(void) {
  function change_remote_address (line 155) | static void change_remote_address(void) {
Condensed preview — 167 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (1,393K chars).
[
  {
    "path": ".clang-format",
    "chars": 1102,
    "preview": "# Copyright (c) 2010-2023 Belledonne Communications SARL.\n#\n# This program is free software: you can redistribute it and"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.yml",
    "chars": 5946,
    "preview": "---\nname: Bug report\ndescription: File a bug/issue\ntitle: \"[Bug]: \"\nlabels: [\"bug\"]\n\nbody:\n- type: markdown\n  attributes"
  },
  {
    "path": ".gitignore",
    "chars": 347,
    "preview": "INSTALL\n*.o\n*.lo\n*.la\nconfigure\nMakefile.in\nmissing\nltmain.sh\nlibtool\nMakefile\n.libs\naclocal.m4\nconfig.guess\nconfig.stat"
  },
  {
    "path": "AUTHORS.md",
    "chars": 1041,
    "preview": "- Simon MORLAT (simon dot morlat at linphone dot org) is the original author the oRTP library.\n\n## Contributors:\n\n* Copy"
  },
  {
    "path": "CHANGELOG.md",
    "chars": 5372,
    "preview": "# Changelog\nAll notable changes to this project will be documented in this file.\n\nThe format is based on [Keep a Changel"
  },
  {
    "path": "CMakeLists.txt",
    "chars": 7446,
    "preview": "############################################################################\n# Copyright (c) 2010-2023 Belledonne Commun"
  },
  {
    "path": "LICENSE.txt",
    "chars": 34523,
    "preview": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 2007\n\n Copyright (C)"
  },
  {
    "path": "Makefile.am",
    "chars": 2609,
    "preview": "# linphone/oRTP/Makefile.am -- \n\nACLOCAL_AMFLAGS = -I m4 $(ACLOCAL_MACOS_FLAGS)\n\nEXTRA_DIST = \\\n\toRTP.prj \\\n\tortp-config"
  },
  {
    "path": "README.md",
    "chars": 3522,
    "preview": "**CAUTION: this git repository is no longer updated. The project has been merged into the linphone-sdk ([Gitlab](https:/"
  },
  {
    "path": "autogen.sh",
    "chars": 2092,
    "preview": "#!/bin/sh\n##\n## Copyright (c) 2010-2022 Belledonne Communications SARL.\n##\n## This file is part of oRTP \n## (see https:/"
  },
  {
    "path": "build/.gitignore",
    "chars": 21,
    "preview": "Makefile\nMakefile.in\n"
  },
  {
    "path": "build/CMakeLists.txt",
    "chars": 1170,
    "preview": "############################################################################\n# Copyright (c) 2010-2023 Belledonne Commun"
  },
  {
    "path": "build/Makefile.am",
    "chars": 138,
    "preview": "EXTRA_DIST=android/Android.mk android/ortp_AndroidConfig.h wp8/oRTP/oRTP.sln wp8/oRTP/inttypes.h wp8/oRTP/oRTP.vcxproj w"
  },
  {
    "path": "build/android/Android.mk",
    "chars": 1853,
    "preview": "##\n## Android.mk -Android build script-\n##\n##\n## Copyright (C) 2010  Belledonne Communications, Grenoble, France\n##\n##  "
  },
  {
    "path": "build/android/ortp_AndroidConfig.h",
    "chars": 4590,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "build/osx/Info.plist.in",
    "chars": 1429,
    "preview": "\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple Computer//DTD PLIST 1.0//EN\" \"http://www.apple."
  },
  {
    "path": "build/rpm/ortp.spec.cmake",
    "chars": 3804,
    "preview": "# -*- rpm-spec -*-\n#\n# ortp -- Real-time Transport Protocol Stack\n#\n# Default is optimized for Pentium IV but will execu"
  },
  {
    "path": "build/wp8/oRTP/inttypes.h",
    "chars": 7391,
    "preview": "// ISO C9x  compliant inttypes.h for Microsoft Visual Studio\n// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) "
  },
  {
    "path": "build/wp8/oRTP/oRTP.sln",
    "chars": 1997,
    "preview": "\nMicrosoft Visual Studio Solution File, Format Version 12.00\n# Visual Studio Express 2012 for Windows Phone\nProject(\"{8"
  },
  {
    "path": "build/wp8/oRTP/oRTP.vcxproj",
    "chars": 7944,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\r\n<Project DefaultTargets=\"Build\" ToolsVersion=\"4.0\" xmlns=\"http://schemas.micros"
  },
  {
    "path": "build/wp8/oRTP/stdint.h",
    "chars": 7511,
    "preview": "// ISO C9x  compliant stdint.h for Microsoft Visual Studio\n// Based on ISO/IEC 9899:TC2 Committee draft (May 6, 2005) WG"
  },
  {
    "path": "cmake/OrtpConfig.cmake.in",
    "chars": 1679,
    "preview": "############################################################################\n# OrtpConfig.cmake.in\n# Copyright (C) 2015-"
  },
  {
    "path": "configure.ac",
    "chars": 11132,
    "preview": "dnl Process this file with autoconf to produce a configure script.\nAC_INIT([ortp],[1.0.1])\nAC_CANONICAL_SYSTEM\n\ncase $IN"
  },
  {
    "path": "debian/changelog",
    "chars": 1448,
    "preview": "ortp (1.0.0) unstable; urgency=low\n  * oRTP license is changed to be GPLv2\n  * new adaptive jitter buffer algorithm adde"
  },
  {
    "path": "debian/compat",
    "chars": 2,
    "preview": "8\n"
  },
  {
    "path": "debian/control",
    "chars": 2038,
    "preview": "Source: ortp\nSection: sound\nPriority: optional\nMaintainer: Debian VoIP Team <pkg-voip-maintainers@lists.alioth.debian.or"
  },
  {
    "path": "debian/copyright",
    "chars": 3429,
    "preview": "This package was debianized by Samuel Mimram <samuel.mimram@ens-lyon.org> on\nWed, 30 Jun 2004 13:58:16 +0200.\n\nIt was do"
  },
  {
    "path": "debian/libortp-dev.docs",
    "chars": 27,
    "preview": "usr/share/doc/ortp-*/html/\n"
  },
  {
    "path": "debian/libortp-dev.install",
    "chars": 120,
    "preview": "usr/include/ortp/*.h\nusr/lib/libortp.so\nusr/lib/pkgconfig/ortp.pc\nusr/share/doc/ortp-*/html usr/share/doc/libortp13-dev\n"
  },
  {
    "path": "debian/libortp13.docs",
    "chars": 18,
    "preview": "AUTHORS\nREADME.md\n"
  },
  {
    "path": "debian/libortp13.install",
    "chars": 21,
    "preview": "usr/lib/libortp.so.*\n"
  },
  {
    "path": "debian/rules",
    "chars": 360,
    "preview": "#!/usr/bin/make -f\n\n%:\n\tdh $@ --parallel --with autotools_dev\n\noverride_dh_auto_configure:\n\t./configure --prefix=/usr --"
  },
  {
    "path": "debian/source/format",
    "chars": 13,
    "preview": "3.0 (native)\n"
  },
  {
    "path": "debian/source/options",
    "chars": 117,
    "preview": "# Don't store changes on autogenerated files\nextend-diff-ignore = \"(^|/)(config\\.sub|config\\.guess|Makefile|m4/.*)$\"\n"
  },
  {
    "path": "debian/watch",
    "chars": 134,
    "preview": "version=3\n\nhttp://download.savannah.gnu.org/releases-noredirect/linphone/stable/sources/ linphone-([\\d\\.]+).tar.gz debia"
  },
  {
    "path": "docs/.gitignore",
    "chars": 21,
    "preview": "Makefile\nMakefile.in\n"
  },
  {
    "path": "include/.gitignore",
    "chars": 21,
    "preview": "Makefile\nMakefile.in\n"
  },
  {
    "path": "include/CMakeLists.txt",
    "chars": 1595,
    "preview": "############################################################################\n# Copyright (c) 2010-2022 Belledonne Commun"
  },
  {
    "path": "include/MSVC/inttypes.h",
    "chars": 8211,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/MSVC/stdint.h",
    "chars": 8331,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/Makefile.am",
    "chars": 13,
    "preview": "SUBDIRS=ortp\n"
  },
  {
    "path": "include/ortp/.gitignore",
    "chars": 21,
    "preview": "Makefile\nMakefile.in\n"
  },
  {
    "path": "include/ortp/Makefile.am",
    "chars": 280,
    "preview": "ortp_includedir=$(includedir)/ortp\n\nortp_include_HEADERS=str_utils.h rtpsession.h rtp.h port.h logging.h nack.h \\\n\t\t\t\t\to"
  },
  {
    "path": "include/ortp/event.h",
    "chars": 7534,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/logging.h",
    "chars": 4044,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/nack.h",
    "chars": 1784,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/ortp.h",
    "chars": 2902,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/payloadtype.h",
    "chars": 8295,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/port.h",
    "chars": 9409,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/rtcp.h",
    "chars": 23329,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/rtp.h",
    "chars": 8448,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/rtpprofile.h",
    "chars": 3787,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/rtpsession.h",
    "chars": 52206,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/rtpsignaltable.h",
    "chars": 2698,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/sessionset.h",
    "chars": 4274,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/str_utils.h",
    "chars": 8780,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/telephonyevents.h",
    "chars": 3092,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "include/ortp/utils.h",
    "chars": 3605,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "m4/Makefile.am",
    "chars": 26,
    "preview": "EXTRA_DIST=\\\n\tobsolete.m4\n"
  },
  {
    "path": "m4/ld-output-def.m4",
    "chars": 1061,
    "preview": "# ld-output-def.m4 serial 2\ndnl Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.\ndnl This file is free soft"
  },
  {
    "path": "m4/obsolete.m4",
    "chars": 53,
    "preview": "AC_DEFUN([AM_PROG_MKDIR_P], [AC_PROG_MKDIR_P([$@])])\n"
  },
  {
    "path": "oRTP.prj",
    "chars": 4403,
    "preview": "# Anjuta Version 1.1.97 \nCompatibility Level: 1 \n\n<PROJECT_DESCRIPTION_START>\nSome description<PROJECT_DESCRIPTION_END>\n"
  },
  {
    "path": "oRTP.pws",
    "chars": 852,
    "preview": "\n[executer]\nRunInTerminal=true\n\n[Project DBase]\nShowLocals=true\n\n[filenumbers]\n0=1846\n1=270\n2=1\n3=34\n4=43\n5=1\n6=4\n7=27\n8"
  },
  {
    "path": "ortp-config.h.cmake",
    "chars": 1768,
    "preview": "/***************************************************************************\n* config.h.cmake\n* Copyright (C) 2014  Bell"
  },
  {
    "path": "ortp.doxygen.in",
    "chars": 105375,
    "preview": "# Doxyfile 1.8.11\n\n# This file describes the settings to be used by the documentation system\n# doxygen (www.doxygen.org)"
  },
  {
    "path": "ortp.pc.in",
    "chars": 310,
    "preview": "# This is a comment\nprefix=@prefix@\nexec_prefix=@exec_prefix@\nincludedir=@includedir@\n\nName: oRTP \nDescription: Implemen"
  },
  {
    "path": "ortp.spec.in",
    "chars": 3319,
    "preview": "# -*- rpm-spec -*-\n#\n# ortp -- Real-time Transport Protocol Stack\n#\n# Default is optimized for Pentium IV but will execu"
  },
  {
    "path": "pkg.list",
    "chars": 721,
    "preview": "# -*- rpm-spec -*- ############################################################\n# \n# EPM list file.  See epm(1) and epm."
  },
  {
    "path": "src/.gitignore",
    "chars": 139,
    "preview": "*.lo\n.deps\n.libs\nMakefile\nMakefile.in\nlibortp.la\nmrtprecv\nmrtpsend\nrtpmemtest\nrtprecv\nrtpsend\ntest_timer\ntevmrtprecv\ntev"
  },
  {
    "path": "src/CMakeLists.txt",
    "chars": 4603,
    "preview": "############################################################################\n# Copyright (c) 2010-2023 Belledonne Commun"
  },
  {
    "path": "src/Makefile.am",
    "chars": 1680,
    "preview": "\nEXTRA_DIST=dll_entry.c winrttimer.cpp winrttimer.h\n\nAM_CPPFLAGS=\\\n\t$(STRICT_OPTIONS) \\\n\t$(STRICT_OPTIONS_CXX) \\\n\t-I$(to"
  },
  {
    "path": "src/audiobandwidthestimator.c",
    "chars": 11365,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/audiobandwidthestimator.h",
    "chars": 4505,
    "preview": "/*\n * Copyright (c) 2010-2023 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/avprofile.c",
    "chars": 27607,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/bandwidth-measurer.cc",
    "chars": 4318,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/congestiondetector.c",
    "chars": 8190,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/congestiondetector.h",
    "chars": 1850,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/dblk.cc",
    "chars": 2215,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/dll_entry.c",
    "chars": 5541,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/event.c",
    "chars": 5469,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/extremum.c",
    "chars": 2539,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-encoder.cpp",
    "chars": 4787,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-encoder.h",
    "chars": 10471,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-packets-connection.cpp",
    "chars": 5361,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-packets-connection.h",
    "chars": 11224,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-params.cpp",
    "chars": 7601,
    "preview": "#include \"fec-params.h\"\n#include \"ortp/logging.h\"\n\n/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * T"
  },
  {
    "path": "src/fecstream/fec-params.h",
    "chars": 13537,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-stream-stats.cc",
    "chars": 11518,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fec-stream-stats.h",
    "chars": 3362,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fecstream.cc",
    "chars": 12324,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/fecstream.h",
    "chars": 2788,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/overhead.cpp",
    "chars": 2585,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/overhead.h",
    "chars": 4962,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/packet-api.cpp",
    "chars": 9292,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/packet-api.h",
    "chars": 3990,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/receive-cluster.cpp",
    "chars": 6755,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/fecstream/receive-cluster.h",
    "chars": 7718,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/jitterctl.c",
    "chars": 13629,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/jitterctl.h",
    "chars": 2068,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/kalmanrls.c",
    "chars": 2006,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/logging.c",
    "chars": 1146,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/master",
    "chars": 488,
    "preview": "*############################################################\n*#\n*# $Header: /sources/linphone/linphone/oRTP/src/master,"
  },
  {
    "path": "src/nack.c",
    "chars": 10125,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/netsim.c",
    "chars": 18199,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/ortp.c",
    "chars": 9958,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/payloadtype.c",
    "chars": 6308,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/port.c",
    "chars": 2314,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/posixtimer.c",
    "chars": 7638,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtcp.c",
    "chars": 30932,
    "preview": "/*\n * Copyright (c) 2004-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtcp_fb.c",
    "chars": 18935,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtcp_xr.c",
    "chars": 12583,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtcpparse.c",
    "chars": 24285,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpaudiolevel.c",
    "chars": 5595,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpbundle.cc",
    "chars": 23237,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpbundle.h",
    "chars": 3620,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpframemarking.c",
    "chars": 1809,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpparse.c",
    "chars": 15305,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpprofile.c",
    "chars": 6299,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpsession.c",
    "chars": 126367,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpsession_inet.c",
    "chars": 87506,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpsession_priv.h",
    "chars": 5608,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtpsignaltable.c",
    "chars": 4388,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtptimer.c",
    "chars": 1158,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/rtptimer.h",
    "chars": 1404,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/scheduler.c",
    "chars": 6584,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/scheduler.h",
    "chars": 2542,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/sessionset.c",
    "chars": 7021,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/str_utils.c",
    "chars": 11291,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/telephonyevents.c",
    "chars": 13912,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/.gitignore",
    "chars": 148,
    "preview": "Makefile\nMakefile.in\n.deps\n.libs\n*.lo\n*.la\nmrtprecv\nmrtpsend\nrtpmemtest\nrtprecv\nrtpsend\ntest_timer\ntevmrtprecv\ntevrtprec"
  },
  {
    "path": "src/tests/CMakeLists.txt",
    "chars": 1575,
    "preview": "############################################################################\n# Copyright (c) 2010-2022 Belledonne Commun"
  },
  {
    "path": "src/tests/Makefile.am",
    "chars": 708,
    "preview": "SUBDIRS=win_receiver win_sender\n\nif ENABLE_TESTS\n\nnoinst_PROGRAMS=rtpsend rtprecv mrtpsend mrtprecv test_timer rtpmemtes"
  },
  {
    "path": "src/tests/fmtpparse.c",
    "chars": 1160,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/mrtprecv.c",
    "chars": 4299,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/mrtpsend.c",
    "chars": 4206,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/rtpmemtest.c",
    "chars": 3854,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/rtprecv.c",
    "chars": 4567,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/rtpsend.c",
    "chars": 3279,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/rtpsend_stupid.c",
    "chars": 3554,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/test_timer.c",
    "chars": 1209,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/tevmrtprecv.c",
    "chars": 4690,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/tevrtprecv.c",
    "chars": 2859,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/tevrtpsend.c",
    "chars": 2584,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/win_receiver/.gitignore",
    "chars": 21,
    "preview": "Makefile.in\nMakefile\n"
  },
  {
    "path": "src/tests/win_receiver/Makefile.am",
    "chars": 47,
    "preview": "EXTRA_DIST=RTPReceiver.cpp RTPReceiver.vcproj\n\n"
  },
  {
    "path": "src/tests/win_receiver/RTPReceiver.cpp",
    "chars": 5615,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/win_receiver/RTPReceiver.vcproj",
    "chars": 5002,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<VisualStudioProject\n\tProjectType=\"Visual C++\"\n\tVersion=\"8.00\"\n\tName=\"RTPR"
  },
  {
    "path": "src/tests/win_sender/.gitignore",
    "chars": 21,
    "preview": "Makefile.in\nMakefile\n"
  },
  {
    "path": "src/tests/win_sender/Makefile.am",
    "chars": 43,
    "preview": "EXTRA_DIST=RTPSender.cpp RTPSender.vcproj\n\n"
  },
  {
    "path": "src/tests/win_sender/RTPSender.cpp",
    "chars": 6268,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/tests/win_sender/RTPSender.vcproj",
    "chars": 4990,
    "preview": "<?xml version=\"1.0\" encoding=\"Windows-1252\"?>\n<VisualStudioProject\n\tProjectType=\"Visual C++\"\n\tVersion=\"8.00\"\n\tName=\"RTPS"
  },
  {
    "path": "src/utils.c",
    "chars": 1247,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/utils.h",
    "chars": 2519,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/videobandwidthestimator.cc",
    "chars": 9799,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/videobandwidthestimator.h",
    "chars": 3392,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/winrttimer.cpp",
    "chars": 2694,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "src/winrttimer.h",
    "chars": 1041,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "tester/CMakeLists.txt",
    "chars": 3466,
    "preview": "############################################################################\n# Copyright (c) 2010-2023 Belledonne Commun"
  },
  {
    "path": "tester/bundle_tester.cc",
    "chars": 15763,
    "preview": "/*\n * Copyright (c) 2010-2024 Belledonne Communications SARL.\n *\n * This file is part of ortp\n * (see https://gitlab.lin"
  },
  {
    "path": "tester/extension_header_tester.c",
    "chars": 40463,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP.\n *\n * This program is fre"
  },
  {
    "path": "tester/fec_tester.cc",
    "chars": 66067,
    "preview": "\n#include \"fecstream/fec-stream-stats.h\"\n#include \"fecstream/fecstream.h\"\n#include \"ortp_tester.h\"\n#include <numeric>\n\nu"
  },
  {
    "path": "tester/ortp_tester.c",
    "chars": 4213,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "tester/ortp_tester.h",
    "chars": 1336,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "tester/ortp_tester_utils.cc",
    "chars": 2629,
    "preview": "/*\n * Copyright (c) 2010-2023 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "tester/ortp_tester_utils.h",
    "chars": 1214,
    "preview": "/*\n * Copyright (c) 2010-2023 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  },
  {
    "path": "tester/rtp_tester.c",
    "chars": 11954,
    "preview": "/*\n * Copyright (c) 2010-2022 Belledonne Communications SARL.\n *\n * This file is part of oRTP\n * (see https://gitlab.lin"
  }
]

// ... and 1 more files (download for full content)

About this extraction

This page contains the full source code of the BelledonneCommunications/ortp GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 167 files (1.3 MB), approximately 362.7k tokens, and a symbol index with 1144 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!