diff options
author | Harald Welte <laforge@gnumonks.org> | 2009-07-05 14:02:46 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2009-07-05 14:02:46 +0200 |
commit | b9c758b2ac120a8f45c7c0a8b64429eb6105a9c7 (patch) | |
tree | b83e04b679cc601217aadeaed2f7e9859da3bcfe /openbsc/include/openbsc/gsm_data.h | |
parent | 5a691b52902ce383f87f5942cc4d1b44fc0176b6 (diff) |
more SMS improvements
* describe data structures in gsm_04_11.h
* increae LCHAN RELEASE TIMEOUT for case of long SMS
* convert header field in sql table from NUMERIC to BLOB
* initial handling for validity period
* send RP ERROR messages with meaningful RP CAUSE in case of error
Diffstat (limited to 'openbsc/include/openbsc/gsm_data.h')
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index af2e22c5a..11176d6d6 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -74,7 +74,7 @@ typedef int gsm_cbfn(unsigned int hooknum, * Use the channel. As side effect the lchannel recycle timer * will be started. */ -#define LCHAN_RELEASE_TIMEOUT 10, 0 +#define LCHAN_RELEASE_TIMEOUT 20, 0 #define use_lchan(lchan) \ do { lchan->use_count++; \ DEBUGP(DCC, "lchan (bts=%d,trx=%d,ts=%d,ch=%d) increases usage to: %d\n", \ @@ -381,6 +381,8 @@ struct gsm_sms { struct gsm_subscriber *sender; struct gsm_subscriber *receiver; + unsigned long validity_minutes; + unsigned int header_len; unsigned char header[SMS_HDR_SIZE]; char text[SMS_TEXT_SIZE]; }; |