Sorry all

Please disregard the previous mail. I was being an idiot. The text parameter
was not URL encoded. I think lynx will take care of that for you.

Apologies. It has been a long week!

Regards,

---------- Forwarded message ----------
From: brett skinner <tatty.dishcl...@gmail.com>
Date: Fri, Jul 30, 2010 at 4:40 PM
Subject: SendSMS - HTTP 400 response from Java application but works through
Lynx
To: Users <users@kannel.org>


Hi All

Sorry to ask here but I am not sure where I should be looking for answer. I
have message that I am submitting to an SMSC, it is WAP push message SI SMS.
We are not going to handle any WAP, we are just sending it from our system.
Someone else has handled that part. I have created a java application to
submit to kannel via HTTP. If I run my application I get a HTTP 400 response
wrapped in an IOException when I try to open the stream. I looked through
the bearerbox.log and smsbox.log and there is nothing there. The following
is the only thing that I could see.

2010-07-30 16:17:59 [14867] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2010-07-30 16:17:59 [14867] [2] DEBUG: HTTP: Created HTTPClient area
0xddfc90.
2010-07-30 16:17:59 [14867] [3] DEBUG: sql: SELECT count(*) FROM
delivery_receipts;
2010-07-30 16:17:59 [14867] [3] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.
2010-07-30 16:18:03 [14867] [1] DEBUG: HTTP: Destroying HTTPClient area
0xddfc90.
2010-07-30 16:18:03 [14867] [1] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.

I dumped the URL to the console and used lynx and then Kannel accepted and
forwarded the sms and I got a Wap Push SI on my mobile.

This is the URL that is generated and does not work in java application but
does work through lynx

http://localhost:13333/cgi-bin/sendsms?username=xxxx&password=yyyy&to=%2B123123123&from=%2B123123456&smsc=Kannel_TTT&text=%05%06%01%AE%02%05%6A%00%45%C6%0C%03http://www.google.com%00%07%01%03WapPush%00%01%01&udh=%06%05%04%0B%84%23%F0&mclass=1&validity=240&dlr-mask=23&dlr-url=http%3A%2F%2Flocalhost%3A8080%2Fwebapp%2Freceipt%3Fid%3D740944995%26pid%3D11%26rid%3D12%26nid%3D297%26sid%3D%25i%26origin%3D123456789%26destination%3D78945631%26status%3D%25d%26delivery_report%3D%25A

Does anyone have any clue where to start scratching to try figure out the
problem? I haven't submitted anything more because looking through the logs
there is nothing. But shout if you would like me to add something.

Thanks in advance.

Reply via email to