Hi again. Here is my kannel.conf
group = core admin-port = 13000 smsbox-port = 13001 #wapbox-port = 13003 admin-password = sms #status-password = sms admin-deny-ip = "*.*.*.*" admin-allow-ip = "192.168.*.*;127.0.0.1; localhost" log-file = "/var/log/kannel/bearerbox.log" box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" access-log = "/var/log/kannel/kannel-access.log" #dlr-storage = internal dlr-storage = mysql store-file = /tmp/kannel-store.file group = sendsms-user username = sms password = sms user-allow-ip = "*.*.*.*" default-smsc = smsc-s default-sender = max-messages = 4 concatenation = true group = sms-service keyword = default max-messages = 0 get-url = http://127.0.0.1/incomingsms.php?op=service&mobnum=%p&acode=% P×tamp=%t&message=%a&smsc=%i&drv=%d&service=%n&msgcode=%c&charset=% C&udh=%u group = smsbox bearerbox-host = localhost sendsms-port = 14000 access-log = "/var/log/kannel/kannel-smsbox-access.log" group = smsc smsc = at smsc-id = smsc-s modemtype = nokia12 device = /dev/ttyUSB0 speed = 115200 smsc-username = "sms" smsc-password = "sms" sim-buffering = true #concatenation = true keepalive = 10 include= "/etc/modems.conf" include="/etc/kannel/dlr-mysql.conf" // end of kannel.conf Here is modems.conf # If modemtype=auto, try everyone and defaults to this one group = modems id = generic name = "Generic Modem" group = modems id = nokia12 name = "Nokia 12" detect-string = "Nokia" need-sleep = true keepalive-cmd = "AT+CBC;+CSQ" enable-mms = false init-string = "ATE0+CNMI=2,0,0,1,0" message-storage = "SM" And here is the output when I do a curl: curl -v http://localhost:14000/cgi-bin/sendsms?username=sms&password=sms&text=bal&to=222 * About to connect() to localhost port 14000 (#0) * Trying ::1... Unknown error 111 * [1] 3377 Trying 127.0.0.1... connected * Connected to localhost (127.0.0.1) port 14000 (#0) > GET /cgi-bin/sendsms?username=sms HTTP/1.1 > User-Agent: curl/7.18.2 (i486-pc-linux-gnu) libcurl/7.18.2 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.10 > Host: localhost:14000 > Accept: */* > < HTTP/1.1 403 Forbidden < Server: Kannel/1.4.3 < Date: Sat, 06 Mar 2010 01:10:57 GMT < Content-Length: 32 < Content-type: text/html < Pragma: no-cache < Cache-Control: no-cache < * Connection #0 to host localhost left intact * Closing connection #0 Authorization failed for sendsms[2] 3378 [3] 3379 [1] Done curl -v http://localhost:14000/cgi-bin/sendsms?username=sms [2] Done password=sms [3]+ Done text=bal and Last the log: 2010-03-05 10:50:34 [8222] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 8222. 2010-03-05 10:50:34 [8222] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2010-03-05 10:50:42 [8222] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2010-03-05 10:50:42 [8222] [2] DEBUG: HTTP: Created HTTPClient area 0x9422738. 2010-03-05 10:50:42 [8222] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2010-03-05 10:50:42 [8222] [3] DEBUG: Status: 403 Answer: <Authorization failed for sendsms> 2010-03-05 10:50:42 [8222] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2010-03-05 10:50:42 [8222] [1] DEBUG: HTTP: Destroying HTTPClient area 0x9422738. 2010-03-05 10:50:42 [8222] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. On Fri, 2010-03-05 at 10:23 +0200, Nikos Balkanas wrote: > Hi, > > Please post relevant smsbox logs at maximum detail and your whole > configuration file. > > BR, > Nikos > ----- Original Message ----- > From: "Danny Francisco" <[email protected]> > To: <[email protected]> > Sent: Friday, March 05, 2010 6:57 AM > Subject: Authotization Failed - sendsms > > > > Hi, > > > > I have been using kannel for a while. over the years I just copy my old > > config to install a new one. today I just experienced a weird error. > > > > I can sendsms from my browser in another computer but not in localhost > > or the same computer. > > > > here is a part of my config: > > > > group = sendsms-user > > username = smsuser > > password = password > > user-allow-ip = "*.*.*.*" > > default-smsc = smsc-s > > default-sender = 09157612622 > > max-messages = 3 > > concatenation = true > > > > > > Best Regards, > > > > Danny > > > > >
