aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include
AgeCommit message (Collapse)AuthorFilesLines
2012-01-15mncc: Include size and offsets of struct gsm_mncc in the helloHolger Hans Peter Freyther1-1/+11
Increase the version number and send the sizeof of the gsm_mncc and the gsm_data_frame structure. Include the offsets of some members as well to maybe identify ABI problems. The reason we go through this is that we want to benefit from the native ABI and don't want to force packed structs.
2012-01-15lchan: Rename release_reason to release_modeHolger Hans Peter Freyther2-2/+4
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
2012-01-10nat: Implement clearing of TP-SRR flags from TPDUsHolger Hans Peter Freyther1-0/+2
Match IMSI and destination address against a set of entries, if it is matching the header will be modified and no sender report will be requested. Change the test case to request the sender report and then verify that this bit is reset to 0.
2012-01-06gprs: Honor GSM 04.64 8.4.2 Receipt of unacknowledged informationHolger Hans Peter Freyther1-0/+16
GSM 04.64 8.4.2 asks to ignore UI frames if the DLCI is not known, or if the "(V(UR)- 32) <= N(U) < V(UR)". E.g. if we want to have V(UR) == 511 and this frame is dropped, we would ignore N(U)'s 0 to 510. Calculate the delta. The code is based on Jonathan Santos's "LLC UI window" fix but the issue was discovered independly.
2012-01-06gprs_sgsn.h: Include timer.h for the timer structHolger Hans Peter Freyther1-0/+2
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-11-25BSSGP: Add functions required for true BSS-side BSSGP implementationHarald Welte1-1/+15
The BSS-side of BSSGP requires quite a number of additional functions for sending unidirectional messages that a SGSN never sends. This is a first step into completing the BSSGP implementation and making it ready to be used from osmo-bts and other BTS-side GPRS implementations.
2011-11-25BSSGP: add more doxygen commentsHarald Welte1-25/+29
2011-11-24GPRS NS: Add some doxygen API documentationHarald Welte1-17/+33
2011-11-06mncc: Introduce a hello packet that is sent to the client.Holger Hans Peter Freyther1-0/+8
Send a hello packet down to the client with the version number of the MNCC interface. The hello structure might be extended to include the endianes, size of each structure, etc.
2011-11-06gb_proxy: Make sure each parameter has some sort of documentationHolger Hans Peter Freyther1-0/+2
2011-11-06mncc: Address the fixme and put the mncc_sock_state in gsm_networkHolger Hans Peter Freyther1-0/+3
Remove the unused mncc_sock_write_pending, switch over from the static s_state to net->mncc_state.
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-10-16LLC: Add minimal LLGMM-RESET.req implementationHarald Welte1-0/+20
Using LLGMM-RESET.req, the GMM can request the LLC of the MS to reset all its parameters, particularly the sequence numbers. We don't yet do XID RESET retransmissions, and we don't yet generate a LLGMM-RESET.conf primitive back to GMM.
2011-10-14gprs: Fix various compiler warningsHolger Hans Peter Freyther1-0/+2
2011-10-14gprs: This comes from libosmocore, remove it hereHolger Hans Peter Freyther1-2/+0
2011-10-10add missing include files to noinst_HEADERS to make distcheck workHarald Welte1-1/+2
2011-09-26Fix Ericsson RBS2000 support after libosmo-abis mergeHarald Welte1-1/+1
The libosmo-abis merge broke Ericsson RBS support, as it didn't get the part right where the per-TRX OML sign_link is determined while transmitting OM2000 messages. As a result of this fix, we can remove the 'to_trx_oml' parameter to _abis_nm_sendmsg(), which is a nice cleanup.
2011-09-26gsm_data_shared: use 'const' whenever applicableHarald Welte1-7/+7
2011-09-13bsc_api.h: Add some comments to the API structureHarald Welte1-0/+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-06fix some "implicit declaration" warnings in libbscAlexander Huemer1-0/+11
2011-09-06fix some "implicit declaration" warnings in libtrauAlexander Huemer1-0/+7
2011-09-06fix some "implicit declaration" warnings in osmo-nitbAlexander Huemer4-0/+34
2011-09-04gsm_data_shared: add some fields for voice support of sysmo-btsHarald Welte1-0/+6
2011-09-03Add VTY command to specify default speech codecHarald Welte4-1/+15
In order to have the MNCC application reliably decide on the codec type, it needs to know if we are running on a TCH/F or TCH/H. Thus, we pass lchan_mode as a new parameter to the 'struct gsm_mncc'
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-23add missing ipaccess.h to Makefile.amHarald Welte1-1/+1
2011-08-23add control_cmd.h to Makefile.amHarald Welte1-1/+1
2011-08-22libctrl: Add a function to create the cmdHolger Hans Peter Freyther1-0/+1
2011-08-22libctrl: Mark the cmd set/get/verify functions staticDaniel Willmann1-8/+8
2011-08-22audio: From RTP point of view we can use one payload for HR/FR AMRHolger Hans Peter Freyther1-2/+1
Remove the separation of half-rate and full-rate AMR. The used rate can be found inside the AMR payload. The signalling of what kind of traffic channel is used can be done with the GSM 08.08 Chosen Channel IE in the Assignment Complete message. This way I can use a fixed payload type in the MGCP GateWay but have a mixed TCH/F and TCH/H config. E.g. use TCH/F FR3 for some subscribers when connected to MSC A but use AMR5.9 on a TCH/F for MSC B when all TCH/Hs are gone.
2011-08-22audio: Remove the hardcoding of the RTP PayloadHolger Hans Peter Freyther1-1/+0
The MGCP config must be correct and use 99 for RTP AMR.
2011-08-22misc: Move the bsc_parse_reg to libcommom and name it gsm_parse_regHolger Hans Peter Freyther2-1/+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 Ayuso13-409/+15
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-19src: use new msg->dst pointer instead of deprecated msg->trxPablo Neira Ayuso1-0/+2
This patch modifies openBSC code to use msg->dst which stores the pointer to the signalling link structure instead of the pointer to the transceiver structure. This patch prepares the introduction of libosmo-abis.
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-11E1 Input: Add rate counters for events related to E1 linesHarald Welte1-0/+10
2011-08-10LAPD: Propagate lapd_receive() errors to the E1 driverPablo Neira Ayuso1-0/+1
Scenario: BTS are configured and working, then the BSC stops working for some reason (crash or administrative stop). If the BSC comes back to life, LAPD among other things does not know about the previous existing TEIs. Instead of ignoring these frames, we notify the driver that we are seeing frames with unknown TEIs, so it can try to recover, e.g. by resending the SABM message.
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 Spaar3-0/+9
This includes the MetroSite, but also other Nokia BTS models.
2011-07-27GPRS: Fix buffer overflow in case of very long MS RA CAP IEHarald Welte1-1/+1
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-23fix some header file related issues preventing lcr from compilingHarald Welte1-4/+6
2011-07-19libcommon: Add DCTRL logging destination for libctrl related messagesDaniel Willmann1-0/+1
2011-07-19paging: Add method to find the paging data for a given subscriberHolger Hans Peter Freyther1-0/+2
2011-07-19mgcp: Implement RSIP based on a trunk levelHolger Hans Peter Freyther1-1/+1
Implement the RSIP spec extension to work on the specified trunk instead of hardcoding it to the virtual trunk.
2011-07-19bsc: Call the RF Control interface ctrl all the wayHolger Hans Peter Freyther1-1/+1
We had the rf_ctrl_name and the rf_ctl pointer, make both use the word ctrl.
2011-07-16db: use ANSI (void) function declarationsHarald Welte1-2/+2