Configure kannel to get the data from database


#1

hi everyone,
My project is to send sms to mobile. iam new to rails. how to configure
the kannel to push sms to gateway.
is it better first keep the data into database and kannel has to fetch
the records from database and send sms… or push the url to gateway bu
using Net::push and store the data into database. If first is better
option how to configure the kannel or how to push the data from the
database to kannnel fromrails application.
And in my application i have messages to be delivered at scheduled time.
how can we do that . is it kannel job or we have to push it from
applicaotion if to push from appliaction how do it.

please help me its very urgent.


#2

Rajkumar S. pisze:

hi everyone,
My project is to send sms to mobile. iam new to rails. how to configure
the kannel to push sms to gateway.

Generally you need a connection to the SMS gateway. You can connect
directly to operator’s SMSC or to any SMS gateway like clickatell.com. I
recommend using SMPP connection, but most providers allow you to use
SMPP when you send at least dozens of thousands messages monthly.

is it better first keep the data into database and kannel has to fetch
the records from database and send sms… or push the url to gateway bu
using Net::push and store the data into database. If first is better
option how to configure the kannel or how to push the data from the
database to kannnel fromrails application.
And in my application i have messages to be delivered at scheduled time.
how can we do that . is it kannel job or we have to push it from
applicaotion if to push from appliaction how do it.

The best option is to keep messages in your database and write your own
standalone ruby daemon (also could be a script run periodically from
cron), which would check if there are messages waiting to be sent in the
DB. You can schedule messages for later delivery that way. A message can
be delivered to kannel by HTTP GET (it is described in Kannel’s User
Guide) using Ruby’s Net::HTTP.get