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 <[email protected]>

Reply via email to