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. Fri Jun 14, 2024 19:55
SMSTools3 Community » Help and support Bottom

outgoing=no and queues

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Mar 2016
Location: Voronezh, Russian Federation
Operating system name and version: Centos 7 x86_64
Version of smsd: 3.1.15
Smsd installed from: sources
Name and model of a modem / phone: MTS 423s (Huawei E3531s)
Interface: USB

Could You tell if it is some workaround for situation except modifying source of smsd:

devices = GSM* 1-7
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
incoming = /var/spool/sms/incoming
failed = /var/spool/sms/failed
sent = /var/spool/sms/sent
report = /var/spool/sms/reports
logfile = /var/log/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
stats = /var/log/smstools/smsd_stats
loglevel = 7
receive_before_send = yes
autosplit = 3
eventhandler = /var/www/sms/data/farm/engine/statuser.php
errorsleeptime = 2

[queues]
GSM1 = /var/spool/sms/queues/GSM1
GSM2 = /var/spool/sms/queues/GSM2
GSM3 = /var/spool/sms/queues/GSM3
GSM4 = /var/spool/sms/queues/GSM4
GSM5 = /var/spool/sms/queues/GSM5
GSM6 = /var/spool/sms/queues/GSM6
GSM7 = /var/spool/sms/queues/GSM7

[GSM1]
init = ATZ
device = /dev/modem0
smsc = 79042140000
baudrate = 115200
primary_memory = SM
report = yes
incoming = yes
outgoing = no
queues=modemname

#sections GSM2-8 are similar
 
 
'smsdconf' Syntax Highlight powered by GeSHi


After restart smsd I get:



How to start smsd but disable outgoing on separate modem? I've tried:

1. Remove GSM1 from [queues] and remove queues=modemname from [GSM1]. Result is "Queues are used, but GSM1 has no queue(s) defined."

2. Remove GSM1 from [queues] and add outgoing=yes to [GSM1]. Result is "Queues are used, but GSM1 has no queue(s) defined."

3. Remove GSM1 from [queues] and add queues=modemname to [GSM1]. Obvously, fail - Queue GSM1 not found for device GSM1.

4. Set GSM1 = /var/spool/sms/queues/fakeGSM1 (exists, but always empty) and outgoing=yes. In this case, IMHO, GSM1 will look into /var/spool/sms/outgoing (as it is set in header of config) and take sms-files from there and send them because he has outgoing=yes.

5. Do not enumerate GSM1 in "devices" variable in header and remove GSM1 from queues. But it will completely remove modem from engine and disable incoming sms on it.

How to work around? To disable sms-sending via GSM1, keep queues in configuration and start smsd without errors without modifying source of smsd:?

Thank You in advance.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Case 1 will work with the next version.

Case 4 works, because if queues are used, only messages from queue directories are sent. Modems never use outgoing directory, it is only handled by the main spooler. If queues are not in use, modems use checked directory.

With the current version you could define queues=GSM2 for GSM1 modem, as it has outgoing=no.

Member
Registered:
Mar 2016
Location: Voronezh, Russian Federation
Topic owner
Quote
Modems never use outgoing directory, it is only handled by the main spooler.

yes, i was mistaken in message, i meant "checked" dir.


And tell please, will it be critically erroneous if i put such sms-file:
To: +79042144580
Report: yes
UDH: true
UDH-DATA: 05 00 03 4D 02 01
Alphabet: Latin

text here text here text here text here text here text here
 
'smsdconf' Syntax Highlight powered by GeSHi


directly into /var/spool/sms/queues/GSM1 ? As we see, It has no message_id header, is it important? For example , messages sent by this way, in "sent" directory already have "message_id" header.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
You can put a file directly to the spooler, but using lock file is strongly recommended. When modem process sees the file, it must be complete. For example you could create a file <randomfilename>.LOCK. Smsd skips the file with this extension. Write the file and close it, then rename the .LOCK extension away.

Message_id header is added to the file after message is sent.

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.