aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc
AgeCommit message (Collapse)AuthorFilesLines
2011-01-06subscr: Show the number of pending requests on this subscriber.Holger Hans Peter Freyther1-0/+2
2011-01-06subscr: Make the subscr_put_channel work with the subscrHolger Hans Peter Freyther1-1/+1
The active channel might or might not be gone when the transaction has been released. Instead of passing an invalid subscriber conn we will pass the subscr that is ref-counted and guranteed to be valid at this point. subscr_put_channel could search the connections for an active connection if that is ever needed.
2011-01-06bsc: Clear the hand-over in case the new_lchan is failingHolger Hans Peter Freyther1-1/+1
When the new_lchan for handover is failing we should stop the handover operation. This is fixing a crash that we get a timeout on the lchan and have no conn set to it. Introduce a flag to the bsc_clear_handover to not free the lchan. In case the ho_lchan is failing we do not want to call lchan_release as it would reset the state.
2011-01-06misc: Fix compiler warning about incompatible pointersHolger Hans Peter Freyther1-1/+1
2011-01-06misc: Forward declare the struct gsm_bts_trx_ts to avoid warning.Holger Hans Peter Freyther1-0/+1
2011-01-06mncc: Switch the header file from u_int to uintHolger Hans Peter Freyther1-7/+9
Include stdint.h to have the C99 data types.
2011-01-06rtp: Move the RTP Proxy code out of RSL into the BSC/MSC domainHolger Hans Peter Freyther1-0/+11
Instead of creating the sockets in the RSL code we will do this in the CRCX_ACK, MDCX_ACK, DLCX_IND signal handler of gsm_04_08. Introduce a handover signal so we can repatch the RTP sockets in the gsm_04_08 as well.
2011-01-01mncc_sock: Add new 'mncc handler' functionHarald Welte1-1/+6
This adds mncc_sock_from_cc() as a handler function for CC messages to be passed to the MNCC interface. If there is no MNCC socket registered, we immediately release any CC related messages. Together with flushing all established CC transaction at MNCC socket close time, this ensures that all resources are released and no new resources can be established until the MNCC applicaiton has re-attached.
2011-01-01MNCC: pass the actual 'struct msgb' down the mncc_recv() callbackHarald Welte2-3/+4
this is required as we no longer have a dequeue-handler that can take care of free()ing the message after passing it to the MNCC handler.
2011-01-01mncc_sock: Clear all calls if MNCC application (LCR) disconnectsHarald Welte1-0/+1
2011-01-01MNCC: remove 'upqueue'Harald Welte1-2/+0
The MNCC messages now again get directly handled by the net->mncc_recv() callback. If the callee wants to put them in a queue, it' his business to do that.
2011-01-01MNCC: move cc_tx_to_mncc() from gsm_data.h into mncc.cHarald Welte2-6/+1
2011-01-01MNCC: rename mncc_send() to mncc_tx_to_cc()Harald Welte1-1/+1
This name clearly indicates: MNCC api transmits to Call Control, i.e. down from the L4/application into the L3 04.08 code.
2011-01-01MNCC: clarify naming / rename mncc_recv() to int_mncc_recv()Harald Welte1-1/+1
the int_ perfix (internal) symbolizes that this is the internal MNCC handler code, receiving messages from the MNCC interface point.
2011-01-01MNCC: rename mncc_upq_enqueue() to cc_tx_to_mncc()Harald Welte1-1/+1
The new function name clearly indicates: The Call Control (TS 04.08, msc-side in OpenBSC) wants to transmit something to the MNCC interface.
2011-01-01License change: We are now AGPLv3+ instead of GPLv2+Harald Welte20-120/+100
The reason for this is quite simple: We want to make sure anyone running a customized version of OpenBSC to operate a network will have to release all custom modifiations to the source code.
2010-12-27lchan: Every SS_LCHAN signal now sends a struct lchan_sig_dataHolger Hans Peter Freyther1-0/+7
The SS_LCHAN signals now always include the lchan_sig_data. For the measurement report it will optionally include the measurement report as well. Attempt to update all handlers of this signal as well
2010-12-26SGSN: Avoid duplicate MM contexts in case MS and SGSN disagree on P-TMSIHarald Welte1-0/+1
2010-12-26SGSN: Implement network-initiated PDP CTX DEACT when GGSN restartsHarald Welte2-0/+15
If the GGSN restarts, its restart counter will increase. We can detect that and accordingly release/delete all PDP contexts for that GGSN.
2010-12-26sms: Allow setting amount of failures through the vty.Holger Hans Peter Freyther1-0/+1
2010-12-26sms: Add vty command to clear the pending messageHolger Hans Peter Freyther1-0/+1
2010-12-26sms: Make the max_pending tunable via a vty runtime settingHolger Hans Peter Freyther1-0/+1
Make it possible to change the max pending via the vty. This can be useful to play with the performance of the queue.
2010-12-26sms: Provide some simple vty command for the state of the SMS queueHolger Hans Peter Freyther1-0/+4
2010-12-26sms: Begin sending SMS messages, handle failuresHolger Hans Peter Freyther1-0/+2
The sms queue will attempt to send one SMS per subscriber to fill all the available slots. It will handle the case where paging has not started, timed out or if there was any kind of other failure. It is also retransmitting SMS in case of failures.
2010-12-26sms: Introduce a SMS queue that will be responsible for deliveryHolger Hans Peter Freyther4-1/+13
The SMSqueue will be responsible of sending to the user. It will do so in a loop and will also try not to overload the BTS. This means the throughput of SMS will be limited.
2010-12-26sms: Create signal data for SMS with more informationHolger Hans Peter Freyther1-0/+9
This is providing access to the paging result, the sms, the transaction. This will allow the SMS queue to do decisions based on the source of the failure.
2010-12-26sms: Dispatch a failed signal in many of the MT-sms pointsHolger Hans Peter Freyther1-0/+1
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-25db: Introduce a limit in delivery attempts for the SMS searchHolger Hans Peter Freyther1-1/+1
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 Freyther1-0/+1
2010-12-25paging: Introduce a GSM_PAGING_BUSY event for a special timeoutHolger Hans Peter Freyther3-0/+6
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-24subscr: Add a VTY command to update the subscriber from the database.Holger Hans Peter Freyther2-0/+2
2010-12-24subscr: Introduce subscr_purge_inactive to free unused subscribersHolger Hans Peter Freyther1-0/+2
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 Freyther1-0/+3
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 Welte1-3/+4
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-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-23Authentication: use ENUM instead of magic numbersHarald Welte1-0/+7
This improves readability of the code...
2010-12-23Use 04.08 IMM ASS REJECT in case we run out of channelsHarald Welte1-0/+1
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 PDCH: rsl_ipacc_pdch_activate() operates on a timeslotHarald Welte1-1/+1
... not on the lchan.
2010-12-22MNCC: introduce mncc_upq_enqueue() wrapper around msgb_enqueue()Harald Welte1-0/+6
This wrapper will allow us to add queue related code at one single location in the code as opposed to three locations.
2010-12-22rsl: Remove unimplemented/unused rsl_paging_cmd_subscrHolger Hans Peter Freyther1-2/+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 Freyther1-1/+8
Reduce the dependencies on the header files.
2010-12-22misc: Remove gsm_subscriber.h include to reduce dependencies.Holger Hans Peter Freyther1-1/+1
2010-12-21ts Make the e1inp_ts delay configurableHolger Hans Peter Freyther1-0/+3
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.
2010-12-21abis_nm: Band aid on OML initialisation by queuing messagesHolger Hans Peter Freyther2-0/+9
Instead of sending many messages we will queue the OML messages and wait for the ACK/NACK before sending the next message from the queue. We tag the msgb to remember if we need to wait for an ack or not. We keep the order of all messages, on ACKs and similiar occassions we will drown the queue until we reach a message that needs to be acked and then wait for that ack again. Possible breakage can appear when we send an OML (e.g. BS11 specific message) msg which does not need to be acked through the abis_nm_sendmsg call. The fix will be to use the _direct version of this method. Re-Enable as it might have fixed something... who knows. Conflicts: openbsc/include/openbsc/abis_nm.h openbsc/include/openbsc/gsm_data.h openbsc/src/abis_nm.c openbsc/src/gsm_data.c
2010-12-14bs11_config: show the BPORT0 / BPORT1 configuration in 'query'Harald Welte1-0/+1
This introduces abis_nm_bs11_get_bport_line_cfg() and a parser for the result.
2010-12-01include: Add proper predeclaration for struct in mncc.hSylvain Munaut1-0/+3
We use them, so declare them. (avoid including all gsm_data.h) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01include: Small fixes to gsm_data.hSylvain Munaut1-2/+3
We don't really need openbsc/gsm_04_08.h or abis_rsl.h But we do need some definition from libosmocore Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01include: Add proper predeclaration for struct in system_information.hSylvain Munaut1-0/+3
We use them, so declare them. (avoid including all gsm_data.h) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01include: Add proper predeclaration for struct in abis_rsl.hSylvain Munaut1-0/+5
We use them, so declare them. (avoid including all gsm_data.h) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-12-01paging: Give the msgb that caused paging_stop up to the paging callbackSylvain Munaut1-1/+2
The handler might need to know some info of the paging response Signed-off-by: Sylvain Munaut <tnt@246tNt.com>