Hello,i'm a noob in kannel and i'm trying to manage sms with kannel but
there is something thath it's wrong...
I'm working in Ubuntu 9.10 , kannel version is 1.4.3 , and the phone is
nokia 6500s
My kannel.conf is :

*#---CORE---#
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
status-password=foo
admin-allow-ip="127.0.0.1"
log-file = "/home/akus/Scrivania/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
store-file="/home/akus/Scrivania/kannel.store"


#---SMSC---#
group = smsc
smsc = at
smsc-id = nokiaphone
device=/dev/ttyS0
sms-center=+393916263333

group=modems
id=nokiaphone
name="Nokia Phone"
detect-string="Nokia Mobile Phone"
need-sleep=true
keepalive-cmd="AT+CBC;+CSQ"


# SMSBOX SETUP

group = smsbox
smsbox-id = smppbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
global-sender = 12345
log-file = "/home/akus/Scrivania/smsbox.log"
log-level = 0
access-log = "/home/akus/Scrivania/access.log"

group = smsbox-route
smsbox-id = smppbox
smsc-id = nokiaphone

# SEND-SMS USERS

group = sendsms-user
username = simple
password = simple*

1) First of all run kannel : *
a...@eeesatto:~$ /etc/init.d/kannel start
 * Starting WAP gateway                                                  [
OK ] *


2) Run bearerbox :
*a...@eeesatto:~$ bearerbox kannel.conf
2009-12-06 16:02:45 [1927] [0] INFO: Debug_lvl = -1, log_file = <none>,
log_lvl = 0
2009-12-06 16:02:45 [1927] [0] WARNING: DLR: using default 'internal' for
storage type.
2009-12-06 16:02:45 [1927] [0] INFO: DLR using storage type: internal
2009-12-06 16:02:45 [1927] [0] DEBUG: Kannel bearerbox version `1.4.3'.
Build `Feb 14 2009 16:26:23', compiler `4.3.3'.
System Linux, release 2.6.31-16-generic, version #52-Ubuntu SMP Thu Dec 3
22:00:22 UTC 2009, machine i686.
Hostname EeeSatto, IP 127.0.1.1.
Libxml version 2.6.32.
Using OpenSSL 0.9.8g 19 Oct 2007.
Compiled with MySQL 5.0.75, using MySQL 5.0.83.
Using native malloc.

