setting up your own sms gateway in linux
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 .
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
Comments
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
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
@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
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!
@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.
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
@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 !
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?
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
Can you really make dku5 work with Gnokii in Linux. After failed attempt I am now looking for dlr3p cable.

Iam Theyagarajan S ( 'taggy') . to know more ,head out to

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