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 May 03, 2024 10:14
SMSTools3 Community » Help and support Bottom

[answered] Need to specify which modem has to send the SMS

  This topic is locked

Page:  1

Author Post
Member
Registered:
Dec 2009
Location: Paris, France
Hello,

I'm using 2 modems on the same smstools.
Each one has a SIM card and the first modem has a SIM card which can send a lot of SMS, the other modem is used to receive messages.
I haven't found in the configuration files or in the format of outgoing message files how I can select the modem which send the SMS.

Thanks for help,

Franck

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
Define queues, but with no provider sorting:

In the global part of smsd.conf, define:

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

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

Create those folders and make them writable for smsd.

In the modem sections of smsd.conf, define:

[GSM1]
queues = GSM1

[GSM2]
queues = GSM2

With these definitions all outgoing messages are targeted to GSM1 because it's provider list will match with all destination numbers. If you want to send some SMS using GSM2, just include Queue: ( or Provider: ) header in it, for example:

To: 358401234567
Queue: GSM2

This is a test message from Smstools3.


Check also this post, there is GSM2 used as a fallback device with almost similar setup than yours.

Member
Registered:
Dec 2009
Location: Paris, France
Topic owner
Thank you a lot for your fast reply.
I can now imagine that I have 4 modems on my system and I want to send messages with modem 1 and 2.
I would like to choose with which modem I send the messages.

If I use :
Quote
[queues]
GSM1 = /var/spool/sms/GSM1
GSM2 = /var/spool/sms/GSM2
GSM3 = /var/spool/sms/GSM3
GSM4 = /var/spool/sms/GSM4

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

[GSM1]
queues = GSM1
[GSM2]
queues = GSM2
[GSM3]
queues = GSM3
[GSM4]
queues = GSM4

And if I want to send a message with modem2 I use :

Quote
To: 358401234567
Queue: GSM2

This is a test message from Smstools3 with modem2.

And if the modem 2 is not ready, the sending will fail. That's it ?

Franck

Administrator
Registered:
May 2009
Location: Jyväskylä, Finland
casparf wrote
And if the modem 2 is not ready, the sending will fail. That's it ?

Yes. You can use eventhandler to change the queue after failing, or periodically check the failed folder and resend messages from there (using some script).

There is no built-in automation inside the smsd for this, because smsd cannot know how modems are wanted to be used. External scripts do the job in this case and re-create the message into to the outgoing folder with suitable headers.

  This topic is locked

Page:  1

SMSTools3 Community » Help and support Top

 
Time in this board is UTC.  

Privacy Policy   SMS Server Tools 3 Copyright © Keijo Kasvi.