Keywords: Mode: All keywords (AND) |
Wed Oct 18, 2017 21:10
|
virtuha: OK. I realized my mistake.
It was necessary in the settings to put "rtscts = no" for GSM1_MFON.
Or to configure the modem that will be correct.
|
Wed Oct 18, 2017 03:10
|
virtuha: 2017-10-18 14:00:22,3, GSM1_MFON: write_to_modem: error 13: Permission denied
What is this error?
|
Tue Oct 17, 2017 03:04
|
virtuha: Ok. I understand how to do what I need.
My smsd.conf
devices = GSM1_MFON, GSM2_MTSS
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
outgoing = /var/spool/sms/outgoing
phonecalls = /var/spool/sms/phonecalls
report = /var/spool/sms/report
sent = /var/spool/sms/sent
stats = /var/spool/sms/stats
logfile = /var/log/smsd.log
loglevel = 7
infofile = /var/run/smsd/smsd.working
pidfile = /var/run/smsd/smsd.pid
checkhandler = /usr/local/bin/shto
eventhandler = /usr/local/bin/shfrom
# With value 1 like 2007-09-02.GSM1.xxxxxx and
# with value 2 like GSM1.2007-09-02.xxxxxx
date_filename = 1
hangup_incoming_call = yes
[queues]
ALL = /var/spool/sms/checked
GSM1_MFON = /var/spool/sms/GSM1_MFON
GSM2_MTSS = /var/spool/sms/GSM2_MTSS
[GSM1_MFON]
queues = GSM1_MFON, ALL
device = /dev/ttyS0
baudrate = 9600
rtscts = yes
init = AT
incoming = yes
outgoing = yes
report = yes
[GSM2_MTSS]
queues = GSM2_MTSS, ALL
device = /dev/ttyS1
baudrate = 115200
rtscts = yes
init = AT
init2 = AT+CPMS="ME","ME","ME"
incoming = yes
outgoing = yes
report = yes
and my sms
To: +7924XXXXXXX
Queue: GSM2_MTSS
Obj: 122972
Dtm: 2017-10-17 14:01:39
Alphabet: Unicode
Program is started!(17.10 14:01 PROG)
|
Mon Oct 16, 2017 04:03
|
virtuha: Operating system name and version: Windows 7 - cygwin
Version of smsd: last
Smsd installed from: sources
Name and model of a modem / phone: wavecome
Interface: serial
Hello.
Sorry for my English, is not my native language.
Help me.
How to configure two modem that the first modem sent to the phones of "MTS" provider, and the latter on phones "MEGAFON" provider?
I know that there is such a function, but I can't figure out how to set it up?
This is my config file.
devices = GSM1
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
outgoing = /var/spool/sms/outgoing
phonecalls = /var/spool/sms/phonecalls
report = /var/spool/sms/report
sent = /var/spool/sms/sent
stats = /var/spool/sms/stats
logfile = /var/log/smsd.log
loglevel = 7
infofile = /var/run/smsd/smsd.working
pidfile = /var/run/smsd/smsd.pid
checkhandler = /usr/local/bin/shto
eventhandler = /usr/local/bin/shfrom
# With value 1 like 2007-09-02.GSM1.xxxxxx and
# With value 2 like GSM1.2007-09-02.xxxxxx
date_filename = 1
hangup_incoming_call = yes
[GSM1]
device = /dev/ttyS0
baudrate = 115200
rtscts = yes
init = AT
init2 = AT+CPMS="ME","ME","ME"
incoming = yes
outgoing = yes
report = yes
|