Commit Graph

641 Commits

Author SHA1 Message Date
Harald Welte 03d2739792 add new 'ipaccess-config' program to set Unit ID and primary OML NVRAM parameters of ip.access BTS 2009-04-30 15:53:07 +00:00
Harald Welte 769ae74d14 functionality to set nanoBTS NVRAM attributes and to restart BTS 2009-04-30 15:16:27 +00:00
Harald Welte ba26077b49 more pretty-printing of ipaccess-find output 2009-04-30 15:15:37 +00:00
Harald Welte 4b00735c3a Add some more ip.access specific OML attributes/messages. In this case it is
about configuring the primary OML link IP address in the NVRAM of the device.
2009-04-29 22:58:38 +00:00
Harald Welte 10270f8d70 bs11_config: print PLL 'work' and 'set' values during query 2009-04-29 22:33:02 +00:00
Harald Welte e7047e9204 add missing newline in debug statement for RS232 TX 2009-04-29 22:32:10 +00:00
Harald Welte 28ec6e0301 activate subchannel muxer/demuxer on E1 TS 3 2009-04-29 16:21:34 +00:00
Harald Welte 9f538a2c55 Fix order of subchannel bits (Andreas Eversberg) 2009-04-29 16:21:18 +00:00
Harald Welte 6a3edba774 remove extra whitespace in output of 'query' command 2009-04-29 13:27:56 +00:00
Harald Welte dea439a320 read the PLL config as part of the bs11_config 'query' command 2009-04-29 13:25:57 +00:00
Harald Welte d0bdb1ee2e make "PLL mode" setting actually work rather than segfault 2009-04-29 13:01:50 +00:00
Harald Welte 0b2d7d2a62 Add bs11_config commands to set the PLL mode from E1_LOCKED to STANDALONE
and vice-versa.  This has not yet been tested yet.
2009-04-28 16:31:38 +00:00
Holger Freyther 43fcce93f1 [misdn] Add option to automatically release layer2 on exit
Patch by Andreas Eversberg to automatically release
layer2 on exit of the application. Made the naming of
the variables consistent (only release_l2 and not both
release_l2 and l2_release).
2009-04-22 22:08:07 +00:00
Holger Freyther d410074a2c [bsc_hack] Allow to select the cardnr defaulting to number 0
Patch from Andreas Eversberg to allow to select the ISDN
card number. The default remains the same.
2009-04-22 22:07:31 +00:00
Holger Freyther 8c907fa2bc [bsc_hack] Allow to set the location area code
Patch by Andreas Eversberg to allow to set the
location area code from the command line.
2009-04-22 22:07:07 +00:00
Holger Freyther d08d5915eb [bsc_hack] House keeping, remove dead code
This callback is not used from within the paging layer. We do
have a different set of callbacks in place. Remove it here.
2009-04-19 06:39:29 +00:00
Holger Freyther 9f93abd01a [db] Introduce a VLR database here
This is not a proper VLR yet, specially the (subscriber_)id
used might not be the proper one in a real network.
2009-04-19 06:35:23 +00:00
Holger Freyther 41cebd6436 [db] Make the db connection static 2009-04-19 06:35:20 +00:00
Holger Freyther e3283e8376 [db] Keep track of the current gsm_network 2009-04-19 06:35:16 +00:00
Holger Freyther 3d248ceb2a [bsc_hack] Initialize db as part of the network
Let us establish the rule that there is one DB
per network. This will allow to assign a BTS of
the network to a subscriber that is loaded from
the db across restarts.
2009-04-19 06:35:12 +00:00
Holger Freyther b64f0f313f [db] Remove FIXME as it is fixed... 2009-04-19 06:35:05 +00:00
Holger Freyther e5ad5b2d45 [subscriber] Introduce subscr_put_channel
Introduce subscr_put_channel to release a channel and to
allow gsm_subscriber.c to hand this channel to any suitable
pending requests.
2009-04-12 05:37:52 +00:00
Holger Freyther c4e61fa6c8 [subscriber] Update the current_bts field on imsi detach and LOC accept
When sending LOCATION UPDATING REQUEST Accept or when getting
a IMSI Detach update the gsm_bts of the gsm_subscriber.
2009-04-12 05:37:29 +00:00
Holger Freyther 4b8eadf5d5 [tests] Change the db_test to link to the libopenbsc.a
This should keep the test compiling in the future. It will
link to the libopenbsc.a to get all symbols. We do this in
the other tests too.
2009-04-12 05:37:07 +00:00
Holger Freyther 68e977a690 [calls] Remove a tautology from gsm48_cc_rx_disconnect
We directly assign the call->state and then check for something
that will never be true, and then immediately put the lchan and
schedule it's disconnect... and then directly after having closed
it down we send a message...

