diff options
Diffstat (limited to 'openbsc/src/osmo-bsc/osmo_bsc_main.c')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 1f8f645ac..68f8b492d 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -217,6 +217,10 @@ int main(int argc, char **argv) bsc_msg_lst_vty_init(tall_bsc_ctx, &access_lists, BSC_NODE); ctrl_vty_init(tall_bsc_ctx); + /* Initalize SS7 */ + osmo_ss7_init(); + osmo_ss7_vty_init_sg(); + INIT_LLIST_HEAD(&access_lists); /* parse options */ @@ -269,24 +273,6 @@ int main(int argc, char **argv) } } - - 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); |