Re: Need help for kannel configuration

2009-03-21 Thread Paul Darius
This is what shown on the console screen...

2009-03-21 13:02:01 [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2009-03-21 13:02:01 [0] INFO: 
2009-03-21 13:02:01 [0] INFO: Kannel bearerbox II version 1.2.0 starting
2009-03-21 13:02:01 [0] INFO: SSL not supported, no SSL initialization done.
2009-03-21 13:02:01 [0] DEBUG: HTTP: Opening server at port 13000.
2009-03-21 13:02:01 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2009-03-21 13:02:01 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2009-03-21 13:02:01 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2009-03-21 13:02:01 [0] DEBUG: starting smsbox connection module
2009-03-21 13:02:01 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2009-03-21 13:02:01 [0] DEBUG: AT: Command: AT
2009-03-21 13:02:02 [0] DEBUG: Read from modem: ''
2009-03-21 13:02:02 [0] DEBUG: AT: Command: ATF
2009-03-21 13:02:03 [0] DEBUG: Read from modem: ''
2009-03-21 13:02:03 [0] DEBUG: AT: Command: AT
2009-03-21 13:02:04 [0] DEBUG: Read from modem: ''
2009-03-21 13:02:04 [0] DEBUG: AT: Command: ATE0
2009-03-21 13:02:05 [0] DEBUG: Read from modem: ''
2009-03-21 13:02:05 [0] ERROR: Failed to create Smsc wrapper
2009-03-21 13:02:05 [0] PANIC: Cannot start with SMSC connection failing

Paul
On Sat, Mar 21, 2009 at 9:44 AM, Alvaro Cornejo
cornejo.alv...@gmail.com wrote:
 Ti you get some info with kannel, post the logs to see where the problem
 is. Log should tell you wich command failed. Check your device manual
 for specific command values/syntax

 Alvaro



Need help for kannel configuration

2009-03-20 Thread Paul Darius
Hi all,

I need help for kannel tune-up with the following configuration :
+ OS CentOS 5.2
+ kannel 1.4.1
+ libxml 2.6.26-2.1.2.7
+ machine iPentium 4 core duo

kannel.conf :
 cat /etc/kannel.conf
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = admin
status-password = admin
#admin-deny-ip = *.*.*.*
#admin-allow-ip = 127.0.0.1
smsbox-port = 13001
#wapbox-port = 13002
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
wdp-interface-name = *
log-file = /var/log/kannel/bearerbox.log
log-level = 1

group = smsc
smsc = at
host = 127.0.0.1
port = 13013
smsc-id = itegno
modemtype = auto
device = /dev/ttyUSB0
sms-center = +62
speed = 115200

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13131
sendsms-chars = 0123456789+
global-sender = +6200
log-file = /var/log/kannel/smsbox.log
log-level = 0
access-log =  /var/log/kannel/access.log

group = modems
id = WAVECOM
name = WAVECOM
detect-string = WAVECOM
init-string = AT+CNMI=2,1,0,0;+CMEE=1

group = sms-service
keyword = default
max-messages = 0
exec = /usr/local/bin/kannel_incoming %t %q %a

bearerbox.log :
bearerbox /etc/kannel.conf result :
2009-03-20 21:36:13 [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2009-03-20 21:36:13 [0] INFO: 
2009-03-20 21:36:13 [0] INFO: Kannel bearerbox II version 1.2.0 starting
2009-03-20 21:36:13 [0] INFO: SSL not supported, no SSL initialization done.
2009-03-20 21:36:17 [0] ERROR: Failed to create Smsc wrapper
2009-03-20 21:36:17 [0] PANIC: Cannot start with SMSC connection failing

if kannel services started :
2009-03-20 21:36:09 [24028] [6] ERROR: AT2[itegno]: open failed! ERRNO=13
2009-03-20 21:36:09 [24028] [6] ERROR: System error 13: Permission denied
2009-03-20 21:36:09 [24028] [6] INFO: AT2[itegno]: opening device
2009-03-20 21:36:09 [24028] [6] ERROR: AT2[itegno]: open failed! ERRNO=13
2009-03-20 21:36:09 [24028] [6] ERROR: System error 13: Permission denied
2009-03-20 21:36:09 [24028] [6] INFO: AT2[itegno]: opening device


Where are the errors cause ?

PD



Re: Need help for kannel configuration

2009-03-20 Thread Paul Darius
Thx for the reply.

I run that bearerbox under root and from local machine.
Also, the mode of /dev/ttyUSB0 already 777

# ls -l /dev/ttyUSB0
crwxrwxrwx 1 root uucp 188, 0 Mar 20 21:38 /dev/ttyUSB0

What else the error cause ?
PD

On Fri, Mar 20, 2009 at 10:53 PM, Alejandro Guerrieri
alejandro.guerri...@gmail.com wrote:
 You don't have permissions to access the modem. If you're running kannel
 under an underprivileged user, you need to make sure that your user has
 permissions to read/write the modem.
 Hope it helps,
 Alejandro




Re: Need help for kannel configuration

2009-03-20 Thread Paul Darius
I do not know anything about minicom...

But I try to change the device to /dev/ttyUSB1 or /dev/ttyUSB2 and the
result as follow 
# /usr/local/sbin/bearerbox /etc/kannel.conf
2009-03-21 08:19:52 [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0
2009-03-21 08:19:52 [0] WARNING: DLR: using default 'internal' for storage type.
2009-03-21 08:19:52 [0] DEBUG: Kannel bearerbox version `1.2.0'.
System Linux, release 2.6.18-92.1.22.el5, version #1 SMP Tue Dec 16
12:03:43 EST 2008, machine i686.
Hostname HTT-2, IP 127.0.0.1.
Libxml version 20626.
Using native malloc.

2009-03-21 08:19:52 [0] INFO: Added logfile
`/var/log/kannel/bearerbox.log' with level `1'.
2009-03-21 08:19:52 [0] INFO: 
2009-03-21 08:19:52 [0] INFO: Kannel bearerbox II version 1.2.0 starting
2009-03-21 08:19:52 [0] INFO: SSL not supported, no SSL initialization done.
2009-03-21 08:19:52 [0] DEBUG: HTTP: Opening server at port 13000.
2009-03-21 08:19:52 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2009-03-21 08:19:52 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2009-03-21 08:19:52 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2009-03-21 08:19:52 [0] DEBUG: starting smsbox connection module
2009-03-21 08:19:52 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2009-03-21 08:19:52 [0] ERROR: at_open_data_link: error opening the
character device /dev/ttyUSB1
2009-03-21 08:19:52 [0] ERROR: System error 2: No such file or directory
2009-03-21 08:19:52 [0] ERROR: Failed to create Smsc wrapper
2009-03-21 08:19:52 [0] PANIC: Cannot start with SMSC connection failing

the dmesg added when I added the device :
usb 4-2: new full speed USB device using uhci_hcd and address 3
usb 4-2: configuration #1 chosen from 1 choice
pl2303 4-2:1.0: pl2303 converter detected
usb 4-2: pl2303 converter now attached to ttyUSB0

So, I do not think wrong device

PD



Re: Need help for kannel configuration

2009-03-20 Thread Paul Darius
I am using iTegno 3800 with usb port.

the dmesg added when I added the device :
usb 4-2: new full speed USB device using uhci_hcd and address 3
usb 4-2: configuration #1 chosen from 1 choice
pl2303 4-2:1.0: pl2303 converter detected
usb 4-2: pl2303 converter now attached to ttyUSB0

from bearerbox /etc/kannel.conf.. it already connected and read the
modem status with some command AT.

Paul