aboutsummaryrefslogtreecommitdiffstats
path: root/include/openbsc/db.h
AgeCommit message (Collapse)AuthorFilesLines
2009-06-10move openbsc into its own subdirectoryHarald Welte1-44/+0
2009-06-06Revert "[db] Keep track of the current gsm_network"Holger Freyther1-1/+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] Keep track of the current gsm_networkHolger Freyther1-1/+1
2009-03-30Store incoming SMS into SQL databaseHarald Welte1-0/+4
* 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-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-4/+7
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-28make it optional where the hlr database is storedHolger Freyther1-1/+1
Add --database to define where the database is stored. The default was changed to not store the file in /tmp anymore.
2008-12-27add a equipment tableJan Luebbe1-0/+1
2008-12-27rewrite db backendJan Luebbe1-16/+6
2008-12-27db: add GPL headers and integrate with autofooJan Luebbe1-0/+46