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/gsm_utils.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/gsm_utils.h')
-rw-r--r-- | include/openbsc/gsm_utils.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/openbsc/gsm_utils.h b/include/openbsc/gsm_utils.h index b5637c880..c46837185 100644 --- a/include/openbsc/gsm_utils.h +++ b/include/openbsc/gsm_utils.h @@ -2,6 +2,7 @@ /* * (C) 2008 by Daniel Willmann <daniel@totalueberwachung.de> * (C) 2009 by Holger Hans Peter Freyther <zecke@selfish.org> + * (C) 2009 by Harald Welte <laforge@gnumonks.org> * * All Rights Reserved * @@ -26,7 +27,7 @@ #include <sys/types.h> -char *gsm_7bit_decode(u_int8_t *user_data, u_int8_t length); -u_int8_t *gsm_7bit_encode(const char *data, u_int8_t *length); +int gsm_7bit_decode(char *decoded, const u_int8_t *user_data, u_int8_t length); +int gsm_7bit_encode(u_int8_t *result, const char *data); #endif |