diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2018-02-02 18:26:05 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2018-02-06 16:23:36 +0100 |
commit | ff6abf0f2d2cab6f4d2e49d92eb0792bd68b286c (patch) | |
tree | ed9e99566b02f7ad436c45dcc52912eaeea90e0b | |
parent | 47fb0f4871bea2a20f9f0066f2e4ca0abb221389 (diff) |
MNCC_Emulation: Initialize connection table
Change-Id: I903f6bf14a15abc6cae1d527195414c5f081c2df
-rw-r--r-- | library/MNCC_Emulation.ttcn | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/library/MNCC_Emulation.ttcn b/library/MNCC_Emulation.ttcn index de29288b..60ec58b3 100644 --- a/library/MNCC_Emulation.ttcn +++ b/library/MNCC_Emulation.ttcn @@ -145,6 +145,14 @@ runs on MNCC_Emulation_CT return integer { return call_id; } +private function f_expect_table_init() +runs on MNCC_Emulation_CT { + for (var integer i := 0; i < sizeof(MnccExpectTable); i := i+1) { + MnccExpectTable[i].dest_number := omit; + MnccExpectTable[i].vc_conn := null; + } +} + private function f_call_table_init() runs on MNCC_Emulation_CT { for (var integer i := 0; i < sizeof(MnccCallTable); i := i+1) { @@ -223,6 +231,7 @@ type record MnccOps { function main(MnccOps ops, charstring id, charstring sock) runs on MNCC_Emulation_CT { f_connect(sock); + f_expect_table_init(); f_call_table_init(); while (true) { |