My first guess would be that you've configured Kannel to not allow requests from your
<xxx.xxx.x.xxx> host. Or to put it another way, you're only allowing requests from
localhost. Look at your *-allow-ip and *-deny-ip settings in your kannel config file.
I see under smsc you have this:
 
connect-allow-ip = 127.0.0.1
 
Try adding the other host like this (replace the X's with your host ip obviously):
 
connect-allow-ip = "127.0.0.1;xxx.xxx.x.xxx"
 
Another possibility is the query string (the stuff after the question mark) is not
being properly handled by the sendRedirect() method. You'd definitely get a 403 if you
configured it to need a username and password and it didn't get them. I noticed there
is an encodeRedirectURL() method in that class, did you try calling it first then using
what it returns in the sendRedirect()? Probably not a bad idea either way since the
javadoc for this methoid says this: "All URLs sent to the HttpServletResponse.sendRedirect
method should be run through this method."
 
J.R.(Sydd)Souza
 

 -----Original Message-----
From: aliraza raza [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 05, 2006 11:11 AM
To: [email protected]
Subject: SMS through WAP Site

Hello Everyone!
                             I want to send an SMS Message from my WAP site. I am using Http inteface to send a SMS message from my site.  My URL to send sms message is

http://localhost:13013/cgi-bin/sendsms?username=ali&password=raza&to=1212&text=aliraza

When i write this URL in browser, it sends the message. Display of my sms box is as follow:

2006-06-26 17:32:15 [6024] [0] INFO: Connected to bearerbox at localhost port 13001.
2006-06-26 17:32:44 [6024] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <192.168.8.1>
2006-06-26 17:32:44 [6024] [3] INFO: sendsms used by <ali>
2006-06-26 17:32:44 [6024] [3] INFO: sendsms sender:<ali:13013> (192.168.8.1) to:<1212> msg:<aliraza>

But when i call the same URL from a JSP page , it doesnt send message. SMS box receive the http Request but it doesnt receive the message. Display of my sms box is as follow:

2006-06-26 17:35:18 [6024] [0] INFO: Connected to bearerbox at localhost port 13001.
2006-06-26 17:35:37 [6024] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <xxx.xxx.x.xxx>

<xxx.xxx.x.xxx> is the ip address  of the computer from where im calling the page to send SMS message.
i am using response.sendRedirect(URL) method to call this URL in java.

I am using a WinWAP emulator to call the page.
HTTP 403 - Forbidden -operation is understood but refused " error is shown on the WinWAP Emulator.
when i call the page.
Please tell me where i am wrong.
any replies r highly appreciated!!

Regards!
Ali Raza
Student IT
Pakistan

configuration is as follow

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "kannel.log"
#log-level = 0
#box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
#unified-prefix = "+358,00358,0;+,00"
access-log = "access.log"
access-log-clean= true
store-file = "kannel.store"
sms-incoming-queue-limit= -1
#white-list="whitelist.txt"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

# SMSC CONNECTIONS

group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
connect-allow-ip = 127.0.0.1


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
#sendsms-chars = "0123456789 +-"
#log-file = "/tmp/smsbox.log"
#log-level = 0
#access-log = "/tmp/access.log"


kindly tel me where i am wrong. or tel me how to do it


_______________________________________________
users mailing list
[email protected]
http://www.kannel.org/mailman/listinfo/users

Reply via email to