One thing that I still see wrong is the to=.. In your send url.

The value should be urlencoded, so make it:
http://localhost:13005/cgi-bin/sendsms?username=foo
<http://localhost:13005/cgi-bin/sendsms?username=foo&password=bar&to=%2B2547
25068386&text=Hello+world> &password=bar&to=%2B254725068386&text=Hello+world

 

Not sure if this makes it be a "bad request". Also, the username and
password that you use in this url should be listed in your s_box.conf in a
group = sendsms-user.

 

I suggest you have a look at the userguide and try to understand that first,
before posting to the list.

 

== Rene

 

 

From: Gideon Karuga [mailto:[email protected]] 
Sent: Wednesday, 22 August, 2012 14:17
To: Rene Kluwen; 'Alexander Malysh'
Cc: '[email protected] Org'
Subject: Re: Kannel and SMPP

 

Hi, 

Thanks for that, Just tried it. 

I'm getting this in output; 

400
Bad Request

Is there somwhere I'm going wrong I rectify. I have tried the new added port
in send sms url, as well as the credentials foo, bar, and 
the smpp username and password as well in different test. 

They are giving me the above same output.

Please advice.

Best Regards, 


Gideon Karuga,

 

 

 

  _____  

From: Rene Kluwen <[email protected]>
To: 'Gideon Karuga' <[email protected]>; 'Alexander Malysh'
<[email protected]> 
Cc: "'[email protected] Org'" <[email protected]> 
Sent: Wednesday, August 22, 2012 1:54 PM
Subject: RE: Kannel and SMPP

 

That is wrong.

In s_log.conf, you should add:

 

In group = smsbox:

bearerbox-port = 13003

sendsms-port = 13005 (some ununsed value)

 

Then when you try to send sms, you should send the request to port 13005,
like:

 

http://localhost:13005/cgi-bin/sendsms?username=foo
<http://localhost:13005/cgi-bin/sendsms?username=foo&password=bar&to=+254725
068386&text=Hello+world> &password=bar&to=+254725068386&text=Hello+world

 

== Rene

 

From: Gideon Karuga [mailto:[email protected]] 
Sent: Wednesday, 22 August, 2012 13:46
To: Rene Kluwen; 'Alexander Malysh'
Cc: '[email protected] Org'
Subject: Re: Kannel and SMPP

 

Hi, 

Thank you for your response, I am using the command ; 

http://localhost:13003/cgi-bin/sendsms?username=foo
<http://localhost:13003/cgi-bin/sendsms?username=foo&password=bar&to=+254725
068386&text=Hello+world> &password=bar&to=+254725068386&text=Hello+world

In Java, where 13003 is the sms-box port number, and the phone number has
the code, also tried without the code as 0725068386.

I've also attached the java snippet that I am using so as to send the sms
messages.

 

Best Regards, 


Gideon Karuga,

 

 

  _____  

From: Rene Kluwen <[email protected]>
To: 'Gideon Karuga' <[email protected]>; 'Alexander Malysh'
<[email protected]> 
Cc: "'[email protected] Org'" <[email protected]> 
Sent: Wednesday, August 22, 2012 12:37 PM
Subject: RE: Kannel and SMPP

 

1.       It seems that you managed to send some messages, as you do get
delivery reports back from your smsc.

2.       How are you trying to send messages? I see no sign in smsbox.log
that you use the sendsms interface.

 

== Rene

 

From: Gideon Karuga [mailto:[email protected]] 
Sent: Wednesday, 22 August, 2012 08:36
To: Rene Kluwen; 'Alexander Malysh'
Cc: '[email protected] Org'
Subject: Re: Kannel and SMPP

 

 

 

Hi, 

Sorry about that. 

Kindly find attached the log files. We can always change the credentials.

 

Best Regards, 


Gideon Karuga

 

 

 

  _____  

From: Rene Kluwen <[email protected]>
To: 'Gideon Karuga' <[email protected]>; 'Alexander Malysh'
<[email protected]> 
Cc: "'[email protected] Org'" <[email protected]> 
Sent: Tuesday, August 21, 2012 10:14 PM
Subject: RE: Kannel and SMPP

 

Nex time, you may want to mask out the sensitive data, like credentials.

What about your log files? Could you post them as well?

 

== Rene

 

From: Gideon Karuga [mailto:[email protected]] 
Sent: Tuesday, 21 August, 2012 18:19
To: Rene Kluwen; 'Alexander Malysh'
Cc: '[email protected] Org'
Subject: Re: Kannel and SMPP

 


Dear All, 

Thank you for your response. 

I have attached the configuration files I'm using to setup kannel. 

I've also attached the smpp details so that you can assist in testing as
well.

All the services appear to be up and running, but I cannot seem to send sms
messages, or get incoming sms messages into my mysql db which I have
configured in kannel.conf.  

Your response is greatly appreciated. 

 

 

Thanks and Best Regards, 


Gideon Karuga

 

 

 

  _____  

 

 

  _____  

From: Rene Kluwen <[email protected]>
To: 'Alexander Malysh' <[email protected]>; 'Gideon Karuga'
<[email protected]> 
Cc: "'[email protected] Org'" <[email protected]> 
Sent: Tuesday, August 21, 2012 5:41 PM
Subject: RE: Kannel and SMPP

 

If you post your configuration and log files, if any, we will be more likely
to assist you.

 

== Rene

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Alexander Malysh
Sent: Tuesday, 21 August, 2012 17:18
To: Gideon Karuga
Cc: [email protected] Org
Subject: Re: Kannel and SMPP

 

Hi,

 

please use [email protected] mailing list.

 

Thanks,

Alexander Malysh

 

Am 21.08.2012 um 12:00 schrieb Gideon Karuga <[email protected]>:

 

 

Hi Amalysh, 

Sorry to trouble you, was wondering if you could please assist me in Kannel
setup for smpp connection. 

I have done everything according to the book, I do not know where I might be
going wrong. 

I am setting up kannel with smpp, your assistance is greatly appreciated. 

 

Thanks and Best Regards, 


Gideon Karuga,

 

 

 

 

 

 

 

Reply via email to