SMS Server Tools 3
This site is hosted by Kekekasvi.com
 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. Please login or register. Thu Mar 28, 2024 19:21
SMSTools3 Community » Help and support Bottom

Need smstools 3 retrying sending SMS for 10 minutes whatever error happens

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Dec 2022
Location: United States of America
Operating system name and version: openwrt
Version of smsd: 3.1.21
Smsd installed from: sources
Name and model of a modem / phone: n/a
Interface: n/a

I need smstools 3 retrying sending SMS for 10 minutes whatever error happens. Tried errorsleeptime=10 and send_retries=12 and check_sim_retries=-1 with SIM card removed, and SMS goes into FAILED state within 30 seconds.

How to achieve the goal? Thank you!


« Last edit by eugeny_brychkov on Mon Dec 26, 2022 15:51, 15 months ago. »
Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
There is no built-in function for this, so the function has to be done with an eventhandler that you have to create yourself. There are no ready-made scripts for this, so I will only describe the main features of the operation:

Use smstools factory settings and add general settings:
failed = /var/spool/sms/failed
eventhandler = /path/to/eventhandler


When the message is processed, smsd calls the eventhandler. When the first parameter is "FAILED", read the header "RetryStart:" from the file (the second parameter). If the header is found, count the time and exit if necessary. If the header is not found, add it with the timestamp to the file. Move the file back to the outgoing directory and smsd will try sending again.

Member
Registered:
Dec 2022
Location: United States of America
Topic owner
Thank you very much!

Member
Registered:
Dec 2022
Location: United States of America
Topic owner
Apologies, I still have an issue, but in different place.
I implemented as you advised, and it works well.
But smstools says the following:

Fatal error: sending failed 3 times. Blocking 3600 sec.

and stops sending. I did not wait an hour, but suspect next time it will try sending is in 1 hour. But the task is to make smstools trying sending SMS as hard as possible until connectivity restores (e.g. in one or two minutes) or 10 minutes elapse. This 1 hour sleep breaks the whole algorithm...


« Last edit by eugeny_brychkov on Tue Dec 27, 2022 13:10, 15 months ago. »
Member
Registered:
Dec 2022
Location: United States of America
Topic owner
blocktime=10

into the device section seems to be a solution!

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.