SMS Server Tools 3
 Menu
Basic information:
Additional information:
Support:
Get SMS Server Tools 3:
Additional Options

 Sponsored links

 Search
Custom Search

 Visitor locations
 
 SMS Server Tools 3 Community
Welcome, Guest. The forum is currently read-only, but will open soon. Thu Nov 21, 2024 22:01
SMSTools3 Community » Help and support Bottom

Put sending on scheduled pause

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Sep 2013
Location: Cebu, Philippines
Operating system name and version: Linux OpenSUSE vicidial21 3.1.10-1.2
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem / phone: ZTE, Huawei
Interface: ttyUSB

Hello. I have configured pool of 3 modems already. It works fine, but I have rather big queue to send out each day: about 9k of messages. And each is quite large, so it will be splitted in 3 parts, so actually queue is 9k*3. Point is that I can send messages only in daytime from 8am till 10pm.

What is the correct way to pause smsd daemon? I can't just stop it at any moment, because GSM1 can be sending 2/3 part and GSM3 can be still sending 1/3 part and so on. How do I wait for each modem to send out 100% of current message parts and then I stop the daemon?

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
/etc/init.d/sms3 stop does the job. It does not kill hard processes, it will wait until all parts are sent. And after that signal, no more messages are prepared to send.

Member
Registered:
Sep 2013
Location: Cebu, Philippines
Topic owner
Not quite. If I issue this command I get log like this:

Quote
2013-09-27 14:59:48,2, smsd: Smsd mainprocess is awaiting the termination of all modem handlers. PID: 1037.
2013-09-27 14:59:48,2, smsd: Smsd mainprocess terminated. PID 1037, was started 13-09-27 10:04:49.
2013-09-27 14:59:48,3, GSM4: The modem answer was not OK:
2013-09-27 14:59:48,5, GSM4: Waiting 10 sec. before retrying
2013-09-27 14:59:48,4, GSM4: Sending SMS (part 2/3) to 63916519**** failed, trying time 2 sec. Retries: 0.
2013-09-27 14:59:48,3, GSM2: The modem did not answer (expected OK).
2013-09-27 14:59:48,5, GSM2: Waiting 10 sec. before retrying
2013-09-27 14:59:48,4, GSM2: Sending SMS (part 1/3) to 63948825**** failed, trying time 1 sec. Retries: 0.
2013-09-27 14:59:50,2, GSM2: Modem handler 1 terminated. PID: 1040, was started 13-09-27 10:04:49.
2013-09-27 14:59:50,2, GSM4: Modem handler 3 terminated. PID: 1042, was started 13-09-27 10:04:49.

Only GSM2 and GSM4 were online at that moment. So as you can see GSM4 was busy sending out part #2 of some message, and this sending failed because handler was terminated.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Sending failed because modems did not work properly. GSM4 gave an empty answer and GSM2 did not answer at all. When smsd is terminating, no retries are done. This is because we cannot know if the failure is permanent, and therefore no more time should be wasted.

When modems work without errors, soft termination will wait until all jobs are complete. If you have lots of error messages in the log, you should consider to replace the modems.

Login and Post Reply

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.