Hello,

         I am new to kannel and I have setup the gateway as prescribed in
the user guide. I have built and tested it on windows (using cygwin) and now
on linux. However on Linux I keep getting "Authorization Failure" messages
being returned whenever I try to send an sms using the Kannel administration
panel. Although the same config file works fine on the windows version.

 

I would appreciate any help anyone can provide on this,

 

Here is a sample of the URL request:
http://127.0.0.1:15130/cgi-bin/sendsms?user=kannel&pass=rL4y&from=&to=805771
4685&text=hello+world&charset=&udh=&mclass=0&coding=0&mwi=0&validity=&deferr
ed=

 

>From the following CONFIGURTION FILE

 

group = core

admin-port = 15000

smsbox-port = 15001

admin-password = bar

#status-password = foo

#admin-deny-ip = ""

#admin-allow-ip = ""

log-file = "/tmp/kannel.log"

#log-level = 0

box-deny-ip = "*.*.*.*"

box-allow-ip = "127.0.0.1"

unified-prefix = "00234,0"

access-log = "/tmp/Kannelaccess.log"

store-file = "/tmp/kannelsms.store"

 

# SMSC CONNECTIONS

 

group = smsc

smsc = http

system-type = kannel

port = 15130

connect-allow-ip = "127.0.0.1"

smsc-username = kannel

smsc-password = rL4y

#send-url = "http://localhost:15015";

#send-url = "http://localhost/isess/ecredit/processmessage.php?pn=%p&msg=%a";

send-url = "http://localhost:7001/ecredit/";

 

 

# SMSBOX SETUP

 

group = smsbox

bearerbox-host = localhost

sendsms-port = 15015

global-sender = 3000

#sendsms-chars = "0123456789 +-"

log-file = "/tmp/smsbox.log"

#log-level = 1

access-log = "/tmp/smsaccess.log"

 

 

# SEND-SMS USERS

 

group = sendsms-user

username = tester

password = foobar

concatenation= true

max-messages = 10

#user-deny-ip = ""

#user-allow-ip = ""

 

 

# SERVICES

 

group = sms-service

keyword = 

#keyword-regex = .*

catch-all = yes

max-messages = 0

#get-url = "http://localhost/isess/ecredit/processmessage.php?pn=%p&msg=%a";

get-url = "http://localhost:7001/ecredit/pn=%p&msg=%a";

 

group = sms-service

keyword = nop

text = "You asked nothing and I did it!"

 

# there should be default always

 

group = sms-service

keyword = default

text = "No service specified"

 

 

For which I get the following trace from the 

 

BEAREBOX

 

2008-09-30 17:28:47 [5760] [0] INFO: Added logfile `/tmp/kannel.log' with
level `0'.

2008-09-30 17:28:47 [5760] [0] INFO: Started access logfile
`/tmp/kannelaccess.log'.

2008-09-30 17:28:47 [5760] [0] INFO: HTTP: Opening server at port 15000.

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 1
(gwlib/fdset.c:poller)

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)

2008-09-30 17:28:47 [5760] [0] DEBUG: starting smsbox connection module

2008-09-30 17:28:47 [5760] [0] INFO: BOXC: 'smsbox-max-pending' not set,
using default (100).

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 4
(gw/bb_boxc.c:sms_to_smsboxes)

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 5
(gw/bb_boxc.c:smsboxc_run)

2008-09-30 17:28:47 [5760] [0] INFO: Set SMS resend frequency to 60 seconds.

2008-09-30 17:28:47 [5760] [0] INFO: SMS resend retry set to unlimited.

2008-09-30 17:28:47 [5760] [0] INFO: DLR rerouting for smsc id <ecredit>
disabled.

2008-09-30 17:28:47 [5760] [0] INFO: HTTP: Opening server at port 15130.

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 6
(gw/smsc/smsc_http.c:httpsmsc_receiver)

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 7
(gw/smsc/smsc_http.c:httpsmsc_send_cb)

2008-09-30 17:28:47 [5760] [0] INFO: HTTP[ecredit]: Initiated and ready

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 8
(gw/bb_smscconn.c:sms_router)

2008-09-30 17:28:47 [5760] [0] INFO:
----------------------------------------

2008-09-30 17:28:47 [5760] [0] INFO: Kannel bearerbox II version 1.4.1
starting

2008-09-30 17:28:47 [5760] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps
to pid 5760.

2008-09-30 17:28:47 [5760] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread)
maps to pid 5760.

2008-09-30 17:28:47 [5760] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run)
maps to pid 5760.

2008-09-30 17:28:47 [5760] [4] DEBUG: Thread 4
(gw/bb_boxc.c:sms_to_smsboxes) maps to pid 5760.

2008-09-30 17:28:47 [5760] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run)
maps to pid 5760.

2008-09-30 17:28:47 [5760] [0] ERROR: fopen failed: couldn't open
`/tmp/kannelsms.store'

