diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-25 17:43:03 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-12-26 09:40:48 +0100 |
commit | a37e3bc39a8292deb401c6b81c320e56ae679525 (patch) | |
tree | 13cca33e48fb03dd9e1ef67877acb885c2948078 | |
parent | a3a659ba5cb26067c65983d97b3331eaf7b8a3fc (diff) |
sms: Change the default values for the sms_queue
Increase the number of SMS we will try to send at a time and
decrease the failures we handle before going to the next item. With
the default timeout we will attempt to page the subscriber for 60
seconds and we can increase the queue speed by going to the next
item faster.
-rw-r--r-- | openbsc/src/bsc_hack.c | 2 | ||||
-rw-r--r-- | openbsc/src/sms_queue.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/bsc_hack.c b/openbsc/src/bsc_hack.c index 2b0af2e9a..54c89420e 100644 --- a/openbsc/src/bsc_hack.c +++ b/openbsc/src/bsc_hack.c @@ -275,7 +275,7 @@ int main(int argc, char **argv) signal(SIGPIPE, SIG_IGN); /* start the SMS queue */ - if (sms_queue_start(bsc_gsmnet, 5) != 0) + if (sms_queue_start(bsc_gsmnet, 20) != 0) return -1; if (daemonize) { diff --git a/openbsc/src/sms_queue.c b/openbsc/src/sms_queue.c index c03b369df..41b9ecc25 100644 --- a/openbsc/src/sms_queue.c +++ b/openbsc/src/sms_queue.c @@ -274,7 +274,7 @@ int sms_queue_start(struct gsm_network *network, int max_pending) network->sms_queue = sms; INIT_LLIST_HEAD(&sms->pending_sms); - sms->max_fail = 3; + sms->max_fail = 1; sms->network = network; sms->max_pending = max_pending; sms->push_queue.data = sms; |