diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-03-30 20:56:32 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-03-30 20:56:32 +0000 |
commit | 7e310b12ff120bdfd4b98eb52d10b013b00a2eaa (patch) | |
tree | 75e704d9e7a1c32214ecf72d59ce7076329642b2 /include/openbsc/db.h | |
parent | 93d9303331b7e103da810e851db1adb1fcf57f6d (diff) |
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.
Diffstat (limited to 'include/openbsc/db.h')
-rw-r--r-- | include/openbsc/db.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/openbsc/db.h b/include/openbsc/db.h index 9ce718136..61a3ac47c 100644 --- a/include/openbsc/db.h +++ b/include/openbsc/db.h @@ -37,4 +37,8 @@ int db_sync_subscriber(struct gsm_subscriber* subscriber); int db_subscriber_alloc_tmsi(struct gsm_subscriber* subscriber); int db_subscriber_assoc_imei(struct gsm_subscriber* subscriber, char *imei); +/* SMS store-and-forward */ +int db_sms_store(struct gsm_sms *sms); +struct gsm_sms *db_sms_get_unsent(int min_id); +int db_sms_mark_sent(struct gsm_sms *sms); #endif /* _DB_H */ |