summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-24 22:32:20 +0100
committerHarald Welte <laforge@gnumonks.org>2018-03-24 22:33:59 +0100
commit9edea88b8051f38592da9bde27ad9934debe22b3 (patch)
tree51281ebfb63e55e2561e247104063e11e2d2b24a
parent1450953d2e8af2781dbf129867f0e6d656c3e0e1 (diff)
MNCC_Emulation: Make ExpectedCreateCallback work for SETUP_REQ, too
In server mode, we need to handle SETUP_REQ in ExpectedCreateCallback, not only SETUP_IND like in client mode. Change-Id: I988668cac9970af12d59d05a3a9facca257851c6
-rw-r--r--library/MNCC_Emulation.ttcn5
1 files changed, 3 insertions, 2 deletions
diff --git a/library/MNCC_Emulation.ttcn b/library/MNCC_Emulation.ttcn
index 0669266..59e3e77 100644
--- a/library/MNCC_Emulation.ttcn
+++ b/library/MNCC_Emulation.ttcn
@@ -390,8 +390,9 @@ runs on MNCC_Emulation_CT return MNCC_ConnHdlr {
var charstring dest_number;
var integer i;
- if (not ischosen(conn_ind.u.signal) or conn_ind.msg_type != MNCC_SETUP_IND) {
- setverdict(fail, "MNCC ExpectedCreateCallback needs MNCC_SETUP_IND");
+ if (not ischosen(conn_ind.u.signal) or
+ (conn_ind.msg_type != MNCC_SETUP_IND and conn_ind.msg_type != MNCC_SETUP_REQ)) {
+ setverdict(fail, "MNCC ExpectedCreateCallback needs MNCC_SETUP_{IND,REQ}");
return ret;
}
dest_number := conn_ind.u.signal.called.number;