Author |
Post |
|
#1 Fri May 17, 2019 13:55, 68 months ago.
|
Member
Registered: May 2019
Location: Krasnoyarsk, Russian Federation
|
Operating system name and version: CentOs 6.9 Version of smsd: 3.1.21 Smsd installed from: sources Name and model of a modem / phone: modem Interface: USB
Can you set a pause between sending individual SMS? The command "sentsleeptime" sets a pause between sending each part of one SMS, and I need to pause between sending different SMS.
|
|
#2 Tue May 28, 2019 14:03, 67 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
You could create an eventhandler script. It is called every time when handling of SMS is completed. When the first argument is "SENT", it can spend a desired delay.
|
|
#3 Wed May 29, 2019 08:23, 67 months ago.
|
Member
Registered: May 2019
Location: Krasnoyarsk, Russian Federation
Topic owner
|
This script you have to offer? #!/bin/sh echo SMSD pause sleep 30 'bash' Syntax Highlight powered by GeSHi And write it in smsd.confcheckhandler=pause.sh 'smsdconf' Syntax Highlight powered by GeSHi
|
|
#4 Wed May 29, 2019 15:29, 67 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
Something like this: #!/bin/sh
if [ "$1" = "SENT" ]; then sleep 30 fi 'bash' Syntax Highlight powered by GeSHi And its eventhandler=/path/to/pause.sh in smsd.conf.
|
|
#5 Tue Jun 04, 2019 05:16, 67 months ago.
|
Member
Registered: May 2019
Location: Krasnoyarsk, Russian Federation
Topic owner
|
Thanks. I will try to do so.
|