Change in osmo-ttcn3-hacks[master]: RAN_Adapter: Support build without IPA / BSSAP support

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Tue Apr 23 15:43:56 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/13750


Change subject: RAN_Adapter: Support build without IPA /  BSSAP support
......................................................................

RAN_Adapter: Support build without IPA /  BSSAP support

Change-Id: I5370f0ea6f2f6cfdc3370a6f3d3bf2e6c32af4d2
---
M library/RAN_Adapter.ttcnpp
1 file changed, 5 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/50/13750/1

diff --git a/library/RAN_Adapter.ttcnpp b/library/RAN_Adapter.ttcnpp
index a96c6ef..e62e5f6 100644
--- a/library/RAN_Adapter.ttcnpp
+++ b/library/RAN_Adapter.ttcnpp
@@ -22,7 +22,9 @@
 import from SCTPasp_Types all;
 import from SCTPasp_PortType all;
 
+#ifdef RAN_EMULATION_BSSMAP
 import from BSSMAP_Templates all;
+#endif
 import from RAN_Emulation all;
 
 type record RAN_Adapter {
@@ -96,6 +98,7 @@
 		connect(ba.vc_M3UA:MTP3_SP_PORT, ba.vc_SCCP:MTP3_SCCP_PORT);
 		ba.vc_M3UA.start(f_M3UA_Emulation(cfg.sctp_addr, cfg.rctx));
 		}
+#ifdef IPA_EMULATION_SCCP
 	case (BSSAP_TRANSPORT_SCCPlite_SERVER) {
 		ba.vc_IPA := IPA_Emulation_CT.create(id & "-IPA");
 		map(ba.vc_IPA:IPA_PORT, system:IPA_CODEC_PT);
@@ -147,8 +150,10 @@
 #endif
 		if (cfg.transport == BSSAP_TRANSPORT_SCCPlite_SERVER or
 		    cfg.transport == BSSAP_TRANSPORT_SCCPlite_CLIENT) {
+#ifdef IPA_EMULATION_MGCP
 			/* connect IPA MGCP port with BSSMAP MGCP port */
 			connect(ba.vc_IPA:IPA_MGCP_PORT, ba.vc_RAN:MGCP);
+#endif
 		}
 		/* start the BSSMAP emulation */
 		ba.vc_RAN.start(RAN_Emulation.main(valueof(ops), ""));

-- 
To view, visit https://gerrit.osmocom.org/13750
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5370f0ea6f2f6cfdc3370a6f3d3bf2e6c32af4d2
Gerrit-Change-Number: 13750
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190423/ce22d384/attachment.htm>


More information about the gerrit-log mailing list