![]() ![]()
It was quite confusing for me as well at first, but it’s pretty straight forward. Yes, it is done through DLR’s, read chapter 9 page 118 for a better understanding. Hope this helps, let me know if you need more help. Push the sms via Kannel’s HTTP Interface (For more info, check page 97 of Kannel user guide) Get the content from MySQL with a select statementĢ. Now, if you would like to pull the content of your SMS from MySQL, you’d have to use a back-end application to perform this task in 2 steps :ġ. “to=0123456” is your destination number and “text=Hello+world” the content of your sms “username=foo&password=bar” are set under the sendsms-user group To send an SMS, use Kannel’s HTTP interface using either a web browser or an HTTP library of your preferred scripting language. %a for content, etc… (For more info, check page 78 of the user guide : ) ![]() This means that every incoming sms, regardless of its content, will trigger this particular application by calling a get URL (in the above example : and pass the following parameters : A simple sms-service group would look like this : In the sms-service group you need to specify the URI in the get-url attribute. ![]() The best way to store incoming/outgoing messages into MySQL is to use a back-end application that will perform the task via HTTP (your back-end could be in any language : php,perl,ruby,java,etc…). ![]() HELP TO SETUP KANNEL AS SMSC HOW TOIf you get stuck or need help on how to proceed, email me on hacking !!! □ configure –prefix=/usr/local/kannel –enable-start-stop-daemon –with-mysqlīut before that, I would suggest you to read “Chapter 3 : Using the gateway” in the user guide –enable-start-stop-daemon compiles a start/stop daemon program to run kannel –prefix defines where your current installation will be located (my current location is /usr/local/kannel but you can use a different one as long as it exists) configure –prefix=/usr/local/kannel –enable-start-stop-daemon HELP TO SETUP KANNEL AS SMSC INSTALL$ sudo apt-get install libmysqlclient15-devĭepending on how you would wish to compile it, refer to the user guide to see other options (Chapter 2 : Installing the Gateway, section : Compiling the gateway) #Optional : if you wish to use MySQL with your Kannel installation (details can be found in the user guide) $ sudo apt-get install libxml2 libxml2-dev You might wonder, “How do i get all this stuff installed?” – GNU autoconf, if you want to modify the configuration script – DocBook processing tools: DocBook style-sheets, jade, jadetex, etc – The Gnome XML library (known as gnome-xml and libxml), version 2.2.5 or newer. – C compiler and libraries for ANSI C, with normal Unix extensions such as BSD sockets and relate tools. HELP TO SETUP KANNEL AS SMSC SOFTWAREKannel requires the following software environment: #Go to a specific location (i am using /usr/local/src, but yours could be different, just make sure it exists) RPM and Debian packages are available but i will recommend to install it from sources. Pretty much of the work here will be performed via command line, so i would suggest you to fire up your beloved Terminal □ This short guide is based on Ubuntu Linux (from 8.04 to 10.04) but should work on other Linux distros (Fedora, CentOS, SUSE, etc) The steps are pretty straight forward but not self explanatory in the Kannel user guide ( ), which you will definitely need after you have successfully installed it. Now, for newbies who would wish to use this extraordinary piece of work, you might find yourself stuck trying to install it. If you intend to play around with SMS’es, build your own SMS application, this tool is perfect for you!!! 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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |