summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-05-27 15:07:14 +0200
committerHarald Welte <laforge@gnumonks.org>2018-05-27 15:33:27 +0000
commit4239918711f11dd8ed0e9d8854941581e6cec747 (patch)
tree853bfe03a399fdc8db281b875981783015e32504
parent6c47f294954f4aadd7f6afc4c2a20291081f71b1 (diff)
BSSAP_Adapter: Connect ConnHdlr:MGCP to IPA MGCP in SCCPlite case
-rw-r--r--library/BSSAP_Adapter.ttcn5
1 files changed, 5 insertions, 0 deletions
diff --git a/library/BSSAP_Adapter.ttcn b/library/BSSAP_Adapter.ttcn
index 7404a6f..b46bb3e 100644
--- a/library/BSSAP_Adapter.ttcn
+++ b/library/BSSAP_Adapter.ttcn
@@ -155,6 +155,11 @@ function f_bssap_init(inout BSSAP_Adapter ba, in BSSAP_Configuration cfg, charst
log("Connecting BSSMAP Emulation to SCCP_SP_PORT and starting emulation");
/* connect BSSNAP component to upposer side of SCCP */
connect(ba.vc_BSSMAP:BSSAP, ba.vc_SCCP:SCCP_SP_PORT);
+ if (cfg.transport == BSSAP_TRANSPORT_SCCPlite_SERVER or
+ cfg.transport == BSSAP_TRANSPORT_SCCPlite_CLIENT) {
+ /* connect IPA MGCP port with BSSMAP MGCP port */
+ connect(ba.vc_IPA:IPA_MGCP_PORT, ba.vc_BSSMAP:MGCP);
+ }
/* start the BSSMAP emulation */
ba.vc_BSSMAP.start(BSSMAP_Emulation.main(valueof(ops), ""));
}