Hi, Thanks Nikos, following is the relevant output from the smsbox.log file:
2009-06-14 19:48:53 [10372] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2009-06-14 19:48:53 [10372] [2] DEBUG: HTTP: Created HTTPClient area 0x814add0. 2009-06-14 19:48:53 [10372] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2009-06-14 19:48:53 [10372] [3] DEBUG: Status: 403 Answer: <Authorization failed for sendsms> 2009-06-14 19:48:53 [10372] [3] DEBUG: HTTP: Destroying HTTPClient area 0x814add0. 2009-06-14 19:48:53 [10372] [3] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. I also added the user-allowed-ip and user-deny-ip in the config files. My config looks like this now: group = smsbox bearerbox-host = localhost sendsms-port = 10000 log-file = "/var/log/kannel/smsbox.log group = sendsms-user username = brendan password = 1234 user-allow-ip = "127.0.0.1;localhost" user-deny-ip = "*.*.*.*" Best regards, Brendan Hi, If that doesn't work, post smsbox application logs with problem, at maximum verbosity: smsbox -v 0 <conffile> BR, Nikos ----- Original Message ----- From: "Jovan Kostovski" <[email protected]> To: "Brendan White" <[email protected]> Cc: <[email protected]> Sent: Sunday, June 14, 2009 7:15 PM Subject: Re: problem with authorization On Sun, Jun 14, 2009 at 6:04 PM, Brendan White<[email protected]> wrote: > group = sendsms-user > username = brendan > password = 1234 > > When I try send an SMS from the http interface (lynx -dump > localhost:10000/cgi-bin/sendsms?username=brendan&password=1234&to=2783647731 9&text=hello) > > I get: > /etc/kannel$Β Β Β Authorization failed for sendsms > I have triple checked the credentials and IP address allows, but to no > avail.Β What other reasons are there for the 403 (authorization failed)? Check the username and the password for the sendsms-user, depending the editor that you used to set the configuration, there might be characters that are not printable. BR, Jovan
