RFC4040_RTP_PLEN was previously defined privately in OsmoBTS and in trau_rtp_conv.c module in this library, but there was no official definition in any of Osmocom headers. Add <osmocom/trau/clearmode.h> header with OSMO_CLEARMODE_20MS definition.
Commit
cd0e9fb8283ea22225ef591b2903821981f899cf
by falcon
trau: factor out V.110 frame conversion functions
Implementation of CSD conversion between TRAU frames and CLEARMODE inside osmo_trau2rtp() and osmo_rtp2trau() contains lower-level functions for conversion of individual V.110 frames and for alignment checking. Factor these functions out into API, as they are useful for other applications besides TRAU<->RTP conversion:
* Compression and decompression functions that convert between standard (but inefficient) CLEARMODE and compressed-CSD RTP format of TW-TS-007;
* Implementations of IWFs that terminate CSD RTP streams at the CN and support both CLEARMODE and TW-TS-007.
Commit
f9985a2484cde2d7c96b07240f0eadc24280e811
by falcon
trau_rtp_conv: use factored-out V.110 functions
In the previous patch we factored out V.110 frame conversion functions into API. Now use these new API functions in the implementation of osmo_trau2rtp() and osmo_rtp2trau().
Commit
1de73c736b97956664ebf010011c7251fbf7fc60
by falcon
trau: add TW-TS-007 packing and unpacking functions
TW-TS-007 packing and unpacking functions in <osmocom/trau/twts007.h> are symmetric, as much as feasible, with their CLEARMODE counterparts in <osmocom/trau/csd_v110.h>, <osmocom/trau/csd_ra2.h> and <osmocom/trau/csd_raa_prime.h>. This symmetry is intended to aid implementation of CSD RTP endpoints (TRAU<->RTP functions and IWFs in the CN) that support both payload formats, and it will also serve as a building block for dedicated format conversion functions.
Commit
49c90ec3fa1993d49699a2cd0d9f14f5faf03ef0
by falcon
trau2rtp CSD: add option to emit TW-TS-007 payloads
Setting OSMO_RTP_EXT_TWTS007 bit in st->rtp_extensions switches CSD RTP output format from standard but inefficient CLEARMODE to the compressed-CSD RTP payload format of TW-TS-007. This new mechanism is fully symmetric with already implemented mechanism that enables or disables TW-TS-001 and TW-TS-002 RTP output for FR/HR/EFR speech codecs.