aboutsummaryrefslogtreecommitdiffstats
path: root/src/db.c
AgeCommit message (Collapse)AuthorFilesLines
2009-06-10move openbsc into its own subdirectoryHarald Welte1-464/+0
2009-06-09db.c: tmsi may be empty so put it into '' to make that obvoius (Andreas ↵Holger Freyther1-3/+3
Eversberg) during attachment, the "tmsi" field of the subscriber may be an empty string, so the string must be quoted in the sql request, or the sql request fails due to incorrect syntax. also i added "extension" field to debug output.
2009-06-06Revert "[db] Keep track of the current gsm_network"Holger Freyther1-3/+1
This was a stupid decision. We will have to assign the network at some other place. The problem will be a problem when we have two gsm_networks in one process and the same subscriber is traveling in both networks.
2009-04-19[db] Introduce a VLR database hereHolger Freyther1-0/+7
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[db] Make the db connection staticHolger Freyther1-1/+1
2009-04-19[db] Keep track of the current gsm_networkHolger Freyther1-1/+3
2009-04-19[db] Remove FIXME as it is fixed...Holger Freyther1-1/+0
2009-03-30Store incoming SMS into SQL databaseHarald Welte1-85/+122
* 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-02-23[db] Introduce a table for SMSHolger Freyther1-0/+18
- created for the creation of the SMS - sent the time the message was submitted - sender_id the subscriber for the return path/report - receiver_id the subscriber - header the (optional) SMS PDU header - payload the payload (utf8), raw data
2009-02-22[db] Print the type and id of the not found providerHolger Freyther1-1/+2
2009-02-09introduce lookup of subscribers based on their extension numberHolger Freyther1-0/+10
2009-01-04Make gcc happy and remove a couple of warningsHolger Freyther1-1/+1
Remove the callbacks from gsm_network for now. A set of different callbacks will be back. E.g. when the paging is completed, when the Q.931 like call handling is there... Remove var's or move them into #if 0, remove unused stuff that looks like we do not need it anytime soon or #if 0 them, move stuff around.
2009-01-01Change the subscriber and database backendHolger Freyther1-35/+46
gsm_subscriber is now refcounted, the db backend is leaking a lot less, db_get_subscriber will allocate the subscr record now, subscr_* will look up a subscriber in the list of currently active subscribers and add an ref to this one. The db test cases pass, more testing will be when next to the bts
2008-12-30update the timestamp in the dbHarald Welte1-0/+8
2008-12-28make it optional where the hlr database is storedHolger Freyther1-3/+16
Add --database to define where the database is stored. The default was changed to not store the file in /tmp anymore.
2008-12-28fix typo in debug messageJan Luebbe1-1/+1
2008-12-27add extension field to subscriber struct and name column to dbJan Luebbe1-17/+62
2008-12-27* add database handlingHarald Welte1-3/+12
* fix IMSI handling
2008-12-27also track creation and update time for subscriber and equipmentJan Luebbe1-7/+11
2008-12-27add a equipment tableJan Luebbe1-20/+93
2008-12-27add authorized state to subscribers in dbJan Luebbe1-8/+7
2008-12-27remove db debug outputJan Luebbe1-7/+0
2008-12-27rewrite db backendJan Luebbe1-167/+187
2008-12-27db: add GPL headers and integrate with autofooJan Luebbe1-1/+20
2008-12-27add first sketch of a DB backendJan Luebbe1-0/+198