Change this to uncondtionally put down the lchan after having
changed the last(?) command.
2009-04-12 04:36:16 +00:00
Holger Freyther 48bfc4cbf1 [e1] Enable dumping of LAPD frames again
Kill mi_set_pcap_fd from the header, introduce e1_set_pcap_fd
and call it from bsc_hack.c. Hook into abis_rsl_sendmsg and
_abis_nm_sendmsg for sending and e1inp_rx_ts for reading. It compiles
and should not cause a regression.
2009-03-31 12:14:16 +00:00
Holger Freyther 7304af7110 [e1input] Do not redefine PF_ISDN if it is already defined
Fix compile warning in e1_input.c
2009-03-31 12:13:50 +00:00
Harald Welte ac213b2dcd Store incoming SMS into SQL database
* gsm_util now uses caller-allocated data (rather than callee-allocated)
* correctly parse destination address
* parse (but not transcode) non-default encodings of SMS
* reject SMS to unknown destination number
* resolve target subscriber id and store incoming SMS (without header) in 'sms' table

What we're now missing is the sending part, i.e. a regular task iterating over
all pending SMS and trying to deliver them.  Also, check for pending SMS once
we get a LOCATION UPDATE.
2009-03-30 20:56:32 +00:00
Harald Welte 09d768da4d check for malloc fails 2009-03-30 09:11:45 +00:00
Harald Welte cb003744fd add stubs for enable/configure terminal/bts/trx/ts commands in VTY interface 2009-03-28 19:07:53 +00:00
Harald Welte abca85e687 add 'show paging' for BTS to telnet interface 2009-03-28 16:55:11 +00:00
Harald Welte 0f6b10deac Fix 'delete-trx1' command of bs11_config (we can now delete TRX1) 2009-03-28 16:53:25 +00:00
Holger Freyther 2ce20ffb01 [misc] Make distcheck work again 2009-03-11 03:29:43 +00:00
Harald Welte f405e90ac5 * more human-readable strings instead of values
* vty printout of e1 driver/line/timeslot items
2009-03-10 19:47:51 +00:00
Harald Welte 5a5519e98c * correctly handle VTY_READ/VTY_WRITE events and select loop integration of VTY 2009-03-10 19:46:16 +00:00
Harald Welte 645ea6082e * make sure we can obtain signalling type and timslot type names
* make sure every e1 timeslot has a valid backpointer to its line
2009-03-10 19:44:48 +00:00
Harald Welte 0d7eaf3893 export nm_*_name() functions to get operational and availability state to strings 2009-03-10 19:43:44 +00:00
Harald Welte b2aec7489b export list of e1 drivers and e1 lines 2009-03-10 18:24:35 +00:00
Harald Welte c44317b844 * don't print lchan's of type NONE
* better formating of VTY printing of some objects
2009-03-10 12:34:02 +00:00
Harald Welte 4880cf4c44 we don't need LEX anymore 2009-03-10 12:22:24 +00:00
Harald Welte eaef4b51c1 make telnet interface use VTY code 2009-03-10 12:21:45 +00:00
Harald Welte fa58b6b41b add VTY dumping functions for OpenBSC 2009-03-10 12:17:57 +00:00
Harald Welte 81ef73fc3f import VTY code from zebra/quagga (from my cardshell project) 2009-03-10 12:16:51 +00:00
Harald Welte 4602100c1e move is_ipaccess_bts() and parse_btstype9) to gsm_data.c 2009-03-10 12:15:10 +00:00
Harald Welte d9c3a6e112 add USSD protocol discriminator 2009-03-10 12:13:42 +00:00
Harald Welte 3fb48aa907 more verbose attribute ack/nack 2009-03-10 11:46:02 +00:00
Holger Freyther a3fbd74a67 [misc] Fix compile warnings... 2009-03-09 16:17:14 +00:00
Harald Welte c880dbd3d2 actually request the IMEI not IMEISV, since Phase 1 doesn't have IMEISV 2009-02-28 18:22:03 +00:00
Harald Welte c89c322312 introduce new 'mode' parameter to RSL ACTIVATE CHANNEL 2009-02-28 13:19:15 +00:00
Harald Welte 6ad8be0786 * more RSL and 04.08 constant defines
* initialize some data structures before using them in RSL
* DATA_REQ is a transparent message
* more elaborate DEBUGP statements here and there
* don't call 04.08 with zero-length RSL DATA INDICATION
* reject 04.08 CC HOLD and RETRIEVE, as we don't support them yet
2009-02-28 13:17:55 +00:00