Review at  https://gerrit.osmocom.org/6883

RSL_Emulation: Make CCHAN_PT bi-directional

So far we only dispatched received Common Channel messages from the
wire / IUT into the CCHAN_PT. Now the tester can also send Common
Channel messages back to the wire / IUT.

Change-Id: If3d5516c14ea3fbbd8c3de35eaa8ea5f18a00933
---
M library/RSL_Emulation.ttcn
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/83/6883/1

diff --git a/library/RSL_Emulation.ttcn b/library/RSL_Emulation.ttcn
index bf6686a..635ee42 100644
--- a/library/RSL_Emulation.ttcn
+++ b/library/RSL_Emulation.ttcn
@@ -396,6 +396,10 @@
                        
IPA_PT.send(ts_ASP_RSL_UD(ConnectionTable[cid].stream_id, rx_rsl_msg));
                        }
 
+               [] CCHAN_PT.receive(tr_RSL(?)) -> value rx_rsl {
+                       IPA_PT.send(ts_ASP_RSL_UD(rx_rsl.streamId, rx_rsl.rsl));
+                       }
+
                /* explicit registration, e.g. in (non-immediate) assignment 
case */
                [] RSL_PROC.getcall(RSLEM_register:{?,?,?}) -> param(trx_nr, 
chan_nr, vc_conn) {
                        f_cid_create_cnr(trx_nr, chan_nr, vc_conn);

-- 
To view, visit https://gerrit.osmocom.org/6883
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: If3d5516c14ea3fbbd8c3de35eaa8ea5f18a00933
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <[email protected]>

Reply via email to