aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2011-06-26move gsm0502_calc_paging_group() to libosmocoreHarald Welte2-18/+1
2011-06-26generalize function for calculation of the paging groupHarald Welte1-7/+10
2011-06-26move gsm 05.02 related calculations into libosmocoreHarald Welte3-28/+3
2011-06-26use new gsm48_number_of_paging_subchannels from libosmocoreHarald Welte3-17/+4
2011-06-26system information related bits for osmo-btsHarald Welte1-1/+9
2011-06-25osmo-bsc: bring in sync with recent NM MO changesHarald Welte1-5/+5
2011-06-25move {ts,lchan}2chan_nr() functions to gsm_data_shared.cHarald Welte5-56/+60
... this way osmo-bts can use them
2011-06-09HACK: disable NM_ATTR for CELL GLOBAL ID for sysmo-btsHarald Welte1-2/+2
Do not commit this to master. It disables a non-standard IE in the BTS attributes.
2011-06-07add back-pointer for l1 as part of BTS role.Harald Welte1-0/+4
2011-06-07initialize NM state for all objects to known stateHarald Welte1-0/+3
2011-06-06gsm_data_shared: make sure to initialzie the MO obj_class/obj_instHarald Welte1-9/+22
2011-06-06add mo->bts member so we can discover which BTS a MO belong stoHarald Welte2-0/+18
2011-06-06move objclass2{nmstate,mo,}obj() to gsm_data_shared.c (and prefix)Harald Welte3-159/+164
2011-06-06gsm_data: don't free a bts that's not even allocated yetHarald Welte1-3/+1
2011-06-06make sure to include gsm_data.h, not gsm_data_shared.hHarald Welte1-1/+1
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte8-261/+313
This facilitates the use of gsm_data.c from osmo-bts
2011-06-05abis_nm.h: Use osmocom/core/abis_nm.hHarald Welte1-2/+1
2011-06-03Introduce per-ts TSCHarald Welte4-3/+23
This allows us to configure a TSC for each timeslot, not just one globally for the entire BTS.
2011-06-03gsm_data_shared: introduce 'struct gsm_abis_mo'Harald Welte8-66/+85
... as a common wrapper around nm_attr and nm_state
2011-06-03split gsm_data.h in gsm_data_shared.h and gsm_data.hHarald Welte3-514/+522
gsm_data.h is the part that contains BSC-specific data, whereas gsm_data_shared.h is now shareda with osmo-bts
2011-06-03gsm_data: Use osmocom/gsm/sysinfo.hHarald Welte1-3/+3
and include rest_octets.h only in case of BSC
2011-06-03add HSL femtocell openbsc.cfg example0.9.13+deb1Harald Welte1-0/+87
2011-06-02mgcp: Fix a typo in the function nameHolger Hans Peter Freyther1-5/+5
2011-06-01nat: Add VTY code to configure the SMSC rewritingHolger Hans Peter Freyther1-9/+47
2011-06-01nat: Look into the TPDU/SMS-SUBMIT and use the TP-DestAddress for matchesHolger Hans Peter Freyther3-9/+79
Match the used SMSC and the destination of the SMS and change the SMSC address if both are matched.
2011-06-01nat: Patch the destination SMS address of a messageHolger Hans Peter Freyther5-10/+208
Use the same filtering infrasturcture to patch the SMSC address in a CP-DATA/RP-DATA message. Add a very simple testcase for this code.
2011-06-01nat: Move the common new message generation code into the base methodHolger Hans Peter Freyther1-26/+28
2011-06-01nat: Prepare to patch more than the CC Setup messageHolger Hans Peter Freyther4-30/+37
Refactor the code to allow having different handlers. The goal is to be able to patch some SMS messages too.
2011-06-01nat: Allow to have a regexp to match the MSISDNHolger Hans Peter Freyther4-33/+117
The idea that MCC and MNC is enough to classify a subscriber turns out to be wrong. Certain operatos license a number range of IMSIs to others. When we see a '^' in the MCC field we treat it as a regexp. The code now turns the MCC/MNC into a regexp for the IMSI. It is not using extended POSIX regexp to match the behavior of the access list.
2011-05-31nat: Add a test utility for the number rewritingHolger Hans Peter Freyther1-0/+30
2011-05-31nat: Allow to rewrite any non international numberHolger Hans Peter Freyther1-2/+0
Remove the arteficial limitation of the number format of an unknown number.
2011-05-31nat: Refactor the number patching code into a new methodHolger Hans Peter Freyther1-45/+56
Separate the code to patch the code and the code to find a new number based on the old number. This will allow to add multiple targets for number changing.
2011-05-31abis: Get the structs and values from libosmocoreHolger Hans Peter Freyther2-6/+2
Remove the forward declarations for functions and structs that have been moved to libosmocore.
2011-05-31misc: Provide a uninstall-hook to remove the extra filesHolger Hans Peter Freyther1-0/+7
Fix make distcheck to uninstall files that were installed by our custom hook. This is fixing: ERROR: files left after uninstall: ./share/doc/openbsc/examples/osmo-bsc_mgcp/mgcp.cfg ./share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc.cfg ./share/doc/openbsc/examples/osmo-nitb/nanobts/openbsc-multitrx.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-1bts-2trx-hopping.cfg ./share/doc/openbsc/examples/osmo-nitb/bs11/openbsc-2bts-2trx.cfg ./share/doc/openbsc/examples/osmo-nitb/rbs2308/openbsc.cfg
2011-05-24move some more abis_nm related code into libosmocoreHarald Welte2-42/+0
This syncs openbsc.git with libosmocore.git commit rev 11c7193ad8ceb4f3898799dc44b700b8b93a59b8
2011-05-24libabis: fix segfault on malformed ipaccess RSL linkAlexander Huemer1-1/+4
This patch fixes a segfault that occured when a ipaccess RSL link gets closed unexpectedly. The segfault can be provoked by connecting to the RSL port with ncat and hitting ^C.
2011-05-24openbsc: update .gitignoreAlexander Huemer1-0/+3
2011-05-24openbsc: rename configure.in -> configure.acAlexander Huemer1-0/+0
rename autoconf input file to align with osmocom-bb host applications, and because that suffix is preferred nowadays.
2011-05-24openbsc: add missing AC_LANG_SOURCE for current autoconfAlexander Huemer1-1/+1
autoconf >=2.68 demands the body of an AC_COMPILE_IFELSE to be wrapped in an AC_LANG_SOURCE macro, otherwise outputs annoying warnings on the invocation of `autoreconf -i`. this patch follows that demand.
2011-05-24Move system information related defines and code to libosmocoreHarald Welte3-146/+12
This brings openbsc in sync with the following libosmocore commit: b5503136fa234690d5493b19a8aee3a4ef74190d
2011-05-24prepare gsm_data.h header file sharing with osmo-btsHarald Welte6-114/+141
This should not introduce any functional changes, it just re-arranges some definitions in the header file, and introduces the ROLE_BSC define that we enable for the BSC-specific fields.
2011-05-23abis_nm: Some more fall-out from the abis_nm move to libosmocoreHarald Welte3-3/+5
we want get_string_value(), not the equivalent of get_value_string()
2011-05-23abis_nm: fix some fallout regarding abis_nm migration to libosmocoreHarald Welte4-6/+7
Thanks to Holger for noticing this.
2011-05-22abis_nm: Move lots of generic definitions + code to libosmocoreHarald Welte1-388/+26
2011-05-22use new libosmogsm ip.access protocol header fileHarald Welte1-87/+1
2011-05-22bsc: on-demand setup of nanoBTS and HSL femto socketsPablo Neira Ayuso14-35/+112
The daemons set up nanoBTS and HSL femto sockets by default, ie. the three sockets to support these two drivers are open even if we have no BTS of that kind. This patch enables on-demand socket creation, ie. we only enable them if we have one BTS at least that requires it. I added two new attributes to the gsm_bts object, they are: * the start() function includes the code that we need to run to start the BTS. This new function contains the socket creation in the particular case of nanoBTS and HSL femto. * the started boolean, which is used to know if we have already started the BTS, ie. we have already invoked start(). Note that, I have splitted the bts_model_*_init() function into two functions, the _init() functions that register the BTS driver and the _start() functions that start BTS driver on-demand. While I was at it, I added several changes/cleanups to this patch: * Group all bts_model_*_init() calls into one function bts_init(), which is called in the initialization path of osmo-nitb and osmo-bsc. * Add openbsc/bss.h that contains the declaration of bsc_bootstrap_network, bsc_shutdown_net and bts_init. * Add missing e1inp_init() in osmo-bsc. * Fix missing declaration of hsl_setup in openbsc/e1_input.h
2011-05-22abis: add init function for emulated ipaccess/HSL emulated E1 inputPablo Neira Ayuso3-12/+14
This patch is a cleanup. It adds an init function for the ipaccess and HSL emulated E1 input drivers.
2011-05-22bsc: fix bail out in case of problems bootstrapping BTS or E1 inputPablo Neira Ayuso1-4/+6
The error message was missing in case of problems bootstrapping the BTS. The E1 input driver initialization was displayed in the standard output, now this error is reported via logs.
2011-05-22abis: skip e1_input nesting if emptyPablo Neira Ayuso1-0/+3
With this patch, we don't include e1_input if it's empty [...] timeslot 7 phys_chan_config TCH/F hopping enabled 0 e1_input <----------------- empty, it should not show up. msc [...]
2011-05-17ipaccess: Fix the case of specifying the interfaceHolger Hans Peter Freyther1-0/+1
Pablo pointed out that my previous commit was rubish. If we have less than two arguments we want ifname to remain NULL and if we have a second argument (or more) we want to use that as the interface name to bind to.