Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-28-2009, 07:56 AM   #1
LQ Newbie
Registered: Apr 2009
Posts: 2

Rep: Reputation: 0
Using Kannel to receive SMS on ubuntu

Hey there,
I don't know if this is where i should post my question but i was hoping that someone might help me...

I've installed kannel on ubuntu, and now i'm trying to use it to receive messages.

I think i'm running the bearerbox and smsbox correctly now, because i
finally got the message

2009-04-28 13:52:10 [13083] [6] INFO: AT2[/dev/rfcomm0]: AT SMSC
successfully opened.

Then, when i run the smsbox i get this in the bearerbox shell

2009-04-28 13:52:21 [13083] [5] INFO: Client connected from <>
2009-04-28 13:52:21 [13083] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps
to pid 13083.
2009-04-28 13:52:21 [13083] [5] DEBUG: Started thread 8
2009-04-28 13:52:21 [13083] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender)
maps to pid 13083.
2009-04-28 13:52:21 [13083] [8] DEBUG: Started thread 9

Does that mean it's running ok?
This is all i get, no new messages appear..

So now i try to send an SMS and see if it is received in kannel, but nothing
happens, not in the shell nor the log files, nothing is stated about
received messages or anything... what could be wrong?

This is my smskannel.conf

# This basic version is used for system testing. It expects 'fakesmsc' to
# send messages which are replied with simple fixed text message.
# It is run like this:
# 1% gw/bearerbox gw/smskannel.conf
# 2% gw/smsbox gw/smskannel.conf
# 3% test/fakesmsc -i 0.1 -m 100 "123 345 text nop"
# ..all 3 commands in separate shells (or screen sessions)
# Note that you can run them in different machines but have to
# add certain command line argument and configuration variables then
# For any modifications to this file, see Kannel User Guide
# If that does not help, see Kannel web page ( and
# various online help and mailing list archives
# Notes on those who base their configuration on this:
# 1) check security issues! (allowed IPs, passwords and ports)
# 2) groups cannot have empty rows inside them!
# 3) read the user guide
# Kalle Marjola for Kannel project 2001, 2004

include ="/home/path/kannel-1.4.1/gw/modems.conf"

# There is only one core group and it sets all basic settings
# of the bearerbox (and system). You should take extra notes on
# configuration variables like 'store-file' (or 'store-dir'),
# 'admin-allow-ip' and 'access.log'

group = core
admin-port = 13016
smsbox-port = 13017
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = ""
#unified-prefix = "+358,00358,0;+,00"
access-log = "/tmp/kannel/access.log"
#store-file = ""
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs

# This is a fake smsc connection, _only_ used to test the system and
# It really cannot relay messages to actual handsets!

group = smsc
smsc = at
modemtype = auto
my-number = my mobile number
connect-allow-ip =
log-level = 0

# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for

group = smsbox
bearerbox-host =
sendsms-port = 130019
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/kannel/smsbox.log"
log-level = 0
#access-log = "/tmp/kannel/access.log"

# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like

group = sendsms-user
username = tester
password = foobar
concatenation= true
max-messages = 10
#user-deny-ip = ""
#user-allow-ip = ""

# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service
# applied, using the first one to match.

group = sms-service
keyword =
keyword-regex = .*
catch-all = yes
max-messages = 0
get-url = "http://website/templates/sms.php?sender=%p&text=%a"

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# There should be always a 'default' service. This service is used when no
# other 'sms-service' is applied.

group = sms-service
keyword = default
text = "No service specified"

and this is my modems conf

name="Generic Modem"
detect-string= "Nokia"
detect-string2= "6260"
init-string= "AT+CNMI=2,1,0,0,0"

Old 04-30-2009, 03:34 AM   #2
Registered: Feb 2008
Location: JHB South Africa
Distribution: Centos, Kubuntu, Cross LFS, OpenSolaris
Posts: 806

Rep: Reputation: 41
The smsbox log should say what has happened to the request, you can up the debug and see the actual communication with the modem as well.
Old 05-01-2009, 05:24 AM   #3
LQ Newbie
Registered: Apr 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Kannel is now receiving messages

Thank you, Kannel is now working properly, the problem was in the phone i was using a Nokia 6260, which obviously doesn't work well with kannel, you could send through it but not receive. I tried an ericsson T68, and it worked.. Thank GOD
Old 07-22-2009, 03:21 AM   #4
LQ Newbie
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
Originally Posted by b_f View Post
Thank you, Kannel is now working properly, the problem was in the phone i was using a Nokia 6260, which obviously doesn't work well with kannel, you could send through it but not receive. I tried an ericsson T68, and it worked.. Thank GOD
please help
I have configured kannel using nokia 3110c and able to send message successfully....But i read in google that 3110c will not support some AT commands to receive....So u said u have used sony erricson for send ans receive right....Please tell me which model and please please can u send me the working kannel.cong...I am stuck from last 2 weeks....
Help me out Bro
Waitin for ur positive reply...
Take care


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kannel sms-service get-url problem lsropia Linux - Software 1 07-16-2009 02:56 AM
to send sms using kannel hamid1011 Linux - Mobile 2 06-19-2009 11:58 AM
Kannel - incoming SMS is not detected but outbound works edwinsky Linux - Networking 0 02-23-2009 01:56 AM
kannel problem: fail sending sms via GPRS modem prad Linux - Software 2 12-05-2006 11:21 AM
How to send sms with more than 160 characters with Kannel ? skeezo Linux - Wireless Networking 1 03-21-2004 04:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration