aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2021-07-28 00:57:09 +0200
committerlaforge <laforge@osmocom.org>2021-08-06 14:03:28 +0000
commitf8aa6c1a252841d22cabb33a9cfc8f0307b368c1 (patch)
tree0d33d47e52a59cebe9686031f0c3e4bb17163e15
parent2c4f7d8ddeca6a37ddbc4e9b9b62b5a56af19b7d (diff)
SMPP_Emulation: replace previous entries in f_create_smpp_expect()
Will be used by MSC_Tests.TC_call_re_establishment_auth in I8110a6b432de734d53b111c7b69aabca12129691 to re-plug SMPP handling for an imsi to another vc_conn. Related: SYS#5130 Change-Id: I63856fc158f5db9ced9185c208035b26e7ed7a74
-rw-r--r--library/SMPP_Emulation.ttcn11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/SMPP_Emulation.ttcn b/library/SMPP_Emulation.ttcn
index fdeed4b4..6c808ebe 100644
--- a/library/SMPP_Emulation.ttcn
+++ b/library/SMPP_Emulation.ttcn
@@ -362,6 +362,17 @@ type port SMPPEM_PROC_PT procedure {
private function f_create_expect(charstring dest_number, SMPP_ConnHdlr hdlr)
runs on SMPP_Emulation_CT {
for (var integer i := 0; i < sizeof(ExpectTable); i := i+1) {
+ if (ExpectTable[i].dst_addr == dest_number) {
+ ExpectTable[i] := {
+ dst_ton := omit,
+ dst_npi := omit,
+ dst_addr := dest_number,
+ vc_conn := hdlr
+ }
+ return;
+ }
+ }
+ for (var integer i := 0; i < sizeof(ExpectTable); i := i+1) {
if (ExpectTable[i].vc_conn == null) {
ExpectTable[i] := {
dst_ton := omit,