diff options
author | Max <msuraev@sysmocom.de> | 2016-05-25 18:13:51 +0200 |
---|---|---|
committer | Holger Freyther <holger@freyther.de> | 2016-05-31 10:11:51 +0000 |
commit | 92db150488bdadf6577a4968feabd5a3ab694c5e (patch) | |
tree | bbe91ee76c6dd6e41077ba22d29dc9c574b13516 /tests/codec/codec_test.ok | |
parent | adef12a3497d14aafe677b77b468b952f4c6b5d5 (diff) |
Add helper functions for AMR codec
* add functions to encode/decode various codec paramters from RTP payload with
AMR frame according to RFC 4867
* those functions are extended version based on code from osmo-bts'
amr.c by Andreas Eversberg
* add corresponding enum types and strings for logging
* add regression tests
It's useful both to replace manual parsing in osmo-bts with fuctions
covered by test suite and as a debugging helpers for issues related to
AMR.
Change-Id: Ia217679a07d3fbc970f435e20f6eac33d34bd597
Related: OS#1562
Reviewed-on: https://gerrit.osmocom.org/118
Tested-by: Jenkins Builder
Reviewed-by: Holger Freyther <holger@freyther.de>
Diffstat (limited to 'tests/codec/codec_test.ok')
-rw-r--r-- | tests/codec/codec_test.ok | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/codec/codec_test.ok b/tests/codec/codec_test.ok new file mode 100644 index 00000000..0f76fefc --- /dev/null +++ b/tests/codec/codec_test.ok @@ -0,0 +1,9 @@ +AMR RTP payload decoder test: +[2] decode RTP 20 44 00 00 00 00 04 OK: FT AMR SID, CMR AMR 5,90 kbit/s, CMI is 2, SID type FIRST [2] encode [0] +[2] decode RTP 20 44 29 c2 92 91 f4 OK: FT AMR SID, CMR AMR 5,90 kbit/s, CMI is 2, SID type UPDATE [2] encode [0] +[2/2] No Data/NA, CMR: OK, FT: OK, BFI: OK, CMI: -1, STI: -1 +[2/2] No Data/NA, CMR: OK, FT: OK, BFI: OK, CMI: -1, STI: -1 +[33/33] AMR 12,2 kbit/s (GSM-EFR), CMR: OK, FT: OK, BFI: OK, CMI: -1, STI: -1 +[33/33] AMR 12,2 kbit/s (GSM-EFR), CMR: OK, FT: OK, BFI: OK, CMI: -1, STI: -1 +[21/21] AMR 7,40 kbit/s (TDMA-EFR), CMR: OK, FT: OK, BFI: OK, CMI: -1, STI: -1 +[21/21] AMR 7,40 kbit/s (TDMA-EFR), CMR: OK, FT: OK, BFI: OK, CMI: -1, STI: -1 |