aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/vty_interface_layer3.c
AgeCommit message (Collapse)AuthorFilesLines
2010-07-30Use hexparse() from libosmocore >= 0.1.14Harald Welte1-27/+1
2010-07-27gsm_04_80: Allow to specify the alert pattern for the notificationHolger Hans Peter Freyther1-3/+6
Allow to specify the level (not the category) of the notification this provides an easy way to test it on the phones.
2010-07-27gsm_04_80: Send a Release Complete otherwise the USSD unit stays BUSYHolger Hans Peter Freyther1-0/+1
We need to release the USSD unit, otherwise it is staying blocked and will stop to function (even across LUs on my a1200). This code should encode the transaction and the direction depending on the network state but this is omitted right now.
2010-07-26gsm_04_80: Add untested code for USSD notification...Holger Hans Peter Freyther1-0/+44
One should be able to send a USSD Notification to a given subscriber if we has an active link...
2010-07-26vty_interface_layer3: Fix a subscriber memory leak..Holger Hans Peter Freyther1-1/+3
2010-06-30* Fix null ptr dereference and sms memleak in case the recipient of an sms ↵Nico Golde1-6/+10
sent via vty is not attached. Store the sms in the database in this case for later delivery. The problem is that sms_from_text returns NULL in case the subscriber is not attached which a) leaks memory of the previously allocated sms and b) runs into a null ptr dereference in _send_sms_str(). There may be a better solution than this but this is the easiest way of noticing and taking action I could find without changing return values of sms_from_text.
2010-06-30[BSC] VTY: Fix parsing of uppercase hex digitsHarald Welte1-1/+1
2010-06-24[BSC] Enable the use of whitespaces in the subscriber nameHarald Welte1-2/+7
This patch (originally by Luca Bertoncello) adds support for spaces in the subscriber name when specified from the VTY.
2010-06-17bsc_api: Make paging/silent call work with the subscriber_connectionHolger Hans Peter Freyther1-1/+1
Do not use the lchan for the paging but operate on the subscriber_connection, change the signals too to not carry the lchan but the subscriber connection... the silent call and vty code still assume there is a lchan inside the subscriber connection.
2010-06-14auth: Add support for XOR test A3A8 algo (and vty commands)Sylvain Munaut1-13/+26
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14vty/auth: Make sure we clear the last tuple when changing auth paramsSylvain Munaut1-0/+3
If the Ki or auth algo changes, chances are that the last tuple cannot be used anymore, so clear it. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14db: Change naming convention for auth info functionsSylvain Munaut1-4/+4
- exported function have a 'db_' prefix - use 'sync' vs 'set' - use 'for' vs 'by' Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-06-14db: Rename AuthTuples to AuthLastTuplesSylvain Munaut1-1/+1
Ultimately, we'll need to store both the last used tuple by a subscriber and a list of known tuples (for unknown Ki). What's currently implemented for AuthTuples is the former behavior, so reflect that. The second use case will be added as a separate table with separate accessors later on. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-05-27VTY: Fix help for 'subscriber .... a3a8' commandHarald Welte1-2/+2
2010-05-27VTY: Unify Subscriber functions, remove SUBSCR_NODEHarald Welte1-122/+95
We previuosly had a 'subscriber node' under the 'configure node' which is strange, since subscriber data is not part of the config file. The relevant operations have now all been moved to the ENABLE node of the VTY. Furthermore, 'show subscriber' does no longer require the IMSI but can also identify the subscriber by ID, TMSI or other identifier.
2010-05-25Migrate VTY code to libosmovtyHarald Welte1-3/+3
2010-05-16VTY: decouple telnet_interface from 'struct gsmnet'Harald Welte1-11/+17
We want the VTY and telnet code to be independent from the BSC application(s). As a side note, we also like to eliminate static global variables for 'struct gsm_network' all over the code. As such, telnet_init() is now passed along a "private" pointer, which getst stored in telnet_connection.priv. This telnet_connection is then stored in vty->priv, which in turn gets dereferenced if anyone needs a reference to 'struct gsm_network' from the BSC vty code. Also: * vty_init() now calls cmd_init() * the ugliness that telnet_init() calls back into the application by means of bsc_vty_init() function has been removed. * telnet_init() now returns any errors, so the main program can exit e.g. if the port is already in use.
2010-05-16VTY: use argv_concat() instead of vty_argv_to_buffer + buffer_getstr()Harald Welte1-11/+11
2010-05-14VTY: More interactive helpHarald Welte1-10/+31
2010-05-14[VTY] Remove OpenBSC specific node-exit handling from src/vtyHarald Welte1-0/+15
The idea is to move the VTY code into libosmocore at some point, and for that we need to eliminate OpenBSC specifics from it
2010-05-14VTY: Introduce common code to add 'description' to objects like BTSHarald Welte1-19/+2
There is now an option to add a human-readable description to objects that are configured in the VTY.
2010-05-12Ensure all 'view' commands are availalbe from 'enable' tooHarald Welte1-8/+8
2010-04-30[vty] Allow to create a buffer in a given context.Holger Hans Peter Freyther1-1/+1
Stop using the global vty context for all allocations and allow to embed the buffer into a given context, and allocate sub buffers with the context of its parent.
2010-04-15[vty] Separate BSC and MSC statistics. Make it easy to print them.Holger Hans Peter Freyther1-0/+37
Move the statistics command into the MSC part and move the BSC statistics printing into a subroutine.
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-01-06[vty] Move db usage out of the libbsc (fork dumping of subscr)Holger Hans Peter Freyther1-5/+52
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-03vty: Add command to set auth algo & Ki for a subscriberSylvain Munaut1-0/+62
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-01-03silent_call: Add option to choose channel typeSylvain Munaut1-16/+46
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-12-22Implement a better sending of pending SMSSylvain Munaut1-10/+7
The previous implementation had some shortcomings: - If the MIN ID given was not the exact id of the first unsent SMS, it would try to submit the same sms several time until id++ finally made id go to the next one. - If a subscriber had several SMS pending it would try to submit them individually (only to get rejected because a paging for that subscriber was already in progress) Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2009-11-17silent call: add header file for function prototypesHarald Welte1-0/+1
2009-11-14VTY (silent sms / sms): better error reportingHarald Welte1-4/+9
2009-11-14silent sms: make it silent again (type 64), fix subscriber refcount leakHarald Welte1-1/+5
2009-11-14Add "silent call" feature to OpenBSCHarald Welte1-1/+55
This allows the administrator to use the vty interface to issue a silent call to a given subscriber by using "subscriber extension XXXX silent call start" and stopping that silent call with "subscriber extension XXXX silent call stop"
2009-11-14[VTY] restructure sms and silent sms commandsHarald Welte1-63/+32
2009-11-14[VTY] Add feature to send silent SMS from consoleHarald Welte1-4/+46
"Silent SMS" is a SMS that is delivered (and confirmed) but not shown on the display of the phone. You can now send such SMS by using sms send silent extension 12345 text or sms send silent imsi 123451234512345 text
2009-11-06vty: Do not leak the gsm_subscriberHolger Hans Peter Freyther1-0/+5
2009-08-17[vty] Move layer3+ functionality to vty_interface_layer3.cHolger Hans Peter Freyther1-0/+315
Move everything that is policy, requires access to a DB or is generally in the domain of the MSC to vty_interface_layer3.c.