Send users mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.kannel.org/mailman/listinfo/users
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of users digest..."
Today's Topics:
1. Re: Sending SMS with kannel - where is the fault (Andreas Friesse)
2. Re: Sending SMS with kannel - where is the fault (Nikos Balkanas)
----------------------------------------------------------------------
Message: 1
Date: Wed, 17 Nov 2010 23:41:05 +0100
From: Andreas Friesse<[email protected]>
To: Alvaro Cornejo<[email protected]>
Cc: [email protected]
Subject: Re: Sending SMS with kannel - where is the fault
Message-ID:<[email protected]>
Content-Type: text/plain; charset="utf-8"
Hi,
instead of the entry
group = smsbox
...
log-file = "/var/log/kannel/smsbox.log"
there is no log-file "smsbox.log" generated or if I create it and change
owner to kannel (or beleave it as root) there are no entries.
How could I start smsbox? Shouldn't smsbox start with the start of
kannel-script in /etc/init.d/ with bearerbox and wapbox automaticly?
BR
Andreas Frie?e
Am 17.11.2010 14:37, schrieb Alvaro Cornejo:
did you started smsbox? What does its log said?
|-----------------------------------------------------------------------------------------------------------------|
Env?e y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
celular y Nextel
en el Per?, M?xico y en mas de 180 paises. Use aplicaciones 2 vias via
SMS y GPRS online
Visitenos en www.perusms.NET www.smsglobal.com.mx y
www.pravcom.com
2010/11/16 Nikos Balkanas<[email protected]>:
Hi,
1) Address only users list for such questions.
2) Try
http://10.10.10.11:13013/cgi-bin/sendsms?username=tester&password=foobar&to=0176xxxxxxxx&text=Hello+world
3) Uncomment smsbox-id in group smsbox. You will need it.
4) Go to sleep
BR,
Nikos
----- Original Message -----
From: Andreas Friesse
To: [email protected]
Sent: Tuesday, November 16, 2010 11:30 PM
Subject: Sending SMS with kannel - where is the fault
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: andreas_friesse.vcf
Type: text/x-vcard
Size: 198 bytes
Desc: not available
URL:<http://www.kannel.org/pipermail/users/attachments/20101117/52c76e72/attachment-0001.vcf>
------------------------------
Message: 2
Date: Thu, 18 Nov 2010 00:43:42 +0200
From: "Nikos Balkanas"<[email protected]>
To: "Andreas Friesse"<[email protected]>
Cc: [email protected]
Subject: Re: Sending SMS with kannel - where is the fault
Message-ID:<195b4302c8ab44caa5ddb7024ef65...@drwho>
Content-Type: text/plain; format=flowed; charset="utf-8";
reply-type=original
Yeap. Alvaro seems to be right. Verify with:
pgrep -fl smsbox
Then type from the shell:
smsbox<kannel.conf> and post output.
BR,
Nikos
----- Original Message -----
From: Andreas Friesse
To: Nikos Balkanas
Cc: [email protected]
Sent: Thursday, November 18, 2010 12:31 AM
Subject: Re: Sending SMS with kannel - where is the fault
Hi,
telnet seems to work:
telnet 10.10.10.11 13001 (group: core - smsbox-port)
bearerbox.log:
2010-11-17 22:13:56 [1720] [2] DEBUG: HTTP: Creating HTTPClient for
`10.10.10.200'.
2010-11-17 22:13:56 [1720] [2] DEBUG: HTTP: Created HTTPClient area
0xf02120.
telnet 10.10.10.11 13000 (group: core - admin-port)
2010-11-17 22:16:49 [1720] [5] INFO: Client connected from<10.10.10.200>
2010-11-17 22:16:49 [1720] [18] DEBUG: Thread 18 (gw/bb_boxc.c:function)
maps to pid 1720.
2010-11-17 22:16:49 [1720] [5] DEBUG: Started thread 18
(gw/bb_boxc.c:function)
2010-11-17 22:16:49 [1720] [19] DEBUG: Thread 19 (gw/bb_boxc.c:boxc_sender)
maps to pid 1720.
2010-11-17 22:16:49 [1720] [18] DEBUG: Started thread 19
(gw/bb_boxc.c:boxc_sender)
telnet 10.10.10.11 13013 (group: smsbox - sendsms-port = 13013)
no connection
There is no firewall at server (10.10.10.11) an the client (10.10.10.200).
The starting script /etc/init.d/kannel isn't modified.
# /etc/init.d/kannel start
Starting WAP gateway: bearerbox wapbox.
# netstat -patun
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
PID/Program name
tcp 0 0 0.0.0.0:13000 0.0.0.0:* LISTEN
1815/bearerbox
tcp 0 0 0.0.0.0:13001 0.0.0.0:* LISTEN
1815/bearerbox
tcp 0 0 0.0.0.0:13002 0.0.0.0:* LISTEN
1815/bearerbox
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
1259/vsftpd
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
1241/sshd
tcp 0 0 127.0.0.1:34770 127.0.0.1:13002
ESTABLISHED 1835/wapbox
tcp 0 0 127.0.0.1:13002 127.0.0.1:34770
ESTABLISHED 1815/bearerbox
tcp6 0 0 :::80 :::* LISTEN
1317/apache2
tcp6 0 0 :::22 :::* LISTEN
1241/sshd
udp 0 0 0.0.0.0:1812 0.0.0.0:*
1278/freeradius
udp 0 0 0.0.0.0:1813 0.0.0.0:*
1278/freeradius
udp 0 0 0.0.0.0:1814 0.0.0.0:*
1278/freeradius
udp 0 0 0.0.0.0:9200 0.0.0.0:*
1815/bearerbox
udp 0 0 0.0.0.0:9201 0.0.0.0:*
1815/bearerbox
Shouldn't there be also an smsbox-PID?
BR
Andreas Frie?e
Am 17.11.2010 08:13, schrieb Nikos Balkanas:
Hi,
Assuming that bearerbox is in 10.10.10.11, and with bb running, try
telneting from your sendsms client to port 13013, while watching bb logs. If
it still doesn't work, you have a network/firewall problem, that you need to
resolve before asking this group for assistance.
BR,
Nikos
----- Original Message ----- From: Andreas Friesse
To: [email protected]
Sent: Wednesday, November 17, 2010 8:02 AM
Subject: Re: Sending SMS with kannel - where is the fault
Hello,
2) Try
http://10.10.10.11:13013/cgi-bin/sendsms?username=tester&password=foobar&to=0176xxxxxxxx&text=Hello+world
no response with that url
3) Uncomment smsbox-id in group smsbox. You will need it.
done - still does not work. Same errors at log.
In witch part should I search for errors. GSM Modem, Bearerbox, SMSC or at
other places?
Regards
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
------------------------------
_______________________________________________
users mailing list
[email protected]
http://www.kannel.org/mailman/listinfo/users
End of users Digest, Vol 51, Issue 52
*************************************