thanx .. it helped,now kannel is able to send mesg but i am unable to recieve the response of kannel through my java program i.e. whether mesg is sent or queued or whatever..please guide me on this issue also.
regards, prashant 2010/10/23 <[email protected]> > Send users mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://www.kannel.org/mailman/listinfo/users > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of users digest..." > > Today's Topics: > > 1. Re: WARNING: smsbox_list empty! | Multiple SMSBox & SQLBOX > (Nikos Balkanas) > 2. Re: Some headers are skipped (Nikos Balkanas) > 3. regarding error 400 invalid content type (prashant singh) > 4. Re: regarding error 400 invalid content type (Benaiad) > > > ---------- Forwarded message ---------- > From: "Nikos Balkanas" <[email protected]> > To: "Anshu Sah" <[email protected]>, "kanedauy" < > [email protected]> > Date: Fri, 22 Oct 2010 13:43:49 +0300 > Subject: Re: WARNING: smsbox_list empty! | Multiple SMSBox & SQLBOX > Please post debug bb logs relevant to the problem. > > BR, > Nikos > ----- Original Message ----- From: Anshu Sah > To: [email protected] ; Nikos Balkanas > Cc: users > Sent: Friday, October 22, 2010 2:34 AM > Subject: WARNING: smsbox_list empty! | Multiple SMSBox & SQLBOX > > > Hello Sir, > > I was reading your Problem with kannel for DLRs. { > http://www.kannel.org/pipermail/users/2010-January/009784.html } > > Same thing is happening with me I can see "Ack" as reply from SMSC , But > can't get DLR message, biggest Issue is that those messages are in Kannel > Strore. > > While starting SMS BOX "its showing unable to translate messge <>" > > My SMSC Confirguration is pasted below. > > group=smsc > smsc=smpp > smsc-id=SMSC1 > allowed-smsc-id = SMSC1 > #preferred-smsc-id = SMSC1 > #denied-smsc-id = SMSC3;SMSC2 > host = xxxxxxxxxxx > port = xxxx > receive-port = xxxx > log-file = "/projects/kannel/logs/live/xxxxxx.log" > log-level = 1 > smsc-username = "xxxxxx" > smsc-password = "xxxxxx" > transceiver-mode=1 > system-type = "null" > # SYSTEM TYPE WAS DIRECTED TO PUT NULL FROM SMSC > > #SMSBOX > group = smsbox > smsbox-id = BOX-SMSC1 > bearerbox-host = localhost > sendsms-port = 11217 > log-file = "/projects/kannel/logs/live/BOX-SMSC1.log" > log-level = 1 > > #SMS BOX ROUTE SMSC1 > group = smsbox-route > smsbox-id = BOX-SMSC1 > smsc-id = SMSC1 > > > > > Regards > Anshu Sah > > > > > ---------- Forwarded message ---------- > From: "Nikos Balkanas" <[email protected]> > To: "Nelis Filip" <[email protected]> > Date: Sat, 23 Oct 2010 01:17:07 +0300 > Subject: Re: Some headers are skipped > Hi, > > 1) Don't post such questions to devel. Use users list instead. > 2) None of these responses are kannel's. > 3) Page you are downloading is obviously encoded as iso-8859-1. Your mobile > doesn't support it. Next kannel tries to convert it to UTF-8, but mobile > doesn't support them either. It 's all part of the Accept headers that your > mobile sends to kannel. Change mobile. > > BR, > Nikos > ----- Original Message ----- From: Nelis Filip > To: [email protected] > Sent: Friday, October 22, 2010 4:49 PM > Subject: Some headers are skipped > > > Hi dears, > > We’re now migrating from Kannel 1.2.1(which worked well) to Kannel 1.4.3 > and experiencing some problems with headers that are skipped for some > reason. > > Response returned by Tomcat: > > HTTP/1.1 200 OK > Server: Apache-Coyote/1.1 > Set-Cookie: JSESSIONID=070FF4C7A114278AD57DF17469F99944; Path=/Appl > Cache-Control: max-age=86400 > Content-Type: text/vnd.wap.wml > Date: Fri, 22 Oct 2010 12:10:06 GMT > Connection: close > --[ HEADER END ]------ > <?xml version="1.0" encoding="ISO-8859-1"?> > ... > > Response returned by Kannel: > > Server: Apache-Coyote/1.1 > Unassigned: 2 > Date: Fri, 22 Oct 2010 12:10:08 GMT > Unassigned: 19 > --[ HEADER END ]------ > <?xml version="1.0" encoding="ISO-8859-1"?> > ... > > > Error message in the wapbox.log > > 2010-10-22 14:10:08 [7568] [7] WARNING: WSP: Device doesn't support charset > <ISO-8859-1> neither UTF-8 > 2010-10-22 14:10:08 [7568] [2] ERROR: WSP: Do not know how to encode header > type 65 > 2010-10-22 14:10:08 [7568] [2] WARNING: Skipping header: Set-Cookie: > JSESSIONID=D2AFBF3EB8A885DD4C9882221104B4DF; Path=/Appl > > > Has someone any idea why I got this strange behavior and how I can fix it? > > Thx in advance, > > Filip Nelis > > > > > ---------- Forwarded message ---------- > From: prashant singh <[email protected]> > To: [email protected] > Date: Sat, 23 Oct 2010 12:46:59 +0530 > Subject: regarding error 400 invalid content type > hi > i am trying to send http request to kannel through a java program,it is > recieved by kannel as shown in log trace with an error status 400 - invalid > content type, in the java program i am encoding the cgi variables i.e > user,password,to and text to be passed to kannel in UTF-8 format but it is > not working please guide. > > > *java program -* > String data = URLEncoder.encode("user","UTF-8") + "=" + > URLEncoder.encode("test","UTF-8"); > data += "&" + URLEncoder.encode("pass", "UTF-8") + "=" + > URLEncoder.encode("test", "UTF-8"); > data += "&" + URLEncoder.encode("to", "UTF-8") + "=" + > URLEncoder.encode("99999", "UTF-8"); > data += "&" + URLEncoder.encode("text", "UTF-8") + "=" + > URLEncoder.encode("test", "UTF-8"); > //Send data > URL url = new URL("http://localhost:13013/cgi-bin/sendsms?"); > URLConnection conn = url.openConnection(); > conn.setDoOutput(true); > OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); > wr.write(data); > > > *kannel bearerbox log trace > > *2010-10-23 12:46:52 [6490] [4] DEBUG: HTTP: Creating HTTPClient for > `127.0.0.1'. > 2010-10-23 12:46:52 [6490] [4] DEBUG: HTTP: Created HTTPClient area > 0x9cf1a28. > *2010-10-23 12:46:52 [6490] [5] INFO: smsbox: Got HTTP request > </cgi-bin/sendsms> from <127.0.0.1> > 2010-10-23 12:46:52 [6490] [5] DEBUG: Status: 400 Answer: <Invalid > content-type>* > 2010-10-23 12:46:52 [6490] [5] DEBUG: HTTP: Resetting HTTPClient for > `127.0.0.1'. > 2010-10-23 12:46:52 [6490] [3] DEBUG: HTTP: Destroying HTTPClient area > 0x9cf1a28. > 2010-10-23 12:46:52 [6490] [3] DEBUG: HTTP: Destroying HTTPClient for > `127.0.0.1'. > > > ---------- Forwarded message ---------- > From: Benaiad <[email protected]> > To: prashant singh <[email protected]> > Date: Sat, 23 Oct 2010 10:47:41 +0200 > Subject: Re: regarding error 400 invalid content type > Hi, > > Try this: > -------------- > String result = ""; > String data = "user" + "=" + URLEncoder.encode("test","UTF8") > + "&" + "pass" + "=" + URLEncoder.encode("test", "UTF8") > + "&" + "to" + "=" + URLEncoder.encode("999", "UTF8") > + "&" + "text" + "=" + URLEncoder.encode("test ", "UTF8"); > java.net.URL url = new java.net.URL(" > http://localhost:13013/cgi-bin/sendsms?"+data); > java.io.InputStream in = url.openStream(); > java.io.BufferedInputStream bufIn = new java.io.BufferedInputStream(in); > for (;;) { > int car = bufIn.read(); // Check for EOF > if (car == -1) { > break; > } else { > result = result + (char) car; > } > } > bufIn.close(); > in.close(); > --------------- > Hope this help. > > Regards > -- > Abdulmnem Benaiad > Almontaha CTO > Tripoli-Libya > www.almontaha.ly > about.me <http://about.me/benaiad/bio> > > > > On Sat, Oct 23, 2010 at 9:16 AM, prashant singh <[email protected] > > wrote: > >> URL url = new URL("http://localhost:13013/cgi-bin/sendsms?"); >> > > > _______________________________________________ > users mailing list > [email protected] > http://www.kannel.org/mailman/listinfo/users > >
