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
____________________________________________________________________
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
#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
#connect-allow-ip = 127.0.0.1
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = ""
#user-allow-ip = ""
# SERVICES
group = sms-service
keyword = nop
text = "You asked nothing and I did it!"
catch-all = true
group = sms-service
keyword = command
exec = "./parser %r"
# there should be default always
group = sms-service
keyword = default
text = "No service specified"
group = sms-service
keyword = help
text = "To enter a request type: command <request>. Text request to see list of requests "
group = sms-service
keyword = request
text = "make directory: mkdir <path>; reboot: reboot; shutdown: halt; view memory: view mem; help: help "
____________________________________________________________________
I'm using a Nokia GSM Modem.
Thank you for your help.
Julius Bacolod
Yahoo! Autos. Looking for a sweet ride? Get pricing, reviews, & more on new and used cars.
