Commit Graph

6 Commits

Author SHA1 Message Date
efistokl 09bf75a895 cosmetic: iuup_test.c: update comments and constants names
add constants for AMR headers and payloads instead of hardcoding them as
strings. Rename RTP_PAYLOAD -> AMR_PAYLOAD_VOICE.
test explanations updated accordingly to previous changes (about
stripping/inserting AMR headers).
2018-12-25 14:30:44 +02:00
efistokl 3a4cddbbce iuup_cn_node.c: use 0x70 instead of 0xf0 in AMR hdr
in the AMR header first 4 bits is CMR (codec mode request). "7" means
AMR 12.2k. And "f" means "no mode request".
See RFC4867 Section 4.3.1.
2018-12-24 23:25:55 +02:00
efistokl f2c1523ff7 iuup_cn_node.c: use correct header for AMR SID frames
rx_data(): if iuup header (4 bytes) + amr payload (5 bytes) is 9 bytes
then it means that this is AMR SID (Comfort Noise Frame) and other
header should be used. The second byte of AMR header is set to 0x44.
2018-12-24 23:21:06 +02:00
efistokl fdfa1849e4 iuup_cn_node.c: make it work for AMR 12.2k codec
rx_data: prepend hardcoded AMR 12.2 header "0xf03c" to the front of RTP
payload
osmo_iuup_cn_tx_payload: strip AMR header (2 bytes) from the front of RTP
payload
2018-12-21 20:25:43 +02:00
Neels Hofmeyr 85f9401810 wip
Change-Id: I4fdcebf3b006a72c5318a9105a2be2cc7057dca1
2018-11-09 15:04:21 +01:00
Neels Hofmeyr 3243c7cdd9 wip
Change-Id: Ibc70e0aa00476926dd1f4ea8139c34f31f9cdfa3
2018-11-09 15:04:21 +01:00