aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-bsc/osmo_bsc_main.c
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-04-12 15:26:04 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-18 17:50:08 +0200
commit0923fc6707ea35776ad8c37a6d490ac3408dd274 (patch)
tree0da3805e1f1d8d5f56167d24dc3a058f81aec768 /openbsc/src/osmo-bsc/osmo_bsc_main.c
parent22593b2cef43bceafe7727f893be4657f949489f (diff)
WIP: Integrate AoIP into OsmoBSC
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_main.c')
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_main.c22
1 files changed, 20 insertions, 2 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c
index ee094d670..1f8f645ac 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_main.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c
@@ -28,6 +28,7 @@
#include <openbsc/vty.h>
#include <openbsc/ipaccess.h>
#include <openbsc/ctrl.h>
+#include <openbsc/osmo_bsc_sigtran.h>
#include <osmocom/ctrl/control_cmd.h>
#include <osmocom/ctrl/control_if.h>
@@ -269,8 +270,25 @@ int main(int argc, char **argv)
}
- if (osmo_bsc_sccp_init(bsc_gsmnet) != 0) {
- LOGP(DNM, LOGL_ERROR, "Failed to register SCCP.\n");
+ llist_for_each_entry(msc, &bsc_gsmnet->bsc_data->mscs, entry) {
+ /* FIXME: This has to come from a config file */
+ msc->msc_con->g_calling_addr.presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC;
+ msc->msc_con->g_calling_addr.ssn = SCCP_SSN_BSSAP;
+ msc->msc_con->g_calling_addr.ri = OSMO_SCCP_RI_SSN_PC;
+ msc->msc_con->g_calling_addr.pc = 23;
+ msc->msc_con->g_called_addr.presence = OSMO_SCCP_ADDR_T_SSN | OSMO_SCCP_ADDR_T_PC;
+ msc->msc_con->g_called_addr.ssn = SCCP_SSN_BSSAP;
+ msc->msc_con->g_called_addr.ri = OSMO_SCCP_RI_SSN_PC;
+ msc->msc_con->g_called_addr.pc = 1;
+ }
+
+// if (osmo_bsc_sccp_init(bsc_gsmnet) != 0) {
+// LOGP(DNM, LOGL_ERROR, "Failed to register SCCP.\n");
+// exit(1);
+// }
+
+ if (osmo_bsc_sigtran_init(&bsc_gsmnet->bsc_data->mscs) != 0) {
+ LOGP(DNM, LOGL_ERROR, "Failed to initalize sigtran backhaul.\n");
exit(1);
}