MNCC_Emulation: Initialize connection table
Change-Id: I903f6bf14a15abc6cae1d527195414c5f081c2df
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) {