aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface.c
AgeCommit message (Collapse)AuthorFilesLines
2010-04-20[vty] Allow to set the RACH NM attributes on a per BTS basisHolger Hans Peter Freyther1-0/+29
Be able to tune the RACH settings of the BTS via the vty interface, by default they are initialized to -1 which means we will use the content of the static array (BTS default) and can be changed via the VTY interface. I have verified the setting on the nanoBTS with wireshark and I have tested writing the config file.
2010-04-20[paging] Only page if we have some free channels right nowHolger Hans Peter Freyther1-0/+16
Only page if we have a load that is acceptable for paging. This option is off by default, and can be enabled per bts. The idea is that when we have no resources right now we will not page as it will only create more RACHs and increase the load.
2010-04-19Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-20/+19
Conflicts: openbsc/include/openbsc/abis_rsl.h openbsc/include/openbsc/mgcp.h openbsc/src/abis_rsl.c openbsc/src/chan_alloc.c openbsc/src/handover_logic.c openbsc/src/mgcp/mgcp_network.c openbsc/src/vty/command.c openbsc/src/vty_interface.c
2010-04-19[vty] Count pending paging requests for the vtyHolger Hans Peter Freyther1-1/+3
Implement a method to count the number of pending paging requests per bts and print it on the VTY. This helps to see how big the backlog of requests is for a given BTS.
2010-04-19[vty] Allow to allocate TCH/H and TCH/F too for testing purposes.Holger Hans Peter Freyther1-2/+10
2010-04-19[vty] Add a test command to allocate all SDCCHHolger Hans Peter Freyther1-0/+23
2010-04-18GPRS: change 'gprs enabled <0-1>' to 'gprs mode (none|gprs|egprs)'Harald Welte1-14/+15
This causes some config file breakage but sounds like a much cleaner approach than to have two separate config variables for this.
2010-04-18GPRS: BVCI 0 and 1 are not permitted.Harald Welte1-1/+1
According to TS 08.18, BVCI=0 is for the SIGNALLING entity, and BVCI=1 is for the PTM entity. Both should not be used by the PTP entity that we're configuring here.
2010-04-18BVCI 0 is not within the permitted rangeHarald Welte1-1/+1
2010-04-17bsc_msc_ip: Allow to put the MSC address into the network configHolger Hans Peter Freyther1-0/+25
2010-04-17Add rf_locked to the configuration writing.Holger Hans Peter Freyther1-0/+3
2010-04-17Add rf_locked to the configuration writing.Holger Hans Peter Freyther1-0/+3
2010-04-15[vty] Separate BSC and MSC statistics. Make it easy to print them.Holger Hans Peter Freyther1-41/+0
Move the statistics command into the MSC part and move the BSC statistics printing into a subroutine.
2010-04-13[vty] Separate BSC and MSC statistics. Make it easy to print them.Holger Hans Peter Freyther1-41/+0
Move the statistics command into the MSC part and move the BSC statistics printing into a subroutine.
2010-04-11[ipa] Handle losing the RSL/OML connection..Holger Hans Peter Freyther1-6/+5
This is addressing multiple issues regarding the loss of the OML/RSL link to the BTS. 1.) When we lose the OML link, close down all RSL connections on all TRXs (only tested with one TRX) and free the e1inp_line allocated for the OML connection. 2.) When we lose the RSL link on any TRX and we know to which lines this connection belongs, we will close down the OML connection as we have a problem to just reactivate the RSL link. 3.) When we lose the RSL link on any TRX and we do not know where it belongs to we will free the bfd we have allocated in the rsl listen/accept method and we properly close the socket (i could not test this one properly). 4.) When we already have a bts->oml_link we will throw it away and use the new link.
2010-04-11[vty] First set of fixes for the oml/rsl con droppingHolger Hans Peter Freyther1-4/+6
The code had wrong documentation in the VTY, it crashed when OML or RSL was not up yet. These issues are fixed right now.
2010-04-10[vty] Remove unused variables due them only being used in the layer3Holger Hans Peter Freyther1-4/+0
I moved the extra code to the layer3 VTY implementation but didn't remove the variables while doign so, silent compiler warnings.
2010-04-10[vty] Forward declare the extra init function the base is callingHolger Hans Peter Freyther1-0/+2
2010-04-09[rsl] Implement the T3111 timer to delay the RF Channel releaseHolger Hans Peter Freyther1-1/+1
2010-04-08[vty] Add ipa specific command to provoke failures to test OML/RSL reconnectHolger Hans Peter Freyther1-0/+46
We need to simulate OML/RSL failure in an easy and fast way and adding a command to do so seems like a good way to achieve this. The command is a bit misplaced, in one way it is no config and does not belong into the config node but then again it does not belong into the VIEW_NODE either as it is manipulating content.
2010-04-07vty: Fix the byteorder... of the bound_ipHolger Hans Peter Freyther1-1/+1
We are storing the bound_ip in host byteorder but when using ntohl we need to convert it back to to network byte order.
2010-04-07vty: Fix the byteorder... of the bound_ipHolger Hans Peter Freyther1-1/+1
We are storing the bound_ip in host byteorder but when using ntohl we need to convert it back to to network byte order.
2010-04-06Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-8/+9
* Move to the new log code and update binaries * Catch up with lchan changes from master Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/src/Makefile.am openbsc/src/bsc_rll.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_04_08.c openbsc/src/gsm_04_11.c openbsc/src/gsm_subscriber_base.c openbsc/src/handover_logic.c openbsc/src/silent_call.c openbsc/src/transaction.c openbsc/src/vty_interface.c openbsc/src/vty_interface_cmds.c
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther1-207/+2
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.
2010-04-06[vty] Move the VTY logging commands to a new fileHolger Hans Peter Freyther1-208/+2
Currently vty_interface.c is used for the BSC config, in case of the MGCP Gateway or the BSC Nat process these logging commands are not available. Move the commands to a new vty_interface_cmds.c file to allow to share basic commands across different programs.
2010-03-29[misc] Remove whitespace from the end of the line.Holger Hans Peter Freyther1-5/+5
2010-03-26move log/debug codebase to libosmocoreHarald Welte1-16/+16
The logging/debugging code is generic enough to move it into libosmocore while keeping OpenBSC specific definitions in openbsc itself. This commit uses the logging support present in libosmocore-0.1.2, you will have to update your library to this version.
2010-03-25lchan: Create a structure for MSC data of the lchanHolger Hans Peter Freyther1-3/+3
Prepare to split the BSC and the MSC part by putting the MSC data for a connection into a "gsm_subscriber_connection" struct and renaming the macros.
2010-03-25channel requests: Add configuration to handle paging any with TCHHolger Hans Peter Freyther1-0/+14
It is possible that the MSC is not sending the channel type it needs for the operations it wants to do. Add a configuration option to assign a TCH in case of paging any requests. It can be a good idea to leave SDCCHs free for location updating requests.
2010-03-25channel request: Store the to be assigned channel type in the GSM NetworkHolger Hans Peter Freyther1-0/+1
Store the mapping from request to channel type in the GSM Network struct as there is some policy involved with handling the request. E.g. in a half rate network we don't want emergy calls to be getting a TCH/F, or we want to have a different policy for early/late assignment of phone calls. Update the table when creating the network and when the neci is changed.
2010-03-24Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-2/+164
Keep a static version as the shell script is not dealing well with branch tags/names containing text. Resolve merge conflict in the Makefile.am by adding both sides to the list of sources for the libbsc.a Conflicts: openbsc/configure.in openbsc/src/Makefile.am
2010-03-24Merge remote branch 'origin/master' into on-waves/bsc-masterHolger Hans Peter Freyther1-52/+395
* Move to libosmocore * Move to new debugging architecture * Register the BTS types * Has only been compile tested Conflicts: openbsc/include/openbsc/Makefile.am openbsc/include/openbsc/gsm_data.h openbsc/include/openbsc/ipaccess.h openbsc/include/openbsc/mgcp.h openbsc/include/openbsc/msgb.h openbsc/include/openbsc/tlv.h openbsc/src/Makefile.am openbsc/src/abis_rsl.c openbsc/src/bsc_init.c openbsc/src/bsc_mgcp.c openbsc/src/chan_alloc.c openbsc/src/debug.c openbsc/src/gsm_subscriber_base.c openbsc/src/msgb.c openbsc/src/rest_octets.c openbsc/src/sccp/sccp.c openbsc/src/vty/command.c openbsc/src/vty_interface.c openbsc/tests/Makefile.am
2010-03-22GPRS: make NSEI configurable from VTYHarald Welte1-0/+20
2010-03-22GPRS: don't allow VTY configuration of GPRS parameters if GPRS inactiveHarald Welte1-0/+30
2010-03-22GPRS: make NSVC parameters VTY-configurableHarald Welte1-8/+77
2010-03-22Create new gprs-conf branch with the non-SGSN part of the gprs branchHarald Welte1-1/+44
This new gprs-conf branch is intended to contain everything needed to configure GPRS in the nanoBTS, but without implementing the SGSN/GGSN functionality. The SGSN/GGSN development will happen in a branch based on this branch called "gprs-sgsn"
2010-02-20split 'libosmocore' from openbsc codebaseHarald Welte1-3/+3
This library is intended to collect all generic/common funcitionality of all Osmocom.org projects, including OpenBSC but also OsmocomBB The library currently includes the following modules: bitvec, comp128, gsm_utils, msgb, select, signal, statistics, talloc, timer, tlv_parse, linuxlist msgb allocation error debugging had to be temporarily disabled as it depends on 'debug.c' functionality which at the moment remains in OpenBSC
2010-02-07[vty] Add a config for a simple OpenBSC BSC tokenHolger Hans Peter Freyther1-0/+16
We will use this token to identify us at the MSC for now. This assumes that something like OpenVPN is already used to secure the networking. In the future we will explore using TLS for the communication and certificates for the authentication.
2010-01-14[vty_interface.c]: Warn if no BTS could be allocatedDaniel Willmann1-1/+4
2010-01-10[OML] parse attributes depending on BTS typeHarald Welte1-1/+4
Some NM attributes are defined differently depending on the BTS type. Having one big nm_att_tlvdef[] table for all BTS types is no longer sufficient. This patch * introduces 'struct gsm_bts_model' to describe a BTS model * adds definitions of gsm_bts_model for BS-11 and nanoBTS * changes the abis_nm_tlv_parse() function: include a bts pointer
2010-01-08[on-waves] Use a default rtp_base_port, write it out in the configHolger Hans Peter Freyther1-0/+1
Currently "write memory" will not store the rtp_base_port of the network. Fix that by writing it out in write_net. Also set it to 4000 by default in the MGCP and in the BSC.
2010-01-07[vty] In case of handover only warn about the proxy mode when it is enabledHolger Hans Peter Freyther1-2/+4
Do not warn if the user has put "handover 0" in his configuration as this will not enable handover, only warn if it is going to be enabled.
2010-01-07[bssap] Allow to use a different country code tooHolger Hans Peter Freyther1-0/+13
* Be able to have a country code in the air but use a different country code when talking to the core network. * Now both country and network code can be different on air and on the MSC communication.
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr) (2nd part)Holger Hans Peter Freyther1-26/+0
Follow up on 424c4f0e2927d5a7538b31c69113c6e4f861d2c9. As pointed out by Sylvain on the mailinglist I need to remove this here as well. Do not call db.c code from code that is located in libbsc.a
2010-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr)Holger Hans Peter Freyther1-1/+1
vty_interface.c is part of libbsc.a but it started to use code which is found in db.c recently. Fork the subscriber dumping and provide more information on the layer3+ (MSC) commands. This is restoring the separation again.
2010-01-05[bsc_msc_ip] Turn the MNC hack into a config optionHolger Hans Peter Freyther1-0/+13
* Make it possible to have a different MNC in the RSL traffic than in the core network. * Introduce the "core network code NUMBER" variable. If it is set this network code will be used in traffic with the MSC. * Use the core_network_code number when sending a packet to the MSC * Regenerate the LAI (this is where I could have a bug) when sending packets to the BTS. * Add size checks. This is not tested, I might got something wrong.
2010-01-03vty: dump subscriber authentication (a3/a8) infos if availableSylvain Munaut1-0/+31
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03vty: Register logging_set_log_level_cmdSylvain Munaut1-0/+1
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-29Introduce gsm_lchans_name() for human readable lchan state nameHarald Welte1-1/+2
Also, use this new function to dump lchan state on VTY and to improve readability of RSL log messages.
2009-12-28vty: replace'logging level' numeric value with human readable stringHarald Welte (local)1-2/+10