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. Thu Apr 25, 2024 19:44
SMSTools3 Community » Help and support Bottom

2 Modems

Login and Post Reply

Page:  1

Author Post
Member
Registered:
Jul 2015
Location: Portugal
Operating system name and version: Raspbian 7.0
Version of smsd: VERSION 3.1.5
Smsd installed from: package repository
Name and model of a modem / phone: Huawei E180
Interface: USB

Hi,

I have a SIM card that is limited to 2000 SMS and now I want to route to another SIM card.
I'm not sure if I do that with the PROVIDER, QUEUE or MODEM.

So, I want to send a file like this:
To: 3519xxxxxxx
Modem: GSM1

OR:
To: 3519xxxxxxx
Modem: GSM2

How can I do that?
As I understood, I don't need providers, all messages can be routed for SIM card 1 and SIM card 2, but I just want to start split them between the 2 modems.

Can you point me to a working conf file that can route messages trough the modem I want?
Thanks.

Member
Registered:
Mar 2016
Location: Voronezh, Russian Federation
Good day, You had 1 modem on server and now connected another one without disconnecting first one?

Member
Registered:
Jul 2015
Location: Portugal
Topic owner
By now I'm starting to make a new server from scratch with 2 modems.
But I want to be sure how to route the messages between both modems when I want.

Member
Registered:
Mar 2016
Location: Voronezh, Russian Federation
TMM, it is possible to do this way:



in sms-file in foder /var/spool/sms/outgoing set route like this:


so , theoretically, such sms with strictly set modem: variable must go to world via GSM2 only.

Member
Registered:
Jul 2015
Location: Portugal
Topic owner
Thank you kontrolsson,

I will try this and then I will let you know.
Thank for you help.

Member
Registered:
Mar 2016
Location: Voronezh, Russian Federation
there is one more variant of solution i have, but if given solution will be OK - so ok :)

Member
Registered:
Jul 2015
Location: Portugal
Topic owner
On the Logs, it shows that messages are correctly routed trough the GSM1 and GSM2 when I want...
But, all messages are allways sent from the same SIM card/modem.
What is missing??!



This is my configuration:

#
# /etc/smsd.conf
#
# Description: Main configuration file for the smsd
#

devices = GSM1,GSM2
logfile = /var/log/smstools/smsd.log
infofile = /var/run/smstools/smsd.working
pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
loglevel = 7
delaytime = 10
#errorsleeptime = 10
#blocktime = 3600
stats = /var/log/smsd_stats
receive_before_send = no
autosplit = 0
keep_messages = no
regular_run_interval = 120

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

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

[GSM1]
init = AT+CPMS="ME","ME","ME"
device = /dev/ttyUSB0
incoming = no
queues = GSM1
smsc = 351911616161
report = no
incoming = no
memory_start = 0

[GSM2]
init = AT+CPMS="ME","ME","ME"
device = /dev/ttyUSB2
incoming = no
queues = GSM2
smsc = 351911616161
report = no
incoming = no
memory_start = 0


------------------- SMS MODEM1--------------------
To: 35191xxxxxx
Queue: GSM1
Provider: GSM1
Report: no
Modem: GSM1
Sent: 16-04-11 10:53:36
IMSI: 268011800xxxxxx


------------------- SMS MODEM2 --------------------
To: 35191xxxxxx
Queue: GSM2
Provider: GSM2
Report: no
Modem: GSM2
Sent: 16-04-11 10:53:36
IMSI: 268011800xxxxxx

Member
Registered:
Jul 2015
Location: Portugal
Topic owner
Ok, It's working....
The problem was that one of my USB modem has VOICE active and I was using the wrong ttyUSB.
That previous conf is ok, just had to change modem2 from
device = /dev/ttyUSB2
to
device = /dev/ttyUSB3

Thank you very much for your help.
:D

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.