aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/gsm_data_shared.h
AgeCommit message (Collapse)AuthorFilesLines
2012-12-23lchan: Introduce T3109 handling for the release procedureHolger Hans Peter Freyther1-0/+1
T3109 is started when the SACCH is deactivated. It is stopped when the phones sends the DISC/UA/UM on LAPDm for the main signalling link. In case of timeout the abnormal release procedure will be initiated. Make sure to not issue the SACCH Deactivate twice to avoid confusing the equipment. This is still not fully spec compliant. In case of a timeout the abnormal release handling will be started which involves starting T3111+2. The error handling should be split out of the rf channel release method, e.g. lchan_release should be called and check if the channel release was already initiated.
2012-12-23lchan: Introduce a BROKEN state for the lchanHolger Hans Peter Freyther1-0/+2
If the CHAN ACTIV is NACKED we set the state backto NONE. This is problematic as our channel allocator will allocate from the front or from the back and if the channel is early in the list it might cause permanent failures. Introduce a BROKEN state and use it when the channel activation is failing for an unknown reason. Copy the cause so it can be inspected later.
2012-12-23lchan: Release the lchan more quickly, align with GSM 04.08Holger Hans Peter Freyther1-3/+0
* Release all channels with SAPI > 0 with the "local end release" (as of NOTE 1 of GSM 04.08). * No need to wait for all SAPIs to be torn down and the normal REL_IND/REL_CONF will call rsl_handle_release and the channel should be released. * Update the documentation
2012-12-23rsl: Rename the reason to release_mode and use the enum valueHolger Hans Peter Freyther1-2/+2
The API with 0 and 1 as legal values is hard to understand. Use the recently introduced enum values instead.
2012-12-20osmo-bts: Include lapdm.h to fix autoconf usability testHolger Hans Peter Freyther1-0/+4
Include the LAPDm header file so the size of struct lapdm_channel is known and gsm_data_shared.h can be included by itself.
2012-09-11gsm_data: Include a structure for the geographical location in gsm_btsDaniel Willmann1-0/+18
2012-08-29RSL: Add basic support for CSD transparent modeHarald Welte1-0/+13
We now have a lchan->csd_mode member that determines if RSL should activate the channel in CSD transparent services or not. The previous code always assumed CSD is non-transparent. (This requires libosmocore >= eed26116c96f03c6128fac3dead9054714af6cab)
2012-08-17VTY: dynamically create BTS "type" command syntaxHarald Welte1-0/+1
2012-08-17dynamically generate a proper VTY reference for phys_chan_configHarald Welte1-0/+4
this uses vty_cmd_string_from_valstr() from _very_ recent libosmocore, so you have to update the library, sorry.
2012-07-12move BTS-specific timezone override into sub-structureHarald Welte1-3/+5
Group all three structure members involved in bts-specific timezone handling into a sub-structure.
2012-07-02BSC: introduce new "sysmobts" BTS modelHarald Welte1-0/+1
so far, osmo-bts/sysmobts used to be entered as "sysmobts" type in the configuration file. However, there are some differences in the protocol/behaviour and we should reflect that by a new BTS plugin (with lots of code reuse from the nanobts driver).
2012-06-28gsm_data_shared: add structure for decoded parameters of RLC configHarald Welte1-0/+45
this is primarily needed on the BTS side, but we should also use it on the BSC side and make the parameters VTY-configurable.
2012-06-16gsm_data_shared: add handover related bits for osmo-btsHarald Welte1-0/+8
2012-04-19add loopback flag to lchan (for osmo-bts)Harald Welte1-0/+1
2012-04-18lchan: Fix the name of the SACCH in the variable namesHolger Hans Peter Freyther1-1/+1
Call the channel by the right name.
2012-04-08add 'ciph_state' member to BTS-side lchan definitionHarald Welte1-0/+2
2012-03-16bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther1-1/+2
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-03-02misc: Deal with smatch warnings about the bitfieldsHolger Hans Peter Freyther1-4/+4
Use unsigned ints for the bitfield.
2012-01-17bts: Convert the rsl_link to be a struct ipabis_linkHolger Hans Peter Freyther1-0/+4
2012-01-15lchan: Rename release_reason to release_modeHolger Hans Peter Freyther1-1/+3
Use the name of GSM 08.58 for the release mode.
2012-01-15channel: Fix a typo in the lchan state documentationHolger Hans Peter Freyther1-1/+1
2011-12-02Add NITZ (timezone) support as part of MM INFOGus Bourg1-0/+5
The UTC offset from the operating system will be used by default to calculate the NITZ in MM INFO. However, a "timezone" vty command is added at the BTS level, allowing BTS-specific overrides, e.g. in case BTSs are distributed accross multiple timezones.
2011-10-18libbsc/nokia_site: Fix reset procedure and add option to skip it.Sylvain Munaut1-1/+2
do_reset was not initialized anywhere anymore, so the reset was never triggered. It's now fixed and we add an option to skip it in the config so that when in production, you can restart without config changes quickly. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-09-26gsm_data_shared: use 'const' whenever applicableHarald Welte1-7/+7
2011-09-07add a per-lchan buffer for the last SID frame for osmo-btsHarald Welte1-0/+4
2011-09-06add AMR mode member of gsm_lchan for osmo-btsHarald Welte1-0/+14
2011-09-04gsm_data_shared: add some fields for voice support of sysmo-btsHarald Welte1-0/+6
2011-08-24add missing #include line to gsm_data_shared.hHarald Welte1-0/+2
gsm_data_shared.h references structures defined in abis/e1_input.h
2011-08-22misc: Move the bsc_parse_reg to libcommom and name it gsm_parse_regHolger Hans Peter Freyther1-0/+9
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-08-19src: port openBSC over libosmo-abis0.9.15Pablo Neira Ayuso1-10/+2
This is a big patch that ports openBSC over libosmo-abis. Sorry, the changes that are included here are all dependent of libosmo-abis, splitting them into smaller pieces would leave the repository in some intermediate state, which is not desired. The main changes are: - The directory libabis/ has been removed as it now lives in libosmo-abis. - new configuration file format for nanoBTS and HSL femto, we need to define the virtual e1_line and attach it to the OML link. - all the existing BTS drivers (nanoBTS, hsl femto, Nokia site, BS11 and rbs2000) now use the new libosmo-abis framework. - use r232 input driver available in libosmo-abis for bs11_config. - use ipa_msg_recv instead of old ipaccess_read_msg function. - delete definition of gsm_e1_subslot and input_signal_data. These structures now lives in libosmo-abis. Most of this patch are deletions of libabis/ which has been moved to libosmo-abis. This patch also modifies openBSC to use all the new definitions available in libosmocore and libosmo-abis. In order to do that, we have replaced the following: - DINP, DMI, DMIB and DMUX by their respective DL* correspondences. - SS_GLOBAL by SS_L_GLOBAL - SS_INPUT by SS_L_INPUT - S_GLOBAL_SHUTDOWN by S_L_GLOBAL_SHUTDOWN - SS_INPUT by SS_L_INPUT - S_INP_* by S_L_INP_* sub-signals - E1INP_NODE by L_E1INP_NODE vty node This patch has been tested with: - one nanoBTS - the HSL femto with the examples available under libosmo-abis - BS11 with both dahdi and misdn drivers.
2011-08-11RSL: add timer for lchan activation/deactivation without BTS responseHarald Welte1-0/+1
The timer callback will simply reset the lchan state to NONE in order to prevent channels getting stuck in 'activation requested' or 'deactivation requested' states.
2011-08-10NOKIA: Move more static variables into 'struct gsm_bts'Harald Welte1-0/+7
2011-08-10Initial version of Support for Nokia *Site BTSDieter Spaar1-0/+1
This includes the MetroSite, but also other Nokia BTS models.
2011-06-29properly reset the MO state of all MO on Abis disconnect0.9.14Harald Welte1-0/+5
When we loose the A-bis link, we should properly re-set the administrative, operational and availability state of all MOs
2011-06-29add lchan->meas for BTS side codeHarald Welte1-0/+38
TODO: move all of the BTS side per-lchan data behind a 'void *role' pointer like 'struct gsm_bts'
2011-06-26system information related bits for osmo-btsHarald Welte1-1/+9
2011-06-25move {ts,lchan}2chan_nr() functions to gsm_data_shared.cHarald Welte1-0/+5
... this way osmo-bts can use them
2011-06-07add back-pointer for l1 as part of BTS role.Harald Welte1-0/+4
2011-06-06add mo->bts member so we can discover which BTS a MO belong stoHarald Welte1-0/+1
2011-06-06move objclass2{nmstate,mo,}obj() to gsm_data_shared.c (and prefix)Harald Welte1-1/+12
2011-06-05split gsm_data.c in gsm_data_shared.c and gsm_data.cHarald Welte1-9/+4
This facilitates the use of gsm_data.c from osmo-bts
2011-06-03Introduce per-ts TSCHarald Welte1-0/+1
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 Welte1-19/+24
... 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 Welte1-0/+517
gsm_data.h is the part that contains BSC-specific data, whereas gsm_data_shared.h is now shareda with osmo-bts