diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-24 13:48:27 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-26 09:40:03 +0100 |
commit | 11b28f9c26cdafe448eae1dbf6b06a7d1050083a (patch) | |
tree | 3051857c4123c0f0605c8902711e8c920486ff3d /openbsc/include | |
parent | 04144c1905d2ccc7b6783b0cccc2f9c11079354b (diff) |
sms: Introduce a SMS queue that will be responsible for delivery
The SMSqueue will be responsible of sending to the user. It will
do so in a loop and will also try not to overload the BTS. This
means the throughput of SMS will be limited.
Diffstat (limited to 'openbsc/include')
-rw-r--r-- | openbsc/include/openbsc/Makefile.am | 2 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_04_11.h | 2 | ||||
-rw-r--r-- | openbsc/include/openbsc/gsm_data.h | 2 | ||||
-rw-r--r-- | openbsc/include/openbsc/sms_queue.h | 8 |
4 files changed, 13 insertions, 1 deletions
diff --git a/openbsc/include/openbsc/Makefile.am b/openbsc/include/openbsc/Makefile.am index 3dffe4bf4..6cf8c3b57 100644 --- a/openbsc/include/openbsc/Makefile.am +++ b/openbsc/include/openbsc/Makefile.am @@ -11,7 +11,7 @@ noinst_HEADERS = abis_nm.h abis_rsl.h db.h gsm_04_08.h gsm_data.h \ gb_proxy.h gprs_sgsn.h gsm_04_08_gprs.h sgsn.h \ gprs_ns_frgre.h auth.h osmo_msc.h bsc_msc.h bsc_nat.h \ osmo_bsc_rf.h osmo_bsc.h network_listen.h bsc_nat_sccp.h \ - osmo_msc_data.h osmo_bsc_grace.h + osmo_msc_data.h osmo_bsc_grace.h sms_queue.h openbsc_HEADERS = gsm_04_08.h meas_rep.h bsc_api.h openbscdir = $(includedir)/openbsc diff --git a/openbsc/include/openbsc/gsm_04_11.h b/openbsc/include/openbsc/gsm_04_11.h index d62a392f7..20787788a 100644 --- a/openbsc/include/openbsc/gsm_04_11.h +++ b/openbsc/include/openbsc/gsm_04_11.h @@ -33,5 +33,7 @@ void sms_free(struct gsm_sms *sms); void _gsm411_sms_trans_free(struct gsm_trans *trans); int gsm411_send_sms_subscr(struct gsm_subscriber *subscr, struct gsm_sms *sms); +int gsm411_send_sms(struct gsm_subscriber_connection *conn, + struct gsm_sms *sms); void gsm411_sapi_n_reject(struct gsm_subscriber_connection *conn); #endif diff --git a/openbsc/include/openbsc/gsm_data.h b/openbsc/include/openbsc/gsm_data.h index 5badde260..4c87f8354 100644 --- a/openbsc/include/openbsc/gsm_data.h +++ b/openbsc/include/openbsc/gsm_data.h @@ -5,6 +5,7 @@ struct osmo_msc_data; struct osmo_bsc_sccp_con; +struct gsm_sms_queue; enum gsm_phys_chan_config { GSM_PCHAN_NONE, @@ -734,6 +735,7 @@ struct gsm_network { /* subscriber related features */ int keep_subscr; + struct gsm_sms_queue *sms_queue; }; #define SMS_HDR_SIZE 128 diff --git a/openbsc/include/openbsc/sms_queue.h b/openbsc/include/openbsc/sms_queue.h new file mode 100644 index 000000000..d377aca40 --- /dev/null +++ b/openbsc/include/openbsc/sms_queue.h @@ -0,0 +1,8 @@ +#ifndef SMS_QUEUE_H +#define SMS_QUEUE_H + +struct gsm_network; + +int sms_queue_start(struct gsm_network *, int in_flight); + +#endif |