aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
AgeCommit message (Collapse)AuthorFilesLines
2012-05-02bsc: Move away from ->bsc.msc to use the selected MSCHolger Hans Peter Freyther2-14/+17
For multiple MSCs we should only have one place where the MSC is selected and the rest will extract it from somewhere.
2012-05-02bsc: Stop using net->bsc->msc and get the right msc from somewhere elseHolger Hans Peter Freyther2-4/+7
2012-05-02bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther12-87/+97
We want to have multiple MSCs but we also have some data that is only present on a per BSC basis. Right now the MSC data is not allocated with talloc, so we have some change in the talloc contexts.
2012-05-02misc: Move the bsc_parse_reg to libcommom and name it gsm_parse_regHolger Hans Peter Freyther3-29/+31
Move the regexp parsing code from the NAT to libcommon as it will be used by the NAT and BSC code. This also adds the #include <regex.h> include to gsm_data. This header should be split up.
2011-11-04osmo_bsc: Fix bts_connection_status signal always appearing as downdaniel/controlifDaniel Willmann1-1/+3
2011-11-03osmo_bsc: Command bts_connection_status with TRAPSDaniel Willmann1-0/+73
2011-11-03osmo_bsc: Introduce command msc_connection_status and send TRAPs for itDaniel Willmann2-2/+65
2011-08-26nat: Change the ctrl command pathDaniel Willmann1-13/+12
The commands net.<netid>.bsc.<bscid>.* are now forwarded to the appropriate osmo-bsc. <netid> for now is just 0. <bscid> is not the LAC anymore (since that could be ambiguous), but instead the number as configured in bsc-nat.cfg
2011-08-26libctrl, osmo-bsc: Get rid of net prefixDaniel Willmann2-12/+5
net is now implicit in the root node
2011-08-26bsc: Add a null check and return earlyHolger Hans Peter Freyther1-0/+5
2011-08-26ctrl: Fix leak, check null pointerHolger Hans Peter Freyther1-0/+5
2011-08-26libctrl: Fix a compiler warningDaniel Willmann1-1/+1
2011-08-26osmo-bsc: Whitespace change - fix indentation of struct value_stringDaniel Willmann1-2/+2
2011-08-26osmo-bsc: Include rf stati in the location-state TRAP as wellDaniel Willmann2-0/+88
The first fields are still the location up to the height. The next field is "operational" if any of the trx are operational, otherwise "inoperational" The second to last field contains "locked" if all of the trx are in the admin state, otherwise "unlocked". The last field represents the rf policy currently in effect. It is one of (on|off|grace|unknown). <tstamp>,<valid>,<lat>,<lon>,<height>,<oper>,<admin>,<policy>
2011-08-22osmo-bsc: Prepare to send more than just the location in the TRAPDaniel Willmann1-1/+19
2011-08-22osmo-bsc: Use NM_OPSTATE_* to check for operational attributesDaniel Willmann1-1/+1
2011-08-22ctrl: Use strtol instead of atoi to detect conversion errorsDaniel Willmann1-10/+27
2011-08-22ctrl: Improve error messages in ctrl_cmd_handleDaniel Willmann1-12/+28
2011-08-22ctrl: Change the paths to bts.%i. instead of bts%iDaniel Willmann1-6/+18
2011-08-22ctrl: Add a function to create the cmdHolger Hans Peter Freyther1-0/+12
2011-08-22ctrl: Do not allow to set the RF Lock for a single trxHolger Hans Peter Freyther1-38/+0
The ip.access nanoBTS has issues if the admin changes are called too often in too little time. This will lead to a situation where the site manager will fail to start properly. Remove the TRX code as the RF Control class does not support setting this per TRX.
2011-08-22osmo-bsc: Move location command to bts node and use the bts locationDaniel Willmann1-38/+33
2011-08-22osmo-bsc: Change variable name to better reflect current/last locationDaniel Willmann1-15/+15
2011-08-22osmo-nitb: Fix a warning about undefined referenceDaniel Willmann1-0/+1
2011-08-22gsm_data: Include a structure for the geographical location in gsm_btsDaniel Willmann1-0/+2
2011-08-22libctrl: Improve error handling if controlif setup failsDaniel Willmann5-16/+49
2011-08-22osmo-bsc: Put the control commands in osmo_bsc_ctrl.cDaniel Willmann3-269/+307
2011-08-22libctrl: Mark the cmd set/get/verify functions staticDaniel Willmann3-19/+19
2011-08-22nat: Fix error in get_next_free_bsc_idDaniel Willmann1-15/+20
The new function now mimcis the behaviour of assign_src_local_reference from bsc_sccp.c
2011-08-22osmo-bsc: Change the net.location formatDaniel Willmann1-19/+36
The format is now: <tstamp>,<valid>,<lat>,<lon>,<height> <tstamp> is the UNIX time (seconds since 1970-01-01 00:00:00 UTC <valid> is any of the strings "invalid", "fix2d" or "fix3d" The remaining fields are simple floating point numbers. If the values given violate the format a meaningful error message is returned.
2011-08-22libctrl: Don't overwrite error reply if the verify function sets oneDaniel Willmann1-1/+3
2011-08-22libctrl: Bind control interface to localhostDaniel Willmann1-1/+1
2011-08-22osmo-bsc: Only send a TRAP if the location changesDaniel Willmann1-3/+14
2011-08-22osmo-bsc: Allow location tstamp to be zero if fix is invalidDaniel Willmann1-2/+2
2011-08-22osmo-nitb: Update control interface API in osmo-nitbDaniel Willmann1-1/+1
2011-08-22nat: Add support for traps to the natDaniel Willmann1-0/+7
2011-08-22osmo-bsc: Add support for traps to the location commandDaniel Willmann1-1/+23
2011-07-28libctrl: Add trap helper functionDaniel Willmann1-0/+14
2011-07-28libctrl: Add function ctrl_cmd_send_to_allDaniel Willmann1-0/+15
Sends a command to all ctrl connections except the one it originated from.
2011-07-28libctrl: Change controlif_setup so it returns the ctrl handleDaniel Willmann3-16/+11
nat: Catch up with controlif_setup API change We now save a control handle reference in the nat osmo-bsc: Catch up with controlif_setup API change We now save a control handle reference in the gsm network
2011-07-28libctrl: Keep track of connections in struct ctrl_handleDaniel Willmann1-1/+11
2011-07-28libctrl: Use DCTRL as logging destination in libctrlDaniel Willmann2-28/+28
2011-07-27TRAU: Properly initialize idle framesDieter Spaar1-3/+29
This is particularly important in case of the Nokia BTS, as they seem to drop the RF/signalling channel if they don't get proper TRAU frames.
2011-07-27BSC VTY: Accept MNC of 0-999, as 0 is a valid MNCDieter Spaar1-1/+1
2011-07-27RSL: Fix erroneous GSM48_IE_CHANDESC_2 in rsl_chan_activate_lchan()Dieter Spaar1-1/+1
This fixes a bug introduced more than one year ago in commit e38bd6caa34005816a9336f021fd17d328d5c901: The RSL_IE_CHAN_IDENT is a TLV, but the GSM48_IE_CHANDESC_2 contained in it, is a mere TV type IE with fixed length. The problem specifically has caused problems on Nokia MetroSite BTS, which apparently read the TSC out of this Layer3 IE.
2011-07-27LLC: Fix format stringDieter Spaar1-1/+1
2011-07-27GPRS: Fix buffer overflow in case of very long MS RA CAP IEHarald Welte1-3/+9
The MS Radio Access Capability IE can be _very_ long in some recent high-end mobile phones, way beyond the old 14-byte limit. We increase our array to 52 bytes, and make sure not to overflow that buffer.
2011-07-25smsqueue: There was a race/bug with a booting phone, paging and LUHolger Hans Peter Freyther1-10/+44
It was possible to set the LAC=0 on a subscriber that just has done a LU because it did not respond to a paging request. E.g. when a phone is rebooting, a SMS being delivered, the phone is doing the LU, sub_ready_for_sm will try to send a SMS (but the phone is not ready yet and it will timeout), then the paging code will send us an expiration note and we might set the LAC=0 for this subscriber. Ideally we would be able to stop the paging request once the subscriber is authenticated and then hand this to the SMS layer, right now the best thing to do is to detect that we will run into this problem and not send the SMS, not try to set the LAC=0.
2011-07-23fix some header file related issues preventing lcr from compilingHarald Welte1-1/+1
2011-07-19osmo-bsc: Only keep the newest of subsequent invalid positionsDaniel Willmann1-1/+12