2008-09-30 17:28:47 [5760] [0] ERROR: System error 2: No such file or
directory

2008-09-30 17:28:47 [5760] [0] ERROR: fopen failed: couldn't open
`/tmp/kannelsms.store.new'

2008-09-30 17:28:47 [5760] [0] ERROR: System error 2: No such file or
directory

2008-09-30 17:28:47 [5760] [0] ERROR: fopen failed: couldn't open
`/tmp/kannelsms.store.bak'

2008-09-30 17:28:47 [5760] [0] ERROR: System error 2: No such file or
directory

2008-09-30 17:28:47 [5760] [0] INFO: Cannot open any store file, starting a
new one

2008-09-30 17:28:47 [5760] [0] DEBUG: Started thread 9
(gw/bb_store.c:store_dumper)

2008-09-30 17:28:47 [5760] [0] INFO: MAIN: Start-up done, entering mainloop

2008-09-30 17:28:47 [5760] [6] DEBUG: Thread 6
(gw/smsc/smsc_http.c:httpsmsc_receiver) maps to pid 5760.

2008-09-30 17:28:47 [5760] [7] DEBUG: Thread 7
(gw/smsc/smsc_http.c:httpsmsc_send_cb) maps to pid 5760.

2008-09-30 17:28:47 [5760] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router)
maps to pid 5760.

2008-09-30 17:28:47 [5760] [8] DEBUG: sms_router: time to sleep 30.00 secs.

2008-09-30 17:28:47 [5760] [8] DEBUG: sms_router: gwlist_len = 0

2008-09-30 17:28:47 [5760] [9] DEBUG: Thread 9 (gw/bb_store.c:store_dumper)
maps to pid 5760.

2008-09-30 17:28:47 [5760] [9] DEBUG: Dumping 0 messages to store

2008-09-30 17:28:53 [5760] [5] INFO: Client connected from <127.0.0.1> 

2008-09-30 17:28:53 [5760] [5] DEBUG: Started thread 10
(gw/bb_boxc.c:function)

2008-09-30 17:28:53 [5760] [10] DEBUG: Thread 10 (gw/bb_boxc.c:function)
maps to pid 5760.

2008-09-30 17:28:53 [5760] [10] DEBUG: Started thread 11
(gw/bb_boxc.c:boxc_sender)

2008-09-30 17:28:53 [5760] [11] DEBUG: Thread 11 (gw/bb_boxc.c:boxc_sender)
maps to pid 5760.

2008-09-30 17:29:11 [5760] [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.

2008-09-30 17:29:11 [5760] [2] DEBUG: HTTP: Created HTTPClient area
0x95b2180.

2008-09-30 17:29:11 [5760] [6] DEBUG: HTTP[ecredit]: Got request
`/cgi-bin/sendsms'

2008-09-30 17:29:11 [5760] [6] DEBUG: HTTP[ecredit]: Received an HTTP
request

2008-09-30 17:29:11 [5760] [6] ERROR: HTTP[ecredit]: Authorization failure

2008-09-30 17:29:11 [5760] [6] DEBUG: HTTP[ecredit]: Sending reply

2008-09-30 17:29:11 [5760] [6] DEBUG: HTTP: Resetting HTTPClient for
`127.0.0.1'.

2008-09-30 17:29:11 [5760] [6] DEBUG: HTTP[ecredit]: Destroying client
information

 

Thanks

 

Regards,

 

Femi Ashiru

Reply via email to