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

MNCC_Emulation: Initialize connection table

Change-Id: I903f6bf14a15abc6cae1d527195414c5f081c2df
---
M library/MNCC_Emulation.ttcn
1 file changed, 9 insertions(+), 0 deletions(-)


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

diff --git a/library/MNCC_Emulation.ttcn b/library/MNCC_Emulation.ttcn
index de29288..60ec58b 100644
--- a/library/MNCC_Emulation.ttcn
+++ b/library/MNCC_Emulation.ttcn
@@ -145,6 +145,14 @@
        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 @@
 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) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I903f6bf14a15abc6cae1d527195414c5f081c2df
Gerrit-PatchSet: 1
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Owner: daniel <dwillm...@sysmocom.de>

Reply via email to