Hi,
You have wrong permissions on /dev/ttyUSB0. Either make it readable/writable
by kannel, or, if in ubuntu, put kannel user in group dial.
BR,
Nikos
----- Original Message -----
From: "Harbhag Singh Sohal" <[email protected]>
To: <[email protected]>
Sent: Monday, September 13, 2010 7:33 AM
Subject: Bearerbox.log error
Today I checked the bearerbox.log and the whole log was filled with
the error below.
2010-09-13 07:21:42 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:42 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:42 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:42 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:42 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:42 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:42 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:42 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:42 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:42 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:42 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:42 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:42 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:42 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:42 [30117] [6] INFO: AT2[/dev/ttyUSB0]: cannot detect
speed
2010-09-13 07:21:42 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: Couldn't
connect (retrying in 10 seconds).
2010-09-13 07:21:52 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:52 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:52 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:52 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:52 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:52 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:52 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
2010-09-13 07:21:52 [30117] [6] ERROR: AT2[/dev/ttyUSB0]: open failed!
ERRNO=13
2010-09-13 07:21:52 [30117] [6] ERROR: System error 13: Permission denied
2010-09-13 07:21:52 [30117] [6] INFO: AT2[/dev/ttyUSB0]: opening device
What is this error. Although I can send messages via kannel
and below is the configuration file
group = core
admin-port = 13015
admin-password = ****
admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
dlr-storage = mysql
smsbox-port = 13016
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-level = 1
#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc = at
modemtype = auto
device= /dev/ttyUSB0
my-number = ********
connect-allow-ip = 127.0.0.1
log-level = 0
# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = ******
password = *******
database = ******
group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc
group = modems
id = huawei
name = "Huawei E220"
detect-string = "huawei"
init-string = "ATZ"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
group = smsbox
bearerbox-host = **************
sendsms-port = 13017
global-sender = *************
log-level = 0
group = sendsms-user
username = *********
password = *********
concatenation= true
max-messages = 10
--
Harbhag Singh Sohal
Website : http://harbhag.wordpress.com/