Sending SMS with kannel - where is the fault

Andreas Friesse <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
*Hello Community,

I hope there is anybody out there who could help me. About the last five
days I turn bit for bit, have read nearly every thread I could found -
but kannel refuses to work. Meanwhile my head is spinning and I can't
get no sleep about this problem...

First of all - I want to use kannel only for sending sms with mobile
phone. Later there should be SMS-Center to send at the same time many
SMS. So I decided to try kannel.

Installation of kannel works fine. Configuration isn't as easy as it
seemed to be. This is my configuration file (kannel.conf)*

#############
# kannel.conf
# -------------------

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;10.10.10.200"
# wapbox-port = 13002
# wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;10.10.10.200"
access-log = "/var/log/kannel/access-core.log"
store-file = "/var/log/kannel/kannel.store"

# WAP-Gateway
#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"

# SMS-CENTERS
group = smsc
smsc = at
smsc-id = K800
modemtype = auto
device = /dev/ttyACM0
my-number = 01577xxxxxxx # my phone-No
#port = 10000
connect-allow-ip = "127.0.0.1;10.10.10.200"
log-level = 0
speed = 460800
pin = xxxx # my sim-pin number
# keepalive = 90
include = "/etc/kannel/modems.conf"

#Modem Detection
group = modems
id = sonyericsson_k800
name = "Sony Ericsson K800"
detect-string = "Sony Ericsson"
detect-string2 = "K800"
init-string = "AT+CNMI=2,3"
message-storage = "SM"
enable-mms = true

# SMSBOX
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
# bearerbox-port = 13001
global-sender = 13013
# smsbox-id = "my smsbox"
sendsms-chars = "0123456789 +-"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "access.log"

# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar


############
# modems.conf
# -------------------
# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"

group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true

group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
keepalive-cmd = "AT+CBC;+CSQ"
need-sleep = true

group = modems
id = siemens_sl45
name = "Siemens SL45"
detect-string = "SIEMENS"
detect-string2 = "SL45"
init-string = "AT+CNMI=1,2,2,2,1"
keepalive-cmd = "AT+CBC;+CSQ"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
message-storage = "SM"

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

group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"
#no-smsc = true

group = modems
id = ericsson_r520m
name = "Ericsson R520m"
detect-string = "R520m"
init-string = "AT+CNMI=3,2,0,0"

#Modem Detection
group = modems
id = sonyericsson_k800
name = "Sony Ericsson K800"
detect-string = "Sony Ericsson"
detect-string2 = "K800"
init-string = "AT+CNMI=2,3"
#message-storage = "SM"
enable-mms = true

group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "AT+CNMI=3,3"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true

group = modems
id = sonyericsson_gr47
name = "Sony Ericsson GR47"
detect-string = "GR47"
message-storage = "ME"
# use this init-string for non sim-buffering
init-string = "AT+CNMI=3,2,0,0"
# use this init-string for sim-buffering
#init-string = "AT+CNMI=3,1,0,0"
reset-string = "ATZ"
broken = true

group = modems
id = alcatel
name = "Alcatel"
detect-string = "Alcatel"
init-string = "AT+CNMI=3,2,0,0"

group = modems
id = sonyericsson_T630-T628
name = "Sony Ericsson T630-T628"
init-string = "AT+CNMI=2,3,2,0,0;+CMGF=0"
keepalive-cmd = "AT+CBC;+CSQ;+CMGF=0"
broken = true



*When I start kannel (/etc/init.d/kannel start) everthing looks fine in
bearerbox.log (logging stops at the end).


