mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 04:53:24 +00:00
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).
70 lines
2.4 KiB
Plaintext
70 lines
2.4 KiB
Plaintext
|
|
Send IuUP Initialization. Expecting direct tx_msg() of the Initialization Ack
|
|
-PDU-> [IuUP]
|
|
8060dc5219495e3f00010111e000df99160051673c01270000820000001710000100
|
|
tx_msg() invoked by iuup_cn!
|
|
<-PDU- [IuUP]
|
|
8060dc5219495e3f00010111e4002400
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
|
|
Receive AMR payload encapsulated in IuUP. Expecting rx_payload() of just RTP packet and inserted AMR header
|
|
i.e. should replace 0100e2b3 with 703c
|
|
-PDU-> [IuUP]
|
|
8060944c6256042c000101020100e2b36cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
rx_payload() invoked by iuup_cn!
|
|
[IuUP] -RTP->
|
|
8060944c6256042c00010102703c6cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
|
|
Receive AMR (comfort noise frame) payload encapsulated in IuUP. Expecting rx_payload() of just RTP packet and inserted AMR (comfort noise) header
|
|
i.e. should replace 0401479e with 7044
|
|
-PDU-> [IuUP]
|
|
8060944c6256042c000101020401479e26e9b851ee
|
|
rx_payload() invoked by iuup_cn!
|
|
[IuUP] -RTP->
|
|
8060944c6256042c00010102704426e9b851ee
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
|
|
Transmit RTP. Expecting tx_msg() with inserted IuUP header and removed AMR header
|
|
[IuUP] <-RTP-
|
|
8060944c6256042c00010102703c6cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
tx_msg() invoked by iuup_cn!
|
|
<-PDU- [IuUP]
|
|
8060944c6256042c00010102000002b36cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
|
|
More RTP, each time the Frame Nr advances, causing a new header CRC.
|
|
[IuUP] <-RTP-
|
|
8060944c6256042c00010102703c6cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
tx_msg() invoked by iuup_cn!
|
|
<-PDU- [IuUP]
|
|
8060944c6256042c000101020100e2b36cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
[IuUP] <-RTP-
|
|
8060944c6256042c00010102703c6cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
tx_msg() invoked by iuup_cn!
|
|
<-PDU- [IuUP]
|
|
8060944c6256042c0001010202007eb36cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
[IuUP] <-RTP-
|
|
8060944c6256042c00010102703c6cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
tx_msg() invoked by iuup_cn!
|
|
<-PDU- [IuUP]
|
|
8060944c6256042c0001010203009eb36cfb23bc46d18180c3e5ffe040045600005a7d35b625b80005fff03214ced0
|
|
node_priv=0x2342
|
|
ok: matches expected msg
|
|
rc=0
|
|
All done.
|