summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-02 12:00:16 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-02 18:35:43 +0200
commitbc04327e2846c3d4f3e28c3c7180a837d7d9bc63 (patch)
tree878473c50d2c44400547dd52fa69599ca31281ca
parent07d99c8e7b46b9c490e0cb488d4e2703790fcd84 (diff)
RAN_Adapter: More verbose logging
-rw-r--r--library/RAN_Adapter.ttcnpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/library/RAN_Adapter.ttcnpp b/library/RAN_Adapter.ttcnpp
index 53c8bacd..27d22ca2 100644
--- a/library/RAN_Adapter.ttcnpp
+++ b/library/RAN_Adapter.ttcnpp
@@ -143,15 +143,16 @@ function f_ran_adapter_init(inout RAN_Adapter ba, in RAN_Configuration cfg, char
timer T := 5.0;
T.start;
//T.timeout;
- log("Connecting BSSMAP Emulation to SCCP_SP_PORT and starting emulation");
/* connect BSSNAP component to upper side of SCCP */
if (cfg.transport == RANAP_TRANSPORT_IuCS) {
#ifdef RAN_EMULATION_RANAP
+ log("Connecting RANAP RAN_Emulation to SCCP_SP_PORT");
ops.protocol := RAN_PROTOCOL_RANAP
connect(ba.vc_RAN:RANAP, ba.vc_SCCP:SCCP_SP_PORT);
#endif
} else {
#ifdef RAN_EMULATION_BSSAP
+ log("Connecting BSSAP RAN_Emulation to SCCP_SP_PORT");
connect(ba.vc_RAN:BSSAP, ba.vc_SCCP:SCCP_SP_PORT);
#endif
}
@@ -159,9 +160,11 @@ function f_ran_adapter_init(inout RAN_Adapter ba, in RAN_Configuration cfg, char
cfg.transport == BSSAP_TRANSPORT_SCCPlite_CLIENT) {
#ifdef IPA_EMULATION_MGCP
/* connect IPA MGCP port with BSSMAP MGCP port */
+ log("Connecting MGCP RAN Emulation to IPA MGCP PORT");
connect(ba.vc_IPA:IPA_MGCP_PORT, ba.vc_RAN:MGCP);
#endif
}
+ log("Starting RAN_Emulation");
ba.vc_RAN.start(RAN_Emulation.main(valueof(ops), ""));
}