*2010-11-16 21:01:25 [1506] [0] INFO: Added logfile
`/var/log/kannel/bearerbox.lo
g' with level `0'.
2010-11-16 21:01:25 [1506] [0] INFO: Started access logfile
`/var/log/kannel/acc
ess-core.log'.
2010-11-16 21:01:25 [1506] [0] INFO: HTTP: Opening server at port 13000.
2010-11-16 21:01:25 [1506] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller)
maps to pi
d 1506.
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thre
ad)
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_r
un)
2010-11-16 21:01:25 [1506] [0] DEBUG: starting smsbox connection module
2010-11-16 21:01:25 [1506] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using d
efault (100).
2010-11-16 21:01:25 [1506] [2] DEBUG: Thread 2
(gwlib/http.c:server_thread) maps
 to pid 1506.
2010-11-16 21:01:25 [1506] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) ma
ps to pid 1506.
2010-11-16 21:01:25 [1506] [3] DEBUG: Thread 3
(gw/bb_http.c:httpadmin_run) maps
 to pid 1506.
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsb
oxes)
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run
)
2010-11-16 21:01:25 [1506] [0] INFO: Set SMS resend frequency to 60 seconds.
2010-11-16 21:01:25 [1506] [0] INFO: SMS resend retry set to unlimited.
2010-11-16 21:01:25 [1506] [0] INFO: DLR rerouting for smsc id <K800>
disabled.
2010-11-16 21:01:25 [1506] [0] INFO: AT2[K800]: configuration doesn't
show modem
type. will autodetect
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 6
(gw/smsc/smsc_at.c:at2_de
vice_thread)
2010-11-16 21:01:25 [1506] [5] DEBUG: Thread 5
(gw/bb_boxc.c:smsboxc_run) maps t
o pid 1506.
2010-11-16 21:01:25 [1506] [7] DEBUG: Thread 7
(gw/bb_smscconn.c:sms_router) map
s to pid 1506.
2010-11-16 21:01:25 [1506] [7] DEBUG: sms_router: time to sleep 30.00 secs.
2010-11-16 21:01:25 [1506] [6] DEBUG: Thread 6
(gw/smsc/smsc_at.c:at2_device_thr
ead) maps to pid 1506.
2010-11-16 21:01:25 [1506] [6] DEBUG: AT2[K800]: detecting modem type
2010-11-16 21:01:25 [1506] [6] INFO: AT2[K800]: opening device
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_rou
ter)
2010-11-16 21:01:25 [1506] [0] INFO:
----------------------------------------
2010-11-16 21:01:25 [1506] [0] INFO: Kannel bearerbox II version 1.4.1
starting
2010-11-16 21:01:25 [1506] [0] INFO: Loading store file
`/var/log/kannel/kannel.
store'
2010-11-16 21:01:25 [1506] [0] INFO: Store-file size 0, starting to unpack
2010-11-16 21:01:25 [1506] [0] INFO: Retrieved 0 messages,
non-acknowledged mess
ages: 0
2010-11-16 21:01:25 [1506] [0] DEBUG: Started thread 8
(gw/bb_store.c:store_dump
er)
2010-11-16 21:01:25 [1506] [0] INFO: MAIN: Start-up done, entering mainloop
2010-11-16 21:01:25 [1506] [0] DEBUG: AT2[K800]: start called
2010-11-16 21:01:25 [1506] [7] DEBUG: sms_router: gwlist_len = 0
2010-11-16 21:01:25 [1506] [8] DEBUG: Thread 8
(gw/bb_store.c:store_dumper) maps
 to pid 1506.
