aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
AgeCommit message (Collapse)AuthorFilesLines
2009-12-27vty: replace'logging level' numeric value with human readable stringHarald Welte (local)1-2/+10
2009-12-27set the TRX nominal power by default and/or VTYHarald Welte (local)1-6/+15
2009-12-27rename gsm_lchan_name() to gsm_lchant_name()Harald Welte (local)1-1/+1
2009-12-26[debug] add new 'logging level' command to set loglevel more user friendlyHarald Welte (local)1-2/+29
2009-12-22Import the new logging architectureHolger Hans Peter Freyther1-0/+173
This is the new logging architecture, including * support for multiuple logging targets like stderr and vty * log levels in addition to categories/subsystems * filtering based on imsi, i.e. only see events for one subscriber * dynamically change log level for each category for each vty
2009-12-22pretty-print statistics in 'show statistics'Harald Welte1-7/+7
2009-12-22print last measurement report during 'show lchan'Harald Welte1-0/+42
2009-12-22statistics: Introduce 'struct counter' instead of using unsigned longHarald Welte1-18/+23
This has the advantage that counters can be added all over the code very easily, while having only one routine that stores all of the current counter values to the database. The counters are synced every 60 seconds, providing relatively fine grained statistics about the network usage as time passes by.
2009-12-22bts: Allow config of RACH control parameters tx-integer & max retransSylvain Munaut1-0/+32
Tweaking theses can be useful especially tx-integer that influence both the spread of rach attemps and the delay between two attemps. Looking up GSM 04.08 3.3.1.1.2 & 10.5.2.29 can help determine good values. The default are choosed with a wide spacing between attemps (tx integer = 9 -> T=12 & S=217 (non-combined CCCH/SDCCH) or 115 (for combined CCCH/SDCCH)). This alleviates the problem of responding to several RACH attempts by a same MS, allocating several RF channels when only 1 is needed. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-22Display current channel usage load in 'show bts' and 'show network'Harald Welte1-0/+32
This is just the load at one given instant. We definitely also want to see some averages and record the measurements in a database later.
2009-12-22[vty] Document the various T??? we are ausing.Holger Hans Peter Freyther1-13/+13
Provide a small individual documentation string.
2009-12-22keep some internal statistics inside OpenBSCHarald Welte1-0/+36
the statistics will give us some idea about the network load and performance.
2009-12-21remove duplicate flag for cell barringHarald Welte1-3/+3
it's sufficient if we keep the state of cell barring in one place
2009-12-21make handover algorithm parameters configurable from VTYHarald Welte1-0/+65
2009-12-20don't enable handover unless RTP Proxy is enabledHarald Welte1-0/+6
We cannot support in-call handover of calls without a RTP proxy, since at the time of the handover the SSRC, sequence number and timestamp of the RTP frames change.
2009-12-19[handover] add VTY parameter to enable/disable handoverHarald Welte1-0/+14
2009-12-14[PATCH] fix MM INFO parsing in vty_interfaceHarald Welte1-0/+1
2009-12-14Add VTY setting for whether or not to sending MM INFOHarald Welte1-0/+12
2009-12-13[RRLP] make RRLP mode configurable from config fileHarald Welte1-0/+14
We now support different RRLP modes (including "none" to disable RRLP), you can configure it via "rrlp mode" in the "network" section of openbsc.cfg.
2009-12-12[VTY] add more cell reselection parameters to VTYHarald Welte1-4/+35
allow setting of 'cell reselection hysteresis' and 'rxlev access min' from VTY for experiments with cell reselection.
2009-12-12print some more RF related information about BTS in VTYHarald Welte1-0/+6
2009-12-06location updating reject cause now specified on VTY rather than command line ↵Harald Welte1-0/+15
argument
2009-12-02move RTP socket information from timeslot to lchanHarald Welte1-10/+9
With ip.access, in case of TCH/H, we have one RTP stream for each half-slot (lchan), not just one per on-air timeslot. This is quite different from a classic BTS where the TRAU frames of the two TCH/H channels would be part of the same 16k sub-slot in a E1 timeslot.
2009-12-01Replace template-based SYSTEM INFORMATION with real implementationHarald Welte1-3/+4
Before this commit, OpenBSC used templates for the SYSTEM INFO 1, 2, 3, 4, 5 and 6 messages. Those templates were patched in various places to reflect the network config like ARFCN. Now, we actually generate those SI messages ourselves, using values from the configuration file, and even calculating neighbor cell lists. All bts'es that you have configured in OpenBSC will end up in the neighbor cell list - which should be more than sufficient for the current small-single-site networks.
2009-11-24[vty] Add option to disable RF on a given TRX.Holger Hans Peter Freyther1-0/+12
- Make sure that on runtime the Radio Carrier can be locked and unlocked. The vty code calls into the Abis NM to lock/unlock the channel and the state is stored there. - Make sure that on start the Radio Carries remains offline and we are not starting it. On start the radio carrier is either locked or unlocked. This means the RSL will not connect until the RF is unlocked. It will connect then. To see RSL bringup failures one needs to parse the RSL nack message. - When the TRX is locked on startup the RSL link will only be established after it will be unlocked.
2009-11-22[network] Add config option for the remaining network timersHolger Hans Peter Freyther1-0/+30
There are all set to 0 and not used within the code yet but should be used in the future.
2009-11-22[network] Make T3101 configurable and use it in abis_rslHolger Hans Peter Freyther1-0/+23
2009-11-19[vty] Remove tab to make the cell_identity nicely indentHolger Hans Peter Freyther1-1/+1
2009-11-19[vty] Write out the neci configurationHolger Hans Peter Freyther1-0/+1
2009-11-18Merge remote branch 'origin/master'Harald Welte1-1/+13
2009-11-18max_power_limit: the limit is 24 dB !Harald Welte1-1/+1
2009-11-17Fix configuration file generationAndreas.Eversberg1-1/+1
Assign the encryption status to the right variable. Signed-off-by: Holger Freyther <zecke@selfish.org>
2009-11-17[si] Make it possible to set the NECI value...Holger Hans Peter Freyther1-0/+12
Allow to configure the NECI value... and change code that is relying on the NECI value.
2009-11-17fix some more compiler warningsHarald Welte1-1/+1
2009-10-20ip.access: Support multi-TRX / RSL stream IDHarald Welte1-8/+41
In order to support multi-TRX configurations, we need to be able to cope with multiple RSL streams (each with their own stream identifier) inside one ip.access TCP connection. Since this is very similar to using the TEI on a E1 line, we simply recycle the logic and data fields that are used for the TEI.
2009-10-01[lac] Do not use the reserved LAC 0x0 for two different thingsHolger Hans Peter Freyther1-0/+7
We are using LAC=0 for remembering that a GSM subscriber is detached. I recently added code to gsm_bts_by_lac that will return every BTS in case the lac is 0. Harald highlightes that we would now search for detached subscribers at every BTS of our network which is clearly not what we want. Introduce two defines for the two reserved LAC, add a pointer to the specification, check that our config files do not contain these reserved values, use the define and change gsm_bts_by_lac to use the other define.
2009-09-30[lac] The lac must be 16 bit. Change it in gsm_bts and vty parsingHolger Hans Peter Freyther1-3/+3
The LAC can be 16bit of size. the generation of the LAI, struct gsm_subsriber and the BSC<->MSC was already using it as a 16bit (short) value. Change struct gsm_bts to parse 16bit and change the vty configuration parsing code to deal with a short too.
2009-09-28[bsc] Store the cell_identity in gsm_bts and set it on the SI3 and SI6Holger Hans Peter Freyther1-1/+22
Transfering the cell_identity from BSC to MSC is required for the on-waves.com support. Allow to set the cell_identity in the cfg file and patch the system information tables to set it.
2009-09-28[tmsi] Make the tmsi a 4 octet numberHolger Hans Peter Freyther1-2/+2
tmsi is four octets long, there is no need to make it a string and then jump through hoops to convert it to a number. Keep the database using it as a string to benefit from the NULL handling of the db. Introduce the reserved tmsi which has all bits set to 1 according to GSM 03.03 §2.4 and start checking for it and make sure the db code will never allocate such a tmsi.
2009-08-30add VTY/configfile command for setting encryption (A5) levelHarald Welte1-0/+14
This is just configuring the gsm_network property, nobody uses it yet
2009-08-17[vty] Move layer3+ functionality to vty_interface_layer3.cHolger Hans Peter Freyther1-258/+2
Move everything that is policy, requires access to a DB or is generally in the domain of the MSC to vty_interface_layer3.c.
2009-08-15sms_from_text needs to return struct gsm_sms *Harald Welte1-3/+3
2009-08-15fix printing of TMSI on VTYHarald Welte1-1/+2
2009-08-14allow vty to set periodic location updating timer t3212Harald Welte (local)1-0/+15
2009-08-14display TMSI in 8 digit hexHarald Welte (local)1-1/+1
2009-08-14add 'show subscriber cache' vty command to debug subscriber refcount leaksHarald Welte (local)1-0/+17
2009-08-14sms send pending now sends _all_ pending at the same timeHarald Welte (local)1-8/+11
2009-08-13fix segfault in vty sms sending codeHarald Welte (local)1-3/+2
2009-08-13add 'ms max power' vty command to set the maximum MS power in dBmHarald Welte (local)1-0/+13
2009-08-13factor out the function to generate struct gsm_sms from a stringHarald Welte1-3/+12