Skip to content
Success

Changes

Summary

  1. tests: add unit tests for osmo_rtp2trau() (details)
  2. rtp2trau HR: add support for TRAU-8k-UL frame output (details)
Commit dabf07a7dd61e0067f583e728d6d07844cc65c63 by falcon
tests: add unit tests for osmo_rtp2trau()

The suite of unit tests added in this patch exercises osmo_rtp2trau()
followed by osmo_trau_frame_encode() for the following combinations
of speech codec and TRAU frame type:

* FR and EFR codecs, TRAU-16k frames, both DL and UL
* HRv1 codec, TRAU-8k format, DL only

(RTP->TRAU conversion for HRv1 does not currenty support TRAU-UL
output.)

All output TRAU frames contained in rtp2trau_*.ok files (expected
output for unit tests) have been manually checked with Themyscira
decoding utilities trau-parse-hex (16k) and trau-hr-dump-hex (8k);
these utilities in turn were developed to analyze TRAU frame streams
captured from historical BTS and TRAU equipment, hence the chain of
truth reference comparison is traceable to pre-existing historical
hardware implementations of GSM 08.60 and 08.61 specs.

Change-Id: Ia5ca8af6bd3a899253bbcc718b70e43f2265b495
The file was addedtests/trau_conv/fr_speech_twts001_good.hex
The file was modifiedtests/testsuite.at
The file was modifiedtests/Makefile.am
The file was addedtests/trau_conv/hr_speech_ts101318.hex
The file was addedtests/trau_conv/tw5reader.c
The file was addedtests/trau_conv/fr_speech_twts001_mix.hex
The file was addedtests/trau_conv/rtp2trau_efr_ul2.ok
The file was addedtests/trau_conv/rtp2trau_fr_dl1.ok
The file was modified.gitignore
The file was addedtests/trau_conv/efr_speech_basic.hex
The file was addedtests/trau_conv/rtp2trau_efr_ul3.ok
The file was addedtests/trau_conv/efr_speech_twts001_mix.hex
The file was addedtests/trau_conv/efr_speech_twts001_good.hex
The file was addedtests/trau_conv/rtp2trau_efr_dl1.ok
The file was addedtests/trau_conv/rtp2trau_fr_ul3.ok
The file was addedtests/trau_conv/hr_speech_rfc5993.hex
The file was addedtests/trau_conv/fr_speech_basic.hex
The file was addedtests/trau_conv/rtp2trau_fr_ul1.ok
The file was addedtests/trau_conv/rtp2trau_efr_ul1.ok
The file was addedtests/trau_conv/rtp2trau_fr_dl2.ok
The file was addedtests/trau_conv/rtp2trau_gen.c
The file was addedtests/trau_conv/rtp2trau_efr_dl2.ok
The file was addedtests/trau_conv/rtp2trau_fr_ul2.ok
The file was addedtests/trau_conv/rtp2trau_hr_dl.ok
The file was addedtests/trau_conv/tw5reader.h
Commit b44656ad2d5caf42e81d866fe695e6a6a84cc3b8 by falcon
rtp2trau HR: add support for TRAU-8k-UL frame output

When osmo_rtp2trau() function is used to pass traffic to an E1 BTS,
it only needs to generate TRAU-DL frames, not TRAU-UL.  OTOH,
ability to generate TRAU-UL frames is needed for TFO, i.e., for
software implementation of TFO-capable speech transcoders.
osmo_rtp2trau() already supports TRAU-UL frame output for FR and
EFR codecs, but not for HR codec in TRAU-8k framing - add the
missing support.  (Out of the two possible TRAU frame formats for
GSM-HR codec, TFO always uses TRAU-8k format.)

Change-Id: I288cfa7d467125f7732ef1d0ef83b933e41da536
The file was modifiedtests/testsuite.at
The file was addedtests/trau_conv/rtp2trau_hr_ul2.ok
The file was modifiedsrc/trau/trau_rtp_conv.c
The file was addedtests/trau_conv/hr_speech_twts002.hex
The file was addedtests/trau_conv/hr_speech_invsid_bits.hex
The file was modifiedtests/Makefile.am
The file was addedtests/trau_conv/rtp2trau_hr_ul1.ok
The file was addedtests/trau_conv/rtp2trau_hr_ul3.ok