2009-12-06 16:02:45 [1927] [0] INFO: Added logfile
`/home/akus/Scrivania/kannel.log' with level `0'.
2009-12-06 16:02:45 [1927] [0] WARNING: 'store-file' option deprecated,
please use 'store-location' and 'store-type' instead.
2009-12-06 16:02:45 [1927] [0] INFO: HTTP: Opening server at port 13000.
2009-12-06 16:02:45 [1927] [0] ERROR: bind failed
2009-12-06 16:02:45 [1927] [0] ERROR: System error 98: Address already in
use
2009-12-06 16:02:45 [1927] [0] DEBUG: Started thread 1
(gw/bb_http.c:httpadmin_run)
2009-12-06 16:02:45 [1927] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run)
maps to pid 1927.
2009-12-06 16:02:45 [1927] [1] DEBUG: HTTP: No clients with requests,
quitting.
2009-12-06 16:02:45 [1927] [0] DEBUG: starting smsbox connection module
2009-12-06 16:02:45 [1927] [1] DEBUG: Thread 1 (gw/bb_http.c:httpadmin_run)
terminates.
2009-12-06 16:02:45 [1927] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).
2009-12-06 16:02:45 [1927] [0] DEBUG: Adding smsbox routing to id <smppbox>
for smsc id <nokiaphone>
2009-12-06 16:02:45 [1927] [0] DEBUG: Started thread 2
(gw/bb_boxc.c:sms_to_smsboxes)
2009-12-06 16:02:45 [1927] [2] DEBUG: Thread 2
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 1927.
2009-12-06 16:02:45 [1927] [0] DEBUG: Started thread 3
(gw/bb_boxc.c:smsboxc_run)
2009-12-06 16:02:45 [1927] [3] DEBUG: Thread 3 (gw/bb_boxc.c:smsboxc_run)
maps to pid 1927.
2009-12-06 16:02:45 [1927] [0] INFO: Set SMS resend frequency to 60 seconds.
2009-12-06 16:02:45 [1927] [0] INFO: SMS resend retry set to unlimited.
2009-12-06 16:02:45 [1927] [0] DEBUG: smsbox MO concatenated message
handling enabled
2009-12-06 16:02:45 [1927] [0] INFO: DLR rerouting for smsc id <nokiaphone>
disabled.
2009-12-06 16:02:45 [1927] [0] INFO: AT2[nokiaphone]: configuration doesn't
show modemtype. will autodetect
2009-12-06 16:02:45 [1927] [0] DEBUG: Started thread 4
(gw/smsc/smsc_at.c:at2_device_thread)
2009-12-06 16:02:45 [1927] [4] DEBUG: Thread 4
(gw/smsc/smsc_at.c:at2_device_thread) maps to pid 1927.
2009-12-06 16:02:45 [1927] [4] DEBUG: AT2[nokiaphone]: detecting modem
speed.
2009-12-06 16:02:45 [1927] [0] DEBUG: Started thread 5
(gw/bb_smscconn.c:sms_router)
2009-12-06 16:02:45 [1927] [5] DEBUG: Thread 5 (gw/bb_smscconn.c:sms_router)
maps to pid 1927.
2009-12-06 16:02:45 [1927] [0] INFO:
----------------------------------------
2009-12-06 16:02:45 [1927] [4] INFO: AT2[nokiaphone]: opening device
2009-12-06 16:02:45 [1927] [0] INFO: Kannel bearerbox II version 1.4.3
starting
2009-12-06 16:02:45 [1927] [4] DEBUG: AT2[nokiaphone]: device opened. Telnet
mode = 0
2009-12-06 16:02:45 [1927] [0] INFO: Loading store file
`/home/akus/Scrivania/kannel.store'
2009-12-06 16:02:45 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:02:45 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:02:45 [1927] [0] INFO: Store-file size 0, starting to unpack
2009-12-06 16:02:45 [1927] [0] INFO: Retrieved 0 messages, non-acknowledged
messages: 0
2009-12-06 16:02:45 [1927] [0] DEBUG: Started thread 6
(gw/bb_store_file.c:store_dumper)
2009-12-06 16:02:45 [1927] [6] DEBUG: Thread 6
(gw/bb_store_file.c:store_dumper) maps to pid 1927.
2009-12-06 16:02:45 [1927] [0] INFO: MAIN: Start-up done, entering mainloop
2009-12-06 16:02:45 [1927] [6] DEBUG: Dumping 0 messages to store
2009-12-06 16:02:45 [1927] [0] DEBUG: AT2[nokiaphone]: start called
2009-12-06 16:02:46 [1927] [4] DEBUG: AT2[nokiaphone]: device opened
2009-12-06 16:02:46 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:02:46 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:02:46 [1927] [4] INFO: AT2[nokiaphone]: speed set to 115200
2009-12-06 16:02:46 [1927] [4] DEBUG: AT2[nokiaphone]: --> ^M
2009-12-06 16:02:46 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:02:46 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:02:48 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:02:48 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:02:48 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:02:52 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:02:52 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:02:52 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:02:56 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:02:56 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:02:56 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:00 [1927] [4] INFO: AT2[nokiaphone]: Closing device
2009-12-06 16:03:00 [1927] [4] INFO: AT2[nokiaphone]: opening device
2009-12-06 16:03:00 [1927] [4] DEBUG: AT2[nokiaphone]: device opened. Telnet
mode = 0
2009-12-06 16:03:00 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:00 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:01 [1927] [4] DEBUG: AT2[nokiaphone]: device opened
2009-12-06 16:03:01 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:01 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:01 [1927] [4] INFO: AT2[nokiaphone]: speed set to 57600
2009-12-06 16:03:01 [1927] [4] DEBUG: AT2[nokiaphone]: --> ^M
2009-12-06 16:03:01 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:01 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:03 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:03 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:03 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:07 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:07 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:07 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:11 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:11 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:11 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:15 [1927] [4] INFO: AT2[nokiaphone]: Closing device
2009-12-06 16:03:15 [1927] [4] INFO: AT2[nokiaphone]: opening device
2009-12-06 16:03:15 [1927] [4] DEBUG: AT2[nokiaphone]: device opened. Telnet
mode = 0
2009-12-06 16:03:15 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:15 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:16 [1927] [4] DEBUG: AT2[nokiaphone]: device opened
2009-12-06 16:03:16 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:16 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:16 [1927] [4] INFO: AT2[nokiaphone]: speed set to 38400
2009-12-06 16:03:16 [1927] [4] DEBUG: AT2[nokiaphone]: --> ^M
2009-12-06 16:03:16 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:16 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:18 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:18 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:18 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:22 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:22 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:22 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:26 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:26 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:26 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:30 [1927] [4] INFO: AT2[nokiaphone]: Closing device
2009-12-06 16:03:30 [1927] [4] INFO: AT2[nokiaphone]: opening device
2009-12-06 16:03:30 [1927] [4] DEBUG: AT2[nokiaphone]: device opened. Telnet
mode = 0
2009-12-06 16:03:30 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:30 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:31 [1927] [4] DEBUG: AT2[nokiaphone]: device opened
2009-12-06 16:03:31 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:31 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:31 [1927] [4] INFO: AT2[nokiaphone]: speed set to 19200
2009-12-06 16:03:31 [1927] [4] DEBUG: AT2[nokiaphone]: --> ^M
2009-12-06 16:03:31 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:31 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:33 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:33 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:33 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:37 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:37 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:37 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:41 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:41 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:41 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:45 [1927] [4] INFO: AT2[nokiaphone]: Closing device
2009-12-06 16:03:45 [1927] [4] INFO: AT2[nokiaphone]: opening device
2009-12-06 16:03:45 [1927] [4] DEBUG: AT2[nokiaphone]: device opened. Telnet
mode = 0
2009-12-06 16:03:45 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:45 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:46 [1927] [4] DEBUG: AT2[nokiaphone]: device opened
2009-12-06 16:03:46 [1927] [4] ERROR: AT2[nokiaphone]: at_data_link: fail to
set termios attribute
2009-12-06 16:03:46 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:46 [1927] [4] INFO: AT2[nokiaphone]: speed set to 9600
2009-12-06 16:03:46 [1927] [4] DEBUG: AT2[nokiaphone]: --> ^M
2009-12-06 16:03:46 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:46 [1927] [4] ERROR: System error 5: Input/output error
2009-12-06 16:03:48 [1927] [4] DEBUG: AT2[nokiaphone]: --> AT^M
2009-12-06 16:03:48 [1927] [4] ERROR: AT2[nokiaphone]: Couldnot write to
device.
2009-12-06 16:03:48 [1927] [4] ERROR: System error 5: Input/output error

*3) Run smsbox :
*a...@eeesatto:~$ smsbox kannel.conf
2009-12-06 16:04:50 [1957] [0] INFO: Debug_lvl = -1, log_file = <none>,
log_lvl = 0
2009-12-06 16:04:50 [1957] [0] DEBUG: Kannel smsbox version `1.4.3'.
Build `Feb 14 2009 16:26:23', compiler `4.3.3'.
System Linux, release 2.6.31-16-generic, version #52-Ubuntu SMP Thu Dec 3
22:00:22 UTC 2009, machine i686.
Hostname EeeSatto, IP 127.0.1.1.
Libxml version 2.6.32.
Using OpenSSL 0.9.8g 19 Oct 2007.
Compiled with MySQL 5.0.75, using MySQL 5.0.83.
Using native malloc.

