Image 01 Image 02

setting up your own sms gateway in linux

Posted on 27th October 2007 by Taggy
18

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 .



18
Responses to.. setting up your own sms gateway in linux

vijay INDIA Windows 2000 Internet Explorer 6.0 posted on October 27th 2007

but i think nokia 3100 doesnt support sending messages through dlr3p protocol. it supports fbus though .
did you get response ?



Taggy INDIA Linux Mozilla Firefox 2.0.0.8 posted on October 29th 2007

yes you are right,we did manage to read sms and also the contacts and call services but it timed out when trying to send an sms .We have filed a bug with gnokii though :-) hopefully a patch is on the way



ardhie INDONESIA Windows XP Internet Explorer 6.0 posted on December 12th 2007

heloo…
i’m linux newbe
i’m from indonesian..
can you help me to made sms gateway application?
software and tools which i use : Knoppix, gambas, gnokii, mysql, serial cable CA-42(nokia 6510)..
please, help me…
where is i get tutorial sms gateway??

ardhie indonesia



Taggy INDIA Windows XP Mozilla Firefox 3.0b2pre posted on December 12th 2007

@ardhie ,what help are you looking at ?
did you check out the compatibility of the model nokia 6510 with gnokii ? i have used gnokii and got it to work on limited sets i would be glad to help you if i could ,a better place to start would be

http://gnokii.org/
http://wiki.gnokii.org/index.php/Main_Page and
http://gnokii.org/support.shtml



ardhie INDONESIA Windows XP Internet Explorer 6.0 posted on December 14th 2007

thanks mr.taggy..

i have any problem in :
root@localhost:/# smsd -u mysql -u root -d sms
dlopen error: /usr/local/lib/smsd/libpq.so: cannot open shared object file: No such file or directory!
Cannot load database module pq in directory /usr/local/lib/smsd!

please, solve my problem.

thanks!



xurizaemon NEW ZEALAND Ubuntu Linux Mozilla Firefox 2.0.0.11 posted on January 9th 2008

@mr.taggy - the error “/usr/local/lib/smsd/libpq.so - cannot open shared object file - no such file or directory” is telling you that the file /usr/local/lib/smsd/libpq.so is missing.

your smsd has been built without the shared lib for postgres queries, OR is configured to look in the wrong place.

try “locate libpq.so” and see if that reveals the actual location of the file, or if it is missing, rebuild gnokii-smsd.

your linux distribution probably provides prebuilt versions of this software anyway, so unless you have a specific need to build it yourself that may be an easier option.



jagjit INDIA Windows XP Internet Explorer 7.0 posted on January 11th 2008

Guys i want to set up my own SMS gateway so that i can provide control panel on my website, from were the registered user can send sms to there clients in one go (Group SMSing). Do let me know what all i will require and cost factor involved….. Currently i have a Win 2k server with 1 GB Space. Do let me …

Thanks guys



arhie INDONESIA Windows XP Internet Explorer 6.0 posted on January 12th 2008

thanks daughter,
i will try it..

GBU!



arthur collins UNITED KINGDOM Windows XP Internet Explorer 6.0 posted on January 29th 2008

how can i put free sms gateway on my website so that users can send free sms from my site



Taggy INDIA Linux Mozilla Firefox 2.0.0.10 posted on January 29th 2008

@arthur u will have to buy one such thing from a sms gateway dealer .They give you the APIs to send and recieve messages or else you can use gnokii to store messages and details in your database and then have a server scripts (php) to read and do whatever from it !



rocaboy1uk Windows XP Mozilla Firefox 1.0.7 posted on February 26th 2008

The setup above should work for light loads. Does anyone know what kind of configurations or equipment would be required for heavy loads i.e. 10k+ messages, sent and received per day?



jimsotonna AUSTRALIA posted on March 3rd 2008

jimsotonna…

jimsotonna dropped by…



Taggy INDIA Linux Mozilla Firefox 2.0.0.10 posted on March 5th 2008

@jimstonna,thanks for dropping by :) . ru spam btw :D ?



xurizaemon NEW ZEALAND Mac OS X Mozilla Firefox 2.0.0.12 posted on March 6th 2008

yes, he is; google his name - he’s just keyword baiting

wierd practice



sms send TURKEY Windows XP Internet Explorer 7.0 posted on April 11th 2008

Konularına göre ayrılmış SMS sözleri ve hazır mesajlar içeriyor.



MAPAYS INDONESIA Windows XP Internet Explorer 6.0 posted on April 16th 2008

My problem has been resolved.
now, i use gammu to handle this.
but, i hope you help me again.
help me to make trigger mysql for autoreply.
can you help me sir?

thank you very much

best regards,
mapays



mapays INDONESIA Windows XP Internet Explorer 7.0 posted on April 22nd 2008

how build sms gateway gnokii with trigger mysql or postgresql for auto reply sir??



Ehsan BANGLADESH Windows XP Mozilla Firefox 2.0.0.14 posted on May 1st 2008

Can you really make dku5 work with Gnokii in Linux. After failed attempt I am now looking for dlr3p cable.



Leave a reply...






FireStats icon Powered by FireStats