Image 01 Image 02

Posts Tagged ‘sms gateway’

setting up your own sms gateway in linux

Saturday, October 27th, 2007

SMS gateways allow for the sending and receiving of SMS messages to or from devices and used to provide SMS network connectivity to third parties.You will need a mobile phone (supported) and sms gateway software.

While there are many propreitory solutions ,we went looking for opensource and free software .Kannel and gnokii ended up as best choices.

gnokii works well with many models but simpler the phone better the performance .using symbian phones only adds to complication. Although it supports varierty of protocols like bluetooth,infrared,serial .

We chose nokia 3100 and dku5 cable for the setup .

download the gnokii from its official download site

$ tar zxvf filename.tar.gz && cd gnokiii-xx

$./configure ( this shud tell you if you need to install any dependencies )

$ make && make install ( will finally install ,remember this command will have to be run as root )

now we need to create a config file .a sample file is given in /etc/gnokii/gnokiirc ,copy that file to ~/.gnokiirc

$cp /etc/gnokii/gnokiirc ~/.gnokiirc

now start editing your gnokiirc

sample config file for nokia3100 with dku5 cable is

First find out the port at which the cable is connected ,

$dmesg should tell you ,you must be seeing like /dev/ttyUSB0 most common .

port = /dev/ttyUSB0
model = 6510
connection = dku5

if this doesnt work then you will have to look at dmesg output to see if u see the dlr3p kernel drivier in output .in that case

 port = /dev/ttyUSB0
 model = 6510
connection = dlr3p

and now you we are all ready to get running .

$gnokii –identify

it should probe and give out the correct details of your mobile .its manufacturer ,model number version OS etc .

then lets try commands.

$gnokii –getsms IN 1 ( should get the latest sms in inbox )

$gnokii –sendsms 98xxxxx should send an sms to that number

$gnokii –help will tell you all the commands available.I tried calling from my gnokii and also attending calls from gnokii .

Now you can couple this with sms to have a complete daemon .smsd uses mysql so rest assured of all the sms sent .

Having said this ,i can tell you .Its not easy we have spent nights trying to get this .It will need a lot of your hacking skills to get anything :-) so happy hacking ! and yeah

#gnokii irc.freenode.net will help u

And why opensource sms solution ? because all the providers charge you nothing less than a lakh for setup .


FireStats icon Powered by FireStats