2009-12-06 16:04:50 [1957] [0] INFO: Starting to log to file
/home/akus/Scrivania/smsbox.log level 0
2009-12-06 16:04:50 [1957] [0] INFO: Added logfile
`/home/akus/Scrivania/smsbox.log' with level `0'.
2009-12-06 16:04:50 [1957] [0] INFO: Service global sender set as '12345'
2009-12-06 16:04:50 [1957] [0] INFO: Logging accesses to
'/home/akus/Scrivania/access.log'.
2009-12-06 16:04:50 [1957] [0] INFO: Started access logfile
`/home/akus/Scrivania/access.log'.
2009-12-06 16:04:50 [1957] [0] INFO: HTTP: Opening server at port 13013.
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2009-12-06 16:04:50 [1957] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 1957.
2009-12-06 16:04:50 [1957] [0] INFO: Set up send sms service at port 13013
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 3
(gw/smsbox.c:sendsms_thread)
2009-12-06 16:04:50 [1957] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread)
maps to pid 1957.
2009-12-06 16:04:50 [1957] [0] DEBUG:
----------------------------------------------
2009-12-06 16:04:50 [1957] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2009-12-06 16:04:50 [1957] [0] DEBUG:   dumping group (sendsms-user):
2009-12-06 16:04:50 [1957] [0] DEBUG:     <group> = <sendsms-user>
2009-12-06 16:04:50 [1957] [0] DEBUG:     <username> = <simple>
2009-12-06 16:04:50 [1957] [0] DEBUG:     <password> = <simple>
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2009-12-06 16:04:50 [1957] [4] DEBUG: Thread 4
(gw/smsbox.c:obey_request_thread) maps to pid 1957.
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2009-12-06 16:04:50 [1957] [5] DEBUG: Thread 5
(gw/smsbox.c:url_result_thread) maps to pid 1957.
2009-12-06 16:04:50 [1957] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 1957.
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2009-12-06 16:04:50 [1957] [6] DEBUG: Thread 6
(gw/smsbox.c:http_queue_thread) maps to pid 1957.
2009-12-06 16:04:50 [1957] [0] INFO: Connected to bearerbox at localhost
port 13001.
2009-12-06 16:04:50 [1957] [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
2009-12-06 16:04:50 [1957] [7] DEBUG: Thread 7
(gw/heartbeat.c:heartbeat_thread) maps to pid 1957.

*What's wrong ?


Thanks in advance,

akus.

*
**

*

Reply via email to