I am using the latest SMS Server Tools 3 with Debian 12 from Debians official packet repo.
I installed to use it with a LTE LAN Gateway, using Telnet/TCP to communicate.
Basic communication works with following configuration:
#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
#
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 7
receive_before_send = no
autosplit = 3
[GSM1]
device = @IP:PORT
device_open_errorsleeptime = 5
device_open_retries = -1
incoming = no
pin = PINHERE
keep_open = no
report_device_details = yes
regular_run_interval = 60
regular_run_cmd = AT+CREG?;+CSQ;+COPS?
regular_run_statfile = /dev/shm/sms_stat
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
#
devices = GSM1
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
loglevel = 7
receive_before_send = no
autosplit = 3
[GSM1]
device = @IP:PORT
device_open_errorsleeptime = 5
device_open_retries = -1
incoming = no
pin = PINHERE
keep_open = no
report_device_details = yes
regular_run_interval = 60
regular_run_cmd = AT+CREG?;+CSQ;+COPS?
regular_run_statfile = /dev/shm/sms_stat
Problem is that I'd like in every scenario (network down/maintenance, LTE modems reset, something gets unplugged for a second) - SMS Server Tools 3 should be retrying to connect and sent the SMS for all eternity.
However, if I do following:
- Start SMS Server Tools 3
- we can also test send an SMS, everything will be fine here
- Then connect to the LTE modem via telnet myself and with that blocking connection from the smsd
- Putting a new SMS in
- If at this point, within some seconds I do not end the telnet session and "free it up", it will end up in this cycle:
Note that, the service was configured to never give up, and retry again and again - however, after one minute it does disables the modem handler permanently and never recovers. Only if I restart the complete service it will send out the SMS. How can we fix that?
Thanks a lot