2010-11-16 21:01:25 [1506] [8] DEBUG: Dumping 0 messages to store
2010-11-16 21:01:25 [1506] [6] DEBUG: AT2[K800]: device opened
2010-11-16 21:01:26 [1506] [6] DEBUG: AT2[K800]: device opened
2010-11-16 21:01:26 [1506] [6] INFO: AT2[K800]: speed set to 460800
2010-11-16 21:01:26 [1506] [6] DEBUG: AT2[K800]: --> ^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> AT^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- AT
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> AT&F^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- AT&F
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> ATE0^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- ATE0
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> ATI^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- Sony Ericsson K800
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] DEBUG: Loading include file
`/etc/kannel/modems.c
onf' (on line 41 of file /etc/kannel/kannel.conf).
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: found string <Sony
Ericsson> pl
us <K800>, using modem definition <Sony Ericsson K800>
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> AT+CSMS=?^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- +CSMS: (0)
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] INFO: AT2[K800]: closing device
2010-11-16 21:01:28 [1506] [6] INFO: AT2[K800]: opening device
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: device opened
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: device opened
2010-11-16 21:01:28 [1506] [6] INFO: AT2[K800]: init device
2010-11-16 21:01:28 [1506] [6] INFO: AT2[K800]: speed set to 460800
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> ATZ^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> AT^M
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- AT
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:28 [1506] [6] DEBUG: AT2[K800]: --> AT&F^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- AT&F
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: --> ATE0^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- ATE0
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: --> AT+IFC=2,2^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: --> AT+CPIN?^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- +CPIN: READY
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: --> AT+CMGF=0^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- +CMGF: 0
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: --> AT+CSMS=?^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- +CSMS: (0)
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: --> AT+CNMI=2,3^M
2010-11-16 21:01:29 [1506] [6] DEBUG: AT2[K800]: <-- OK
2010-11-16 21:01:29 [1506] [6] INFO: AT2[K800]: AT SMSC successfully
opened.*

access-core.log
*2010-11-16 21:00:02 Log begins
2010-11-16 21:00:14 Log ends
2010-11-16 21:01:25 Log begins


*Now I trying to send a sms via http.
http://10.10.10.11:13001/cgi-bin/sendsms?username=tester&password=foobar&to=0176xxxxxxxx&text=Hello+world*

*bearerbox.log*
2010-11-16 21:06:04 [1506] [5] INFO: Client connected from <10.10.10.200>
2010-11-16 21:06:04 [1506] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function)
maps to pid 1506.
2010-11-16 21:06:04 [1506] [5] DEBUG: Started thread 9
(gw/bb_boxc.c:function)
2010-11-16 21:06:04 [1506] [10] DEBUG: Thread 10
(gw/bb_boxc.c:boxc_sender) maps to pid 1506.
2010-11-16 21:06:04 [1506] [9] DEBUG: Started thread 10
(gw/bb_boxc.c:boxc_sender)

*The loading in the browser doesn't stop after minutes... with the
message "connection failed" in the browser-window. By stoping the
http-request, the following message is presented in bearerbox.log*
2010-11-16 21:13:16 [1506] [9] INFO: Connection closed by the box
<10.10.10.200>
2010-11-16 21:13:16 [1506] [10] DEBUG: send_msg: sending msg to box:
<10.10.10.200>
2010-11-16 21:13:16 [1506] [10] DEBUG: Thread 10
(gw/bb_boxc.c:boxc_sender) terminates.
2010-11-16 21:13:16 [1506] [9] DEBUG: Thread 9 (gw/bb_boxc.c:function)
terminates.

*
I'm using as GSM-Modem a Sony Ericson K800i mobile phone with a blau.de
simcard, connected by usb-port. It's a debian-system in a DomU from XEN.
The USB-Port is conected via pcipassthrough.
lspci:
*00:00.0 USB Controller: ATI Technologies Inc SB700/SB800 USB OHCI0
Controller
00:00.2 USB Controller: ATI Technologies Inc SB700/SB800 USB EHCI Controller
*lsusb:*
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0fce:d039 Sony Ericsson Mobile Communications AB
K800i Phone
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
*
Kannel-Version is the version of the debian-package, installed from sources.


Could this configuration with this mobile phone as gsm modem work?
Anyone an idea? A hind? Or even a solution?

Regards

Andreas Frieße
*
*

*
andreas_friesse.vcf (text/x-vcard, 191 B)
begin:vcard
fn:Andreas Friesse
n:Friesse;Andreas
adr;quoted-printable:;;Karl-Preis-Platz 1a;M=C3=BCnchen;Bayern;81671;Deutschland
email;internet:[email protected]
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.