Kannel is a compact and very powerful open source WAP and SMS gateway, used widely across the globe both for serving trillions of short messages (SMS), WAP Push service indications and mobile internet connectivity.
In this post we will install Kannel in few minutes, just follow those steps:
- First you need to download the Kannel source from their website. Download.
- Now you will need to install Gnome-xml aka libxml. I would recommend download the source and follow the next steps for installation. Download. ( download the latest version would work on your machine, ex: libxml2-2.7.2.tar.gz ).
- extract the downloaded file from terminal, tar xzvf libxml2-2.7.2.tar.gz .
- cd libxml2-2.7.2
- Type ./configure
- Type make
- Type make install —> And now you have libxml
- To continue with the installation of kannel, you need to extract the downloaded folder.
- Type ./configure –> you will get a message saying thank you for using Kannel.
- Type touch .depend
- Type make depend
- Type make
- Type sudo make bindir=/somewhere/suitable install —-> Enter your root password.
Next you need to configure the Gateway using this guide. I’m still figuring it out and will post my hello world application along with any useful information I reach.
Here is Kannel FAQ page for any questions you may have in mind
That’s it.
Related Articles
- Free C/C++ XML Parser Libraries (lars.ruoff.free.fr)
please give me all the step to install and configure kannel server , i under ubuntu 9.10,
thank a lot
LikeLike
these are the steps for it – but if you want to configure the server to send and receive messages, that depends on which modem are you using and what do you want exactly.
search for it.
LikeLike
apt-get install kannel ?
LikeLike
hmm .. if it exists I don’t think that’s the same kannel 🙂
LikeLike
for centos
Kannel installation
1. wget http://www.kannel.org/download/1.4.3/gateway-1.4.3.tar.gz
2. tar -xvzf gateway-1.4.3.tar.gz
3. cd gateway-1.4.3
4. ./configure –with-mysql –with-mysql-dir=/var/lib/mysql –enable-start-stop-daemon
5. make
6. make install
Make sure no errors are shown with steps 4,5,6. Install the missing packages using yum.
Sqlbox installation
1. wget http://www.kannel.org/~aguerrieri/SqlBox/Releases/sqlbox-0.7.2.tar.gz
2. tar -xvzf sqlbox-0.7.2.tar.gz
3. cd sqlbox-0.7.2
4. ./bootstrap
5. ./configure
6. make
7. make install
8. Create files kannel.conf, sqlbox.conf in /usr/local/sbin/
9. bearerbox -v 4 kannel.conf & => For starting bearerbox
10. sqlbox -v 4 sqlbox.conf & => For starting sqlbox
11. smsbox -v 4 kannel.conf & => For starting smsbox
Docs
Kannel – http://www.kannel.org/download/kannel-userguide-snapshot/userguide.html
Sqlbox – http://www.blogalex.com/wp-content/uploads/2008/11/userguide.html
After installation, check the database; a sqlbox db would be automatically created and send a test message from the database through the purchased SMS account.
LikeLike
Do you need to purchase an SMS Account to use Kannel? If you do where do you purchase it and how much is it?
LikeLike
No you don’t have to buy it. it’s an open source technology.
all you should do is connect your phone through USB port – figure out the port number –
and make sure the phone has ( at request ) service in it. Many phones don’t. I used Sony Ericsson.
Then edit the config file. that was about a year a go. so I don’t remember much details. But I believe I can find you the config file if you need it.
LikeLike
Hi Mostafa,
i am getting below mentioned error while make command after 5 step in sqlbox.
# make
make all-recursive
make[1]: Entering directory `/root/gateway-1.5.0/sqlbox-0.7.2′
Making all in gw
make[2]: Entering directory `/root/gateway-1.5.0/sqlbox-0.7.2/gw’
make[2]: Nothing to be done for `all’.
make[2]: Leaving directory `/root/gateway-1.5.0/sqlbox-0.7.2/gw’
make[2]: Entering directory `/root/gateway-1.5.0/sqlbox-0.7.2′
make[2]: Nothing to be done for `all-am’.
make[2]: Leaving directory `/root/gateway-1.5.0/sqlbox-0.7.2′
make[1]: Leaving directory `/root/gateway-1.5.0/sqlbox-0.7.2′
Please Suggest ?
LikeLike
This post was almost 2 years ago. I can’t remember facing something similar.
however try sudo make . if it didn’t help, check stalkoverflow.com and ask your question there.
LikeLike