Julius David Bacolod wrote:

Hello I'm a newbie in kannel.
 I've tried to to follow the userguide by kannel gateway 1.4.0
I used the smskannel.conf and modified it and copied the modems.conf to the /gw directory. Then I inputted this to shell using the user account "kannel" [EMAIL PROTECTED] gw]./bearerbox -v 1 smskannel.conf This is the result ___________________________________________________________________
 2006-02-10 11:50:48 [3555] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl 
= 0
 2006-02-10 11:50:48 [3555] [0] WARNING: DLR: using default 'internal' for 
storage type.
 2006-02-10 11:50:48 [3555] [0] INFO: DLR using storage type: internal
 2006-02-10 11:50:48 [3555] [0] INFO: HTTP: Opening server at port 13000.
 2006-02-10 11:50:48 [3555] [0] INFO: BOXC: 'smsbox-max-pending' not set, using 
default (100).
 2006-02-10 11:50:48 [3555] [0] INFO: DLR rerouting for smsc id <(null)> 
disabled.
 2006-02-10 11:50:48 [3555] [0] INFO: AT2[/dev/ttyS0]: configuration shows modemtype 
<Nokia Phone>
 2006-02-10 11:50:48 [3555] [0] INFO: AT2[/dev/ttyS0]: modemtype not found, 
revert to autodetect
 2006-02-10 11:50:48 [3555] [0] INFO: ----------------------------------------
 2006-02-10 11:50:48 [3555] [0] INFO: Kannel bearerbox II version 1.4.0 starting
 2006-02-10 11:50:48 [3555] [0] INFO: MAIN: Start-up done, entering mainloop
 2006-02-10 11:50:48 [3555] [6] INFO: AT2[/dev/ttyS0]: opening device
 2006-02-10 11:50:48 [3555] [6] ERROR: AT2[/dev/ttyS0]: open failed! ERRNO=13
 2006-02-10 11:50:48 [3555] [6] ERROR: System error 13: Permission denied
 2006-02-10 11:50:48 [3555] [6] INFO: AT2[/dev/ttyS0]: opening device
 2006-02-10 11:50:48 [3555] [6] ERROR: AT2[/dev/ttyS0]: open failed! ERRNO=13
 2006-02-10 11:50:48 [3555] [6] ERROR: System error 13: Permission denied
 2006-02-10 11:50:48 [3555] [6] INFO: AT2[/dev/ttyS0]: opening device
 2006-02-10 11:50:48 [3555] [6] ERROR: AT2[/dev/ttyS0]: open failed! ERRNO=13
 2006-02-10 11:50:48 [3555] [6] ERROR: System error 13: Permission denied
 ____________________________________________________________________

obviously your user 'kannel' is not allowed to connect to the serial com port.

 The last three lines just keep on repeating
 I've tried to run ./bearerbox using root
[EMAIL PROTECTED] gw]./bearerbox -v 1 smskannel.conf And here's what appears in shell
 ____________________________________________________________________
 2006-02-10 11:49:47 [3546] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl 
=  0
 2006-02-10 11:49:47 [3546] [0] WARNING: DLR: using default 'internal' for 
storag e type.
 2006-02-10 11:49:47 [3546] [0] INFO: DLR using storage type: internal
 2006-02-10 11:49:47 [3546] [0] INFO: HTTP: Opening server at port 13000.
 2006-02-10 11:49:47 [3546] [0] INFO: BOXC: 'smsbox-max-pending' not set, using 
d efault (100).
 2006-02-10 11:49:47 [3546] [0] INFO: DLR rerouting for smsc id <(null)> 
disabled .
 2006-02-10 11:49:47 [3546] [0] INFO: AT2[/dev/ttyS0]: configuration shows modemt ype 
<Nokia Phone>
 2006-02-10 11:49:47 [3546] [0] INFO: AT2[/dev/ttyS0]: modemtype not found, 
rever t to autodetect
 2006-02-10 11:49:47 [3546] [0] INFO: ----------------------------------------
 2006-02-10 11:49:47 [3546] [0] INFO: Kannel bearerbox II version 1.4.0 starting
 2006-02-10 11:49:47 [3546] [0] INFO: MAIN: Start-up done, entering mainloop
 2006-02-10 11:49:47 [3546] [6] INFO: AT2[/dev/ttyS0]: opening device
 2006-02-10 11:49:48 [3546] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
 2006-02-10 11:49:58 [3546] [6] INFO: AT2[/dev/ttyS0]: opening device
 2006-02-10 11:49:58 [3546] [6] WARNING: AT2[/dev/ttyS0]: trying to open device 
w ith not closed device!!! Please report!!!
 2006-02-10 11:49:58 [3546] [6] INFO: AT2[/dev/ttyS0]: closing device
 2006-02-10 11:49:59 [3546] [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
 2006-02-10 11:50:09 [3546] [6] INFO: AT2[/dev/ttyS0]: opening device
 2006-02-10 11:50:09 [3546] [6] WARNING: AT2[/dev/ttyS0]: trying to open device 
with not closed device!!! Please report!!!
 2006-02-10 11:50:09 [3546] [6] INFO: AT2[/dev/ttyS0]: closing device
 ___________________________________________________________________
 The last four lines just looping.
Here's my kannel configuration file taken from the sample config file and edited slightly. ____________________________________________________________________
 #
 # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
 #
 # It is run like this:
 #
 #  1% gw/bearerbox gw/smskannel.conf
 #  2% gw/smsbox gw/smskannel.conf
 #  3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
# ..all 3 commands in separate shells (or screen sessions)
 #
# For any modifications to this file, see Kannel User Guide # If that does not help, send email to [email protected]
 #
 #   Kalle Marjola May 2000
 #   Changed for new fakesmsc version by Uoti Urpala Jan 2001
 #   Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001
 #
group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = bar
 #status-password = foo
 #admin-deny-ip = ""
 #admin-allow-ip = ""
 #log-file = "/tmp/kannel.log"
 #log-level = 0
 box-deny-ip = "*.*.*.*"
 box-allow-ip = "127.0.0.1"
 #unified-prefix = "+358,00358,0;+,00"
 #access-log = "/temp/access.log"
 #store-file = "/tmp/kannel.store"
 #ssl-server-cert-file = "cert.pem"
 #ssl-server-key-file = "key.pem"
 #ssl-certkey-file = "mycertandprivkeyfile.pem"
#include = "modems.conf" # SMSC CONNECTIONS group = smsc
 smsc = at
 modemtype = "Nokia Phone"
 device = /dev/ttyS0
 speed = 9600

try different speed settings here. Nokias like 19200 by the way.

Stipe

-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture      Kannel Software Foundation (KSF)
http://www.tolj.org/              http://www.kannel.org/

mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------

Reply via email to