You need to compile Kannel with mysql support. Something like this:
./configure \
--enable-start-stop-daemon \
--enable-pcre \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--with-mysql --with-mysql-dir=/usr/lib/mysql/
On Tue, May 31, 2011 at 10:01 PM, mathiyalakan mathi
<[email protected]> wrote:
>
> i am geting this error when i am using database
> # ./bearerbox.exe smskannel.conf
> 2011-06-01 10:31:41 [840] [0] INFO: Debug_lvl = -1, log_file = <none>,
> log_lvl =
> 0
> 2011-06-01 10:31:41 [840] [0] PANIC: DLR: storage type 'mysql' is not
> supported!
> On Wed, Jun 1, 2011 at 10:16 AM, Garth Patil <[email protected]> wrote:
>>
>> I have a java library you can use:
>> https://github.com/garthpatil/kannel-java
>>
>> The sendsms functionality is here:
>> https://github.com/garthpatil/kannel-java/tree/master/sms
>>
>> You can use it like this:
>>
>> // Make an SMS
>> Sms sms = new Sms();
>> sms.setUsername("username");
>> sms.setPassword("password");
>> sms.setTo("4155551212");
>> sms.setFrom("54321");
>> sms.setText("Hello world!");
>>
>> // Using the HTTP GET interface
>> SmsSender s = new HttpSmsSender(new
>> URL("http://localhost:13013/cgi-bin/sendsms"));
>> SendStatus status = s.send(sms);
>> System.out.println(status.toString());
>>
>>
>> On Tue, May 31, 2011 at 9:34 PM, mathiyalakan mathi
>> <[email protected]> wrote:
>> > hi this is my dlr-url how to call the sendsms function in java? how to
>> > pass
>> > the parameter to this.
>> > # SEND-SMS USERS
>> > group = sendsms-user
>> > username = ******
>> > password = ******
>> > dlr-url =
>> >
>> > "http://192.168.172.212:8080/AmritaSMSHiber/SendMobileQuiz?source=%p&destination=%P&status=%d&service=%A&smsc=%i&ts=%t
>> > concatenation = true
>> > max-messages = 10
>> > --
>> > Regards
>> > P.Mathiyalakan
>> > Amrita School of Engineering,
>> > Amrita Vishwa Vidyapeetham,
>> > Ettimadai,Coimbatore - 641 105.
>> > [email protected]
>> > mathiyalakan.webs.com
>> > 09626969304(TN)
>> > 08129231992(kerala)
>> >
>> >
>
>
>
> --
> Regards
> P.Mathiyalakan
> Amrita School of Engineering,
> Amrita Vishwa Vidyapeetham,
> Ettimadai,Coimbatore - 641 105.
> [email protected]
> mathiyalakan.webs.com
> 09626969304(TN)
> 08129231992(kerala)
>
>