bionic: Thanks! Its work! :P I'm soo scattered))
|
bionic: Operating system name and version: Win XP SP3
Version of smsd: 3.1.14
Smsd installed from: sources via Cygwin
Name and model of a modem / phone: Motorola E398
Interface: USB data-cable
Hi there!
I have problem with eventhandler and mysmsd script.
When i test this script manually ($ ./mysmsd SENT /var/spool/sms/incoming/GSM1.DHHxuP) its works fine, and data goin to MySQL base.
When i try send SMS via sendsms, or create sms-file in outgoing-folder, then i gets some errors:
2010-09-23 16:55:50,7, smsd: Running checkhandler: /usr/local/bin/mysmsd /var/spool/sms/outgoing/send_7v8K5w
2010-09-23 16:55:50,7, smsd: Done: checkhandler, execution time 1 sec., status:0 (0)
2010-09-23 16:55:50,3, smsd: Exec: checkhandler encountered errors:
2010-09-23 16:55:50,3, smsd: ! /usr/local/bin/mysmsd: line 15: $2: ambiguous redirect
2010-09-23 16:55:50,3, smsd: ! /usr/local/bin/mysmsd: line 16: $2: ambiguous redirect
2010-09-23 16:55:50,3, smsd: ! /usr/local/bin/mysmsd: line 19: $2: ambiguous redirect
2010-09-23 16:55:50,3, smsd: ! /usr/local/bin/mysmsd: line 20: $2: ambiguous redirect
2010-09-23 16:55:50,3, smsd: ! /usr/local/bin/mysmsd: line 21: $2: ambiguous redirect
2010-09-23 16:55:51,5, smsd: Moved file /var/spool/sms/outgoing/send_7v8K5w to /var/spool/sms/checked
2010-09-23 16:55:51,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/send_7v8K5w
2010-09-23 16:55:51,6, GSM1: Sending SMS from to 794651214546
My config:
devices = GSM1
logfile = /var/log/smsd.log
failed = /var/spool/sms/failed
loglevel = 7
checkhandler = /usr/local/bin/mysmsd
incoming_utf8 = yes
[GSM1]
device = /dev/com2
incoming = high
init = ATE0
baudrate = 9600
report = yes
check_memory_method = 3
sending_disabled = yes
send_delay = 5
What is the problem? :?
|
bionic: try use "device = /dev/ttyS15"
|