From a37e3bc39a8292deb401c6b81c320e56ae679525 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 25 Dec 2010 17:43:03 +0100 Subject: [PATCH] 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. --- openbsc/src/bsc_hack.c | 2 +- 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;