Version of smsd: v3.1.21
Smsd installed from: sources
Name and model of a modem / phone:ZTE MF180, MF190
Interface: USB
Hello,
TL;DR What happens internally when I put directly a text message in the queue? How can I control sorting of sending messages?
In my tests I figured out that messages coming from "sendsms" script to "outgoing" directory were passed as they are through final queue directories. So I started to put messages directly on the queue directories. It then started to have unexpected behaviors, the log file reported "SMS sent" but no messages where sending, but when I rolled back to the original way everything works OK again.
Then I used the correct way of setting the "Queue: " header and this works OK as well and I see the messages going through outgoing and then to the correctly queue. So this is the origin of my question about why it doesn't work when I place the messages directly on queue directories.
Originally I tried to place text messages to queue directory in order to control the sorting of the messages, how can I achieve this with the correct way? I have an unexpected behavior of unsorted processed messages, this is my smsd.conf:
devices = GSM* 1-4
logfile = /var/log/smsd/smsd.log
loglevel = 7
user = smstools
smart_logging = yes
infofile = /run/smsd/smsd.working
pidfile = /run/smsd/smsd.pid
report = /var/spool/sms/report
stats = /var/spool/sms/stats
failed = /var/spool/sms/failed
phonecalls = /var/spool/sms/calls
delaytime_mainprocess = 2
eventhandler = /soft/ZENTEK/app/smsbackend/eventhandler.sh
trust_outgoing = yes
spool_directory_order = yes # I suggested this parameter could help
[GSM1]
init=AT+CPMS="ME";+CNMI=1,2,0,1,0
baudrate = 115200
report = yes
primary_memory = SM
secondary_memory = SR
device = /dev/ttyUSB12
incoming = yes
report_device_details = yes
signal_quality_ber_ignore = yes
hangup_incoming_call = yes
...
logfile = /var/log/smsd/smsd.log
loglevel = 7
user = smstools
smart_logging = yes
infofile = /run/smsd/smsd.working
pidfile = /run/smsd/smsd.pid
report = /var/spool/sms/report
stats = /var/spool/sms/stats
failed = /var/spool/sms/failed
phonecalls = /var/spool/sms/calls
delaytime_mainprocess = 2
eventhandler = /soft/ZENTEK/app/smsbackend/eventhandler.sh
trust_outgoing = yes
spool_directory_order = yes # I suggested this parameter could help
[GSM1]
init=AT+CPMS="ME";+CNMI=1,2,0,1,0
baudrate = 115200
report = yes
primary_memory = SM
secondary_memory = SR
device = /dev/ttyUSB12
incoming = yes
report_device_details = yes
signal_quality_ber_ignore = yes
hangup_incoming_call = yes
...
'smsdconf' Syntax Highlight powered by GeSHi
I used this guides:
http://smstools3.kekekasvi.com/index.php?p=configure2
http://smstools3.kekekasvi.com/index.php?p=fileformat