From bc04327e2846c3d4f3e28c3c7180a837d7d9bc63 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 2 May 2019 12:00:16 +0200 Subject: RAN_Adapter: More verbose logging Change-Id: I16a2c4858d8cac65f39e37d23051fa77c15d4c6f --- library/RAN_Adapter.ttcnpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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), "")); } -- cgit v1.2.3