diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-02-21 12:19:18 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-02-21 12:20:30 +0100 |
commit | bb6aed387e39949b11506871d6123ce87874c353 (patch) | |
tree | 2d1f44da4b76f42d3d223ea0c76438c509b2e826 /library/RSL_Emulation.ttcn | |
parent | 1c02fd1ad552d93eefbfc2e194042737294aec4c (diff) |
RSL_Emulation: Pass ASP_IPA_EVENT_UP to RSL_CCHAN port
When emulating the BSC side of RSL, this can be used by a test case
to wait for the RSL connection to be established.
Change-Id: Iad2f6e4cb6a8f3b77e452f36a83ec11e7554e6c7
Diffstat (limited to 'library/RSL_Emulation.ttcn')
-rw-r--r-- | library/RSL_Emulation.ttcn | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/library/RSL_Emulation.ttcn b/library/RSL_Emulation.ttcn index 5c7dc9cf..bf6686a2 100644 --- a/library/RSL_Emulation.ttcn +++ b/library/RSL_Emulation.ttcn @@ -53,7 +53,7 @@ type port RSL_DCHAN_PT message { } with { extension "internal" }; type port RSL_CCHAN_PT message { - inout ASP_RSL_Unitdata; + inout ASP_RSL_Unitdata, ASP_IPA_Event; } with { extension "internal" }; @@ -277,6 +277,7 @@ private function f_streamId_by_trx(uint8_t trx_nr) return IpaStreamId { function main(boolean bts_role := true) runs on RSL_Emulation_CT { + var ASP_IPA_Event evt; var ASP_RSL_Unitdata rx_rsl; var RSL_Message rx_rsl_msg; var RSLDC_ChanRqd chan_rqd; @@ -292,7 +293,10 @@ function main(boolean bts_role := true) runs on RSL_Emulation_CT { while (true) { alt { - [] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) { + [bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) { + } + [not bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_UP}) -> value evt { + CCHAN_PT.send(evt); } [bts_role] IPA_PT.receive(ASP_IPA_Event:{up_down := ASP_IPA_EVENT_ID_ACK}) { IPA_PT.send(ts_ASP_RSL_UD(IPAC_PROTO_RSL_TRX0,ts_RSL_PAGING_LOAD_IND(23))); |