aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-12-26sms: Dispatch a failed signal in many of the MT-sms pointsHolger Hans Peter Freyther2-2/+11
This attempts to dispatch a signal whenever a MT-sms is failing. In some cases, e.g. with freeing the transaction, this will also happen for MO-sms.
2010-12-26sms: Use the SMS in the signals where it makes sense.Holger Hans Peter Freyther1-2/+2
The signal_data was inconsistent. Sometimes we passed the transaction and sometimes we passed the sms. Change it to always pass the sms. The S_SMS_SMMA is a bit special as it does not involve any SMS.
2010-12-26sms: Add a simple SystemTap probe to see SQL queriesHolger Hans Peter Freyther1-0/+5
This will proble all queries done in the system. This can help to identify some issues with libdbi's performance.
2010-12-26sms: Add a script to query for unsent SMSHolger Hans Peter Freyther1-0/+10
This is generating the query statement. It can be used to play with database indexes and such.
2010-12-26sms: Add dummy script to create subscribers and SMSHolger Hans Peter Freyther1-0/+66
This is creating 1000 subscribers and 30 SMS each. The SMS itself is badly formatted (not a valid 7bit encoding) but it should be enough for a stress test.
2010-12-25sms: Fix a small typo.Holger Hans Peter Freyther1-1/+1
2010-12-25db: Introduce a limit in delivery attempts for the SMS searchHolger Hans Peter Freyther3-5/+8
We do not want to attempt submitting SMS that has failed for too many times. The failure could be due RF failure or due a bug in the message handling.
2010-12-25db: Add method to load a SMS by id.Holger Hans Peter Freyther2-0/+23
2010-12-25subscr: Sync the database before sending the attached signalHolger Hans Peter Freyther1-1/+10
If a signal handler accesses the database he will still see the old lac. Make sure he is seeing the new one. Update the subscriber from the database in case the query failed or other things have changed.
2010-12-25subscr: Print the lac of the subscriber.Holger Hans Peter Freyther1-0/+2
2010-12-25paging: Introduce a GSM_PAGING_BUSY event for a special timeoutHolger Hans Peter Freyther8-2/+19
Start counting the attempts of each paging request and call the callback with the PAGING_BUSY type when the paging request timed out but the subscriber was not paged at all. This can only happen with a huge paging backlog. In case the system has so many pending paging
2010-12-24Merge branch 'zecke/subscr'Holger Hans Peter Freyther8-20/+129
2010-12-24subscr: Add a VTY command to update the subscriber from the database.Holger Hans Peter Freyther5-19/+80
2010-12-24subscr: Add VTY command to purge subscribers that are held in memoryHolger Hans Peter Freyther1-0/+14
Call the subscr_purge_inactive function and mention how many subscribers were removed from the RAM.
2010-12-24subscr: Introduce VTY option to keep subscribers in ram.Holger Hans Peter Freyther1-0/+14
2010-12-24subscr: Introduce subscr_purge_inactive to free unused subscribersHolger Hans Peter Freyther2-0/+17
Introduce a method that will remove all subscribers that have a zero use count. This is useful if someone wants to purge subscribers from memory or wants to disable the everything in RAM feature.
2010-12-24subscr: Make it possible to keep subscribers in RAM.Holger Hans Peter Freyther2-1/+4
This is implemented by not freeing the subscriber when the reference count becomes smaller than zero. We hope that this will save many database accesses during the congres.
2010-12-24BSC Call Control: Actually implement call statisticsHarald Welte4-10/+21
The existing call realated statistics counters apparently were never used. This introduces a new set of counters, two for the MO and MT case.
2010-12-24BSC VTY: Print some more of the already-generated statisticsHarald Welte1-0/+7
2010-12-24SGSN / GMM: Only allow non-roaming IMSIsHarald Welte1-1/+10
As we do not yet use the HLR from the SGSN, we allow all MS to attach to our GPRS network. However, if this is running in a public environment, it could cause service interruption to users of commercial GPRS networks. Thus, we now check if the first 5 digits of the IMSI match the MCC/MNC of the cell that they want to register to. Thus, any subscribers with SIM cards from real operators will no longer be accepted.
2010-12-24BSC API: Make 'Got data in non active state' message as LOGL_INFOHarald Welte1-1/+2
LOGL_ERROR will make this message shpw up in everey default log config. However, as it seems, this is commonly observed in case a MS still sends a MS STATUS (in respons to the MM INFO) at the end of a location area update. It might be best to actually change the channel release procedure to make sure we can still pass such 'late' data to the MSC until the time the Layer2 has been completely released.
2010-12-24RSL: Make "waiting for SAPI=%d to be released" LOGL_DEBUGHarald Welte1-1/+1
2010-12-24Fix some stupid typos resulting in compile errors.Harald Welte1-2/+2
2010-12-24BSC VTY: Fix off-by-one / segfault in 'show bts NR'Harald Welte1-1/+1
2010-12-24BTS VTY: Order bts-trx-ts-lchan in 'show lchan'Harald Welte1-9/+7
2010-12-24BSC VTY: Print the current mode of a dynamic TCH/F / PDCHHarald Welte1-2/+6
2010-12-24BSC VTY: Change order of elements in 'show timeslot' commandHarald Welte1-2/+2
It's not logical to first show TS, then TRX, then BTS. It should always be ordered from big to small (BTS, TRX, TS)
2010-12-24BSC VTY: Remove extraneous 'else' from write_ts_single()Harald Welte1-1/+1
This caused the E1 parameters not to be displayed in case the channel was using frequency hopping.
2010-12-24BSC VTY: Fix 'show timeslot' command if BTS and/or TRX are specifiedHarald Welte1-5/+25
2010-12-23GPRS/GMM: Correctly look up MM Context in RA UpdateHarald Welte2-1/+19
If a MS changes RA, the RA will arrive in the new cell using the old TLLI (masked as foreign TLLI). So we need to look-up the TLLI in a special way, using the old RA as indicated in the 04.08 GMM message. There is still another bug remaining: As we somehow create a new LLC, the sequence numbers of our responses start from 0 again, which is not what the MS expects. This needs to be fixed in a follow-up patch.
2010-12-23GPRS: enhance msgb headroom/tailroom for SGSN (GMM)Harald Welte1-2/+2
In the GPRS NS protocol stack, the amount of NS/BSSGP headers like MS RADIO CAPA INFO can be quite long. In order to fit the full user message and those headers, we have to enlarge the head/tailroom of the msgb allocations.
2010-12-23More verbose logging of authentication internalsHarald Welte1-17/+21
2010-12-23IMM ASS REJ: Actually add t3122 parsing to vty codeHarald Welte1-0/+1
2010-12-23Authentication: use ENUM instead of magic numbersHarald Welte3-5/+13
This improves readability of the code...
2010-12-23Use 04.08 IMM ASS REJECT in case we run out of channelsHarald Welte3-1/+45
If the user has a non-zero 'timer t3122' in the config file, we will send an IMM ASS REJECT in case we run out of resources.
2010-12-23Dynamic PDC: Add VTY comand 'bts N trx M timeslot O pdch [de]activate'Harald Welte1-0/+52
On a nanoBTS, this command can be used to manually switch a given 'dynamic pdch/tch' timeslot from one mode into the other. There are no safeguards that the timeslot is not in use at the given time.
2010-12-23Dynamic PDCH: rsl_ipacc_pdch_activate() operates on a timeslotHarald Welte2-10/+14
... not on the lchan.
2010-12-22gsm48: Release the LU procedure only after the TMSI REALL_COMPLHolger Hans Peter Freyther1-2/+6
We send a LU Accept with the TMSI as the MI. According to the spec the phone should store this new TMSI and send a TMSI REALLOCATION COMPLETE to us. We will release the LU then and this should trigger the release procedure.
2010-12-22MNCC: introduce mncc_upq_enqueue() wrapper around msgb_enqueue()Harald Welte4-3/+9
This wrapper will allow us to add queue related code at one single location in the code as opposed to three locations.
2010-12-22mnccc.c: Add 2 line header describing what this file is all aboutHarald Welte1-0/+3
2010-12-22gsm48: Use NULL instead of 0 for pointers in C.Holger Hans Peter Freyther1-1/+1
2010-12-22rsl: Remove unimplemented/unused rsl_paging_cmd_subscrHolger Hans Peter Freyther2-14/+0
RSL should not know the details of a GSM Subscriber anyway.
2010-12-22misc: Remove gsm_subscriber.h from the db.h fileHolger Hans Peter Freyther3-1/+10
Reduce the dependencies on the header files.
2010-12-22misc: Reorder includes, move osmocore to the endHolger Hans Peter Freyther1-1/+2
2010-12-22misc: Remove gsm_subscriber.h include to reduce dependencies.Holger Hans Peter Freyther2-2/+2
2010-12-22misc: Include abis_rsl.h to remove some compiler warningsHolger Hans Peter Freyther3-0/+4
This was introduced by a recent change to gsm_data.h to include less header files. We really need to access the RSL information here so it is fine to include the file.
2010-12-21gsm48_tx_release_compl(): Don't use transaction after trans_free()Harald Welte1-1/+4
In commit 39e2eadc99c38876c39700cc2f8fa2a2973c1fdd a bug was introduced that used the 'trans' after trans_free() had already been called. This became visible now when the openbsc+lcr combination was calling an unknown/invalid telephone number in a MO call, resulting in a segfault.
2010-12-21Merge branch 'zecke/e1_speed'Holger Hans Peter Freyther10-12/+108
2010-12-21ts: Reduce the delay to 0 for OML and RSLHolger Hans Peter Freyther1-2/+2
This is possible after not sending more than one OML command that requires an extra ACK. For the RSL line we do not need any speed limitation.
2010-12-21ts Make the e1inp_ts delay configurableHolger Hans Peter Freyther5-2/+14
Currently the nanoBTS bootstrap code requires a high delay otherwise we are not bringing the device up properly. Changing the init code turns out harder than it seems like. So this is a workaround for that to allow a high speed RSL/OML connection after the bringup. The line driver can have a default TS delay. It is set to the current default for the nanoBTS and the BS11. For the ipaccess case we will set the delay lower for the RSL connection and inside the ipaccess-config we can set it low right away to have fast firmware flashing and such.