aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2012-05-18rtp: Add a smalltalk script that can replay the state file.0.11.0Holger Hans Peter Freyther1-0/+56
2012-05-18rtp: Add lua script to split a trace by SSRC/streamsHolger Hans Peter Freyther1-0/+28
This can be used to replay RTP streams with more or less the same timing as the original one.
2012-05-17nitb: Enable the external RF Control interface for the nitb applicationHolger Hans Peter Freyther1-2/+18
Add argument handling for the nitb application and create the RF ctrl interface for being able to control the TRX using an external socket.
2012-05-17bsc: Move the osmo_bsc_rf file into the libbsc code and renameHolger Hans Peter Freyther3-2/+2
The nitb will provide the RF interface as well.
2012-05-11mgcp: Make it possible to drop RTCP packets coming from the BTS/NetHolger Hans Peter Freyther4-2/+56
The ip.access nanoBTS appears to send quite broken NTP timestamps in the RTCP messages might confuse equipment that uses the sender report of the BTS. Make it easy to experiment by adding an option to drop RTCP.
2012-05-11bsc vty: Provide a show mscs command to show the state of each MSCHolger Hans Peter Freyther1-0/+18
2012-05-07libmsc/db: Fix max value of ainfo->a3a8_ki_len in db_get_authinfo_for_subscrSylvain Munaut1-1/+1
Thanks to Robert Ingr for pointing this out Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2012-04-26RSL add debug statements when sending RSL EST REQ and RSL REL REQ.Harald Welte1-0/+6
2012-04-26bsc_api: Fix wrong order of log category and level argumentsHarald Welte1-1/+1
2012-04-26bsc_api: log RR STATUS from MS as NOTICE, not DEBUG levelHarald Welte1-1/+1
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 Freyther6-10/+10
Call the channel by the right name.
2012-04-17bsc_api: Send RR Release and de-activate the SACCH on errorHolger Hans Peter Freyther1-2/+2
In case the connection should not be created/accepted release the channel by sending a RR Release and de-activating the SACCH. Phones should deal better with that behavior.
2012-04-13mgcp: Catch up with the renaming of the MGCP GW binaryHolger Hans Peter Freyther2-2/+2
2012-04-11bsc: Allow to run a mixed TCH/H, TCH/F configurationHolger Hans Peter Freyther1-4/+22
In case the call handling starts on a TCH/H switch to a TCH/F if fullrate is requested. Add a method that is used to determine if the mode and current channel are compatible with each other.
2012-04-08add 'ciph_state' member to BTS-side lchan definitionHarald Welte1-0/+2
2012-04-08introduce HAVE_TM_GMTOFF_IN_TMHarald Welte3-0/+40
Not all architectures have the tm.tm_gmtoff member. This fixes cygwin builds.
2012-04-08make sure we still build on systems that don't have IPPROTO_GREHarald Welte1-0/+2
2012-03-26nat: Add another test case for TP-SRR clearing and number rewriteHolger Hans Peter Freyther2-3/+42
2012-03-16misc: Use other size modifiers to fix compiler warningsHolger Hans Peter Freyther3-4/+4
control_if.c:521:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat] osmo_bsc_bssap.c:473:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 7 has type ‘unsigned int’ [-Wformat] mgcp_main.c:162:4: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 4 has type ‘unsigned int’ [-Wformatt]
2012-03-16bsc: Prepare to have multiple MSC connectionsHolger Hans Peter Freyther6-26/+90
We now have a list of MSCs but in the code we will try to access the MSC with the nr 0.
2012-03-16bsc: Use the right connection for outgoing packetsHolger Hans Peter Freyther2-3/+11
This is needed for simple UDT messages where we do not have a SCCP connection.
2012-03-16bsc: Move more things to use osmo_msc_data* directlyHolger Hans Peter Freyther3-5/+3
2012-03-16bsc: Move the bsc_filter to use the osmo_bsc_sccp_conHolger Hans Peter Freyther2-9/+8
2012-03-16bsc: Move away from ->bsc.msc to use the selected MSCHolger Hans Peter Freyther3-15/+20
For multiple MSCs we should only have one place where the MSC is selected and the rest will extract it from somewhere.
2012-03-16bsc: Stop using net->bsc->msc and get the right msc from somewhere elseHolger Hans Peter Freyther2-4/+7
2012-03-16bsc: Create a osmo_bsc_data and embed osmo_msc_dataHolger Hans Peter Freyther14-88/+109
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-16bsc: Address warnings about implicit declarationsHolger Hans Peter Freyther1-0/+3
osmo_bsc_main.c: In function ‘main’: osmo_bsc_main.c:398:2: warning: implicit declaration of function ‘bts_init’ [-Wimplicit-function-declaration] osmo_bsc_main.c:399:2: warning: implicit declaration of function ‘libosmo_abis_init’ [-Wimplicit-function-declaration] osmo_bsc_main.c:418:2: warning: implicit declaration of function ‘bsc_bootstrap_network’ [-Wimplicit-function-declaration]
2012-03-16bsc: Fix compiler warning about wrong return and unused variableHolger Hans Peter Freyther1-2/+1
osmo_bsc_api.c: In function ‘bsc_cm_update’: osmo_bsc_api.c:195:2: warning: ‘return’ with a value, in function returning void [enabled by default] osmo_bsc_api.c:193:28: warning: unused variable ‘sccp’ [-Wunused-variable]
2012-03-16mgcp: implement a more tolerant parser based on strtok_r()Harald Welte3-259/+187
Instead of building complex manual byte-wise parsers, we simply use two strtok_r loops: one iterating over all the lines, the next one iterating over the invididual space-separated elements in the first line. The benefit is that we now accept \r, \n or \r\n, or any multiple of them as line ending. This works around incompliant MGCP implementations like that of Zynetix MSC. Addition: mgcp_analyze_header returns 0 when all out parameters have been set. Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2012-03-16mgcp: make sure all command line options are documentedHarald Welte1-0/+2
Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2012-03-16mgcp: consistently name bsc_mgcp osmo-bsc_mgcpHarald Welte1-3/+3
Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
2012-03-16mgcp_test: Add wrong messages as input and check what happensHolger Hans Peter Freyther2-2/+30
Test parsing some invalid messages and see if we start to crash.
2012-03-16mgcp_test: Rename method as it now operates on an array of messagesHolger Hans Peter Freyther1-2/+2
This code was cleaned up, catch up and rename the method.
2012-03-02misc: Deal with smatch warnings about the bitfieldsHolger Hans Peter Freyther2-5/+5
Use unsigned ints for the bitfield.
2012-03-01misc: Use msgb_free for freeing the messagesHolger Hans Peter Freyther6-6/+6
2012-03-01Improved generation of SYSTEM INFORMATIONs 2* and 5* for neighbour bandsAndreas Eversberg2-41/+265
In addition to SI 2 and SI 5, the SI 2ter and 2bis is generated, if neighbour cells in other bands exist. Also it is indicated in the rest octets of SI3, that SI 2ter is used. If no neighbour cell in a different band exists, the SI 2ter and SI 5ter is omitted. A special case is P-GSM range (channels 1-124). To be compatible with older phones, SI 2bis and SI 5bis is used. If the BCCH lays inside the P-GSM band, only neighbour cells of the P-GSM range are included in SI 2 and SI 5. If neighbour cells exist in the same band (900), but lay outside the P-GSM range, the SI 2bis and SI 5bis is used to extend the list of neighbour cells. The extension is also indicated in SI 2 and SI 5. If the BCCH lays inside the P-GSM range, but no neighbour cell exists in the same band outside the P-GSM range, the SI 2bis ans SI 5bis are omitted.
2012-02-24Make sure USSD code only responds *#100# for retrieving own numberTobias Engel1-1/+1
strstr() was used with wrong argument order, causing it to always match, and causing an invalid response to a variety of different SS and USSD requests. This has apparently caused havoc among a number of HTC phones which issue SS requests without user interaction upon boot, and then trip over our inappropriate response.
2012-02-17fix generation of frequency list (E-GSM vs. P-GSM 900)Harald Welte1-2/+3
2012-02-03bts_ipaccess_nanobts.c: Remove unused variable.Holger Hans Peter Freyther1-3/+0
This must have been obsoleted by the move to libosmo-abis. GCC warning: bts_ipaccess_nanobts.c: In function ‘ipaccess_drop_oml’: bts_ipaccess_nanobts.c:509:21: warning: variable ‘line’ set but not used [-Wunused-but-set-variable]
2012-02-03abis_rsl.c: Remove unused variable net.Holger Hans Peter Freyther1-2/+0
The old BSC code had code to override the payload type, this has been removed, remove the variable accessing it. GCC warning: abis_rsl.c: In function ‘ipa_rtp_pt_for_lchan’: abis_rsl.c:1590:22: warning: unused variable ‘net’ [-Wunused-variable]
2012-02-03abis_rsl: The rach information was not used, introduce a signalHolger Hans Peter Freyther2-12/+31
Introduce a SS_CCCH for the paging and the rach load. The paging code could now start using the signal. GCC warning: abis_rsl.c: In function ‘rsl_rx_ccch_load’: abis_rsl.c:1371:11: warning: variable ‘rach_access_count’ set but not used [-Wunused-but-set-variable] abis_rsl.c:1370:11: warning: variable ‘rach_busy_count’ set but not used [-Wunused-but-set-variable] abis_rsl.c:1369:11: warning: variable ‘rach_slot_count’ set but not used [-Wunused-but-set-variable]
2012-02-03abis_rsl.c: Remove unused variable ts_numberHolger Hans Peter Freyther1-2/+1
GCC warning: abis_rsl.c: In function ‘rsl_rx_chan_rqd’: abis_rsl.c:1245:10: warning: variable ‘ts_number’ set but not used [-Wunused-but-set-variable]
2012-02-03abis_om2000.c: Remove unused variable to_trx_oml.Holger Hans Peter Freyther1-1/+0
GCC warning: abis_om2000.c: In function ‘abis_om2k_sendmsg’: abis_om2000.c:804:6: warning: unused variable ‘to_trx_oml’ [-Wunused-variable]
2012-02-03vty: Remove two unimplemented OML functionsHolger Hans Peter Freyther1-24/+0
attribute get|set <0-255> (.HEX) was never implemented and the output about the unused attributes clutter the build output, remove them. GCC warning: abis_nm_vty.c: In function ‘oml_attrib_get’: abis_nm_vty.c:141:25: warning: unused variable ‘oms’ [-Wunused-variable] abis_nm_vty.c: In function ‘oml_attrib_set’: abis_nm_vty.c:152:25: warning: unused variable ‘oms’ [-Wunused-variable]
2012-02-03misc: abis_nm.c Use the result of ret.Holger Hans Peter Freyther1-1/+7
Use LOGP(DNM, LOGL_ERROR, ...); for errors in the abis_nm_rx_sw_act_req method. GCC warning: abis_nm.c: In function ‘abis_nm_rx_sw_act_req’: abis_nm.c:412:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
2012-02-03misc: gsm_data.c address compiler warningHolger Hans Peter Freyther1-3/+4
Assume nothing special needs to be done for the Nokia *site hardware. GCC warning: gsm_data.c: In function ‘gsm_set_bts_type’: gsm_data.c:342:2: warning: enumeration value ‘GSM_BTS_TYPE_NOKIA_SITE’ not handled in switch [-Wswitch]
2012-01-29ARFCNs are in the range of 0..1023, not 0..1024Harald Welte2-5/+5
I'm sure I read somewhere that it actually was 0..1024, as I kept wondering how stupid it was to use 10bit+1. However, that source was incorrect, as GSM TS 05.05 quite clearly states 0..1023
2012-01-27mgcp: add missing prototypes for send_mgcp_reset_*Harald Welte1-0/+3
2012-01-27osmo-bsc: Remove hard-coded check for codec preferecne in ASS CMDHarald Welte1-5/+0
When we get an assignment command from the MSC, we no longer have to check statically for certain codecs, as we have a vty-configured list of codecs that is checked just below.