SMS Server Tools 3
 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. The forum is currently read-only, but will open soon. Sat Sep 07, 2024 23:34
SMSTools3 Community » Help and support Bottom

Prefer a device to send first?

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jun 2024
Location: Germany
How do i tell smsd to try a specific device first? I tried this wthout luck:
echo -e "To: +12345678\nModem: GSM3\n\n$(date)" > /var/spool/sms/outgoing/test-sms
Where GSM3 is the prefered device.

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
The modem header is an informative marking of which modem has processed or received the message.

The selection of the transmitting modem can be made via queues and providers. For example, in a two-modem system, the smsd.conf is like:

...

[queues]
ALL_MODEMS = /var/spool/sms/all_modems
GSM1 = /var/spool/sms/GSM1
GSM2 = /var/spool/sms/GSM2

[providers]
ALL_MODEMS = 0,1,2,3,4,5,6,7,8,9,s
GSM1 = 0
GSM2 = 0

[GSM1]
...
queues = ALL_MODEMS, GSM1

[GSM2]
...
queues = GSM2, ALL_MODEMS
 
'smsdconf' Syntax Highlight powered by GeSHi


The modem reads the given queues in the given order. This can affect the processing speed in systems with a lot of messages.

The message file is placed in the outgoing folder as usual and equipped with the header Queue: <name>, which causes the message to move to the desired queue.

Specifically, you asked "...try a specific device first?". Queue selection is final, so other modems no longer process the message. If the selected modem fails in transmission, the message is moved to the failed folder, from where the own external process must move it to another queue, for example available to all modems, if so desired.

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.