Hi,
I am trying to connect kannel with Nokia CDMA phone 6016i via ttyUSB0.
Problem is that kannel is not connecting with this smsc and always in
connecting status due to which all messages go into queue.
Kannel bearerbox version `svn-r4858M'. Build `Feb 7 2011 14:57:40',
compiler `4.4.5'. System Linux, release 2.6.35-25-generic, version
#44-Ubuntu SMP Fri Jan 21 17:40:48 UTC 2011, machine i686. Hostname insite,
IP 192.168.3.6. Libxml version 2.7.7. Compiled with MySQL 5.1.49, using
MySQL 5.1.49. Using native malloc.
Status: running, uptime 0d 0h 2m 43s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (*3 queued*), store size -1
SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: received 0, sent 0
DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 0 queued, using internal storage
Box connections:
smsbox:Nokia-6016i, IP 127.0.0.1 (0 queued), (on-line 0d 0h 0m 49s)
SMSC connections:
ttyUSB0[ttyUSB0]AT2[ttyUSB0] (*connecting*, rcvd: sms 0 / dlr 0,
sent: sms 0 / dlr 0, failed 0, queued 0 msgs)
Following is my kannel configuration:
# CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
status-password = foo
log-file = /var/log/kannel/kannel.log
box-deny-ip = *.*.*.*
box-allow-ip = 127.0.0.1
access-log = /var/log/kannel/access.log
# SMSC CONNECTIONS
group = modems
id = nokiaphone
name = Nokia Phone
detect-string = 6016i
need-sleep = true
init-string = ATZ
init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0
#init-string = AT+CNMI=1,2,0,1,0
#init-string = AT+CNMI=2,0,0,2,0
keepalive-cmd = AT+CBC;+CSQ
#enable-hwhs = AT+IFC=2,2
message-storage = ME
reset-string = ATZ
group = smsc
smsc = at
smsc-id = ttyUSB0
modemtype = auto
device = /dev/ttyUSB0
speed = 38400
my-number = 012345678
sim-buffering = true
log-file =/var/log/kannel/smsc.log
#-
# SMSBOX SETUP
group = smsbox
smsbox-id = Nokia-6016i
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = 0123456789 +-
log-file = /var/log/kannel/smsbox.log
access-log = /var/log/kannel/smsaccess.log
#-
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#-
# SERVICES
group = sms-service
keyword = default
text = No service specified
Following is bearerbox startup logs with debug 0
./bearerbox -v 0 smskannel.conf
2011-02-09 20:32:47 [23725] [0] INFO: Debug_lvl = 0, log_file = none,
log_lvl = 0
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 120 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 19 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 19 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 19 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 15 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 7 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 7 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 121 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 3 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] WARNING: DLR: using default 'internal' for
storage type.
2011-02-09 20:32:47 [23725] [0] INFO: DLR using storage type: internal
2011-02-09 20:32:47 [23725] [0] DEBUG: Kannel bearerbox version
`svn-r4858M'.
Build `Feb 7 2011 14:57:40', compiler `4.4.5'.
System Linux, release 2.6.35-25-generic, version #44-Ubuntu SMP Fri Jan 21
17:40:48 UTC 2011, machine i686.
Hostname insite, IP 192.168.3.6.
Libxml version 2.7.7.
Compiled with MySQL 5.1.49, using MySQL 5.1.49.
Using native malloc.
2011-02-09 20:32:47 [23725] [0] INFO: Added logfile
`/var/log/kannel/kannel.log' with level `0'.
2011-02-09 20:32:47 [23725] [0] INFO: Started access logfile
`/var/log/kannel/access.log'.
2011-02-09 20:32:47 [23725] [0] INFO: SSL not supported, no SSL
initialization done.
2011-02-09 20:32:47 [23725] [0] INFO: HTTP: Opening server at port 13000.
2011-02-09 20:32:47 [23725] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2011-02-09 20:32:47 [23725] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 23725.
2011-02-09 20:32:47 [23725] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2011-02-09 20:32:47 [23725] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 23725.
2011-02-09 20:32:47 [23725] [2] DEBUG: HTTP: Including port 13000, fd 8 for
polling in server thread
2011-02-09 20:32:47 [23725] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2011-02-09 20:32:47 [23725] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 23725.
2011-02-09 20:32:47 [23725] [0] INFO: Mutex gwlib/list.c:136: 1 locks, 0
collisions.
2011-02-09 20:32:47 [23725] [0] DEBUG: starting smsbox