Re: "Authorization failed for sendsms" error when i try from browser

2012-01-11 Thread Zaharia Constantin
  

this is the config file... 

> # CORE
> group = core
> admin-port =
13000
> admin-password = foobar # this is the admin password
>
status-password = foobar #this is the admin password
> #admin-deny-ip =
"*.*.*.*"
> admin-allow-ip = "127.0.0.1;192.168.1.*"
> smsbox-port =
13001
> #box-deny-ip = "*.*.*.*"
> box-allow-ip = "*.*.*.*"
>
#box-allow-ip = "127.0.0.1;192.168.1.*"
> log-file =
"/var/log/kannel/kannel.log"
> log-level = 0
> access-log =
"/var/log/kannel/access.log"
> store-location =
"/var/log/kannel/kannel.store"
> 
>
#-
> # SMSC CONNECTIONS FOR
COSMOTE
> group = smsc
> smsc = at
> smsc-id = cosmote_SMSC
> modemtype
= HUAWEI_E220
> device = /dev/ttyUSB1
> speed = 4608000
> #pin =
999638
> validityperiod = 167
> keepalive = 10
> my-number =
+40785xx
> sms-center = +40766000510
> sim-buffering = true
>
preferred-prefix = "0766;0785"
> denied-prefix =
"0721;0722;0723;0729;0735;0736"
> allowed-smsc-id = "cosmote_SMSC"
>
denied-smsc-id = "vodafone_SMSC"
> 
>
#-
> # SMSC CONNECTIONS FOR
Vodafone
> group = smsc
> smsc = at
> smsc-id = vodafone_SMSC
>
modemtype = HUAWEI_E220
> device = /dev/ttyUSB3
> speed = 4608000
> #pin
= 999638
> validityperiod = 167
> keepalive = 10
> my-number =
+40721xxx
> sms-center = +40722006000
> sim-buffering = true
>
preferred-prefix = "0721;0722;0723;0729;0735;0736"
> denied-prefix =
"0766;0785"
> allowed-smsc-id = "vodafone_SMSC"
> denied-smsc-id =
"cosmote_SMSC"
> 
> include="/etc/kannel/modem.conf"
> 
> # SMSBOX
SETUP
> group = smsbox
> smsbox-id = acronSMS
> bearerbox-host =
localhost
> sendsms-port = 9000
> sendsms-chars = "0123456789+"
>
global-sender = "+40744946000"
> log-file =
"/var/log/kannel/smsbox.log"
> log-level = 0
> access-log =
"/var/log/kannel/access.log"
> 
> group = sms-service
> keyword = nop
>
text = "You asked nothing and I did it!"
> 
> # SMS SERVICES
> # there
should be default always
> group = sms-service
> accepted-smsc =
"cosmote_SMSC;vodafone_SMSC"
> accept-x-kannel-headers = true
> get-url
=
"http://192.168.1.104:8080/events/events.kml?sender=%p&mesaj=%a&timp%t";
>
#get-url =
"http://localhost/acronsms/acronsms_recived.php?mesaj=%a&expeditor=%p&timp=%t";
>
keyword = .*
> catch-all = true
> max-messages = 0
> omit-empty=true
>

> # SEND-SMS USERS
> group = sendsms-user
> username = foobar #this is
the user that i use to send message
> password = foobar #this is the
pass that i use to send message
> default-smsc = cosmote_SMSC
>
concatenation = true
> max-messages = 10
> #dlr-url =
"http://192.168.1.118/acronsms/acronsms.php?dlr=%d
> #user-deny-ip =
"*.*.*.*"
> #user-allow-ip = "127.0.0.1,192.168.1.*"

On Wed, 11 Jan
2012 17:01:04 +0300, Nyika Alex wrote: 

> Kindly share your config
file
> also note that there are credentials for administration and
others for send sms. I hope u are not using the admin credentials. 
> 
>
On 11 January 2012 16:17, Zaharia Constantin wrote:
> 
>> hi, i get this
error message when i try to send a message from browser. 
>> 
>>
"Authorization failed for sendsms" the user name and the password are
right, the ip for that request is ok, but still i get this error, any
ideea way? 
>> 
>> this is the kannel info: 
>> 
>> "Kannel bearerbox
version `1.4.3'. Build `May 19 2011 22:12:12', compiler `4.6.1'. System
Linux, release 3.0.0-14-generic-pae, version #23-Ubuntu SMP Mon Nov 21
22:07:10 UTC 2011, machine i686. Hostname Server, IP 127.0.1.1. Libxml
version 2.7.8. Using OpenSSL 1.0.0d 8 Feb 2011. Compiled with MySQL
5.1.54, using MySQL 5.1.58. Using SQLite 3.7.4. Using native malloc."

>> 
>> anyone have any idea?
> 
> -- 
> Best regards,
> Alex Nyika
>
skype: nyika.alex

-- 

  

Links:
--
[1]
mailto:soulra...@muscel.ro


Re: "Authorization failed for sendsms" error when i try from browser

2012-01-11 Thread Nyika Alex
Kindly share your config file
also note that there are credentials for administration and others for send
sms. I hope u are not using the admin credentials.

On 11 January 2012 16:17, Zaharia Constantin  wrote:

> **
>
> hi, i get this error message when i try to send a message from browser.
>
> "Authorization failed for sendsms" the user name and the password are
> right, the ip for that request is ok, but still i get this error, any ideea
> way?
>
> this is the kannel info:
>
> "Kannel bearerbox version `1.4.3'. Build `May 19 2011 22:12:12', compiler
> `4.6.1'. System Linux, release 3.0.0-14-generic-pae, version #23-Ubuntu SMP
> Mon Nov 21 22:07:10 UTC 2011, machine i686. Hostname Server, IP 127.0.1.1.
> Libxml version 2.7.8. Using OpenSSL 1.0.0d 8 Feb 2011. Compiled with MySQL
> 5.1.54, using MySQL 5.1.58. Using SQLite 3.7.4. Using native malloc."
>
> anyone have any idea?
>
>
>
>


-- 
Best regards,
Alex Nyika
skype: nyika.alex


Re: Authorization failed for sendsms

2008-06-24 Thread Otandeka Simon Peter



Please send your conf file.

We can look at it and advise accordingly.

Also send your kannel log. It can help us solve your problem.

On Jun 24, 2008, at 12:39 PM, Jovan Kostovski wrote:

On Mon, Jun 23, 2008 at 5:05 PM, Jovan Kostovski  
<[EMAIL PROTECTED]> wrote:

Hi,

I've experienced weird problem:
After adding another kannel gw user: (group = sendsms-user block) I  
got
the "Authorization failed for sendsms" error for one of the  
existing/old users.
I created the user by coping and editing the configuration from one  
of

the existing users:

group = sendsms-user
username = srv
password = wwr
user-allow-ip = "*.*.*.*"
max-messages = 4
concatenation = 1
split-chars = "#!"


I didn't change anything else in the existing configuration.
After commenting the new added user the error disapired.

I configured 4 users excluding the one I want to add.
Is there some restriction on the number of users which can be  
configured?


Any ideas how to solve this would be apriciated.

BR, Jovan



I solved the issue. It was bad configured username and password,
they both had space at its end.

BR, Jovan



It takes a lot more faith to live this life without faith than with it.

- Peter De Vries














Re: Authorization failed for sendsms

2008-06-24 Thread Jovan Kostovski
On Mon, Jun 23, 2008 at 5:05 PM, Jovan Kostovski <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've experienced weird problem:
> After adding another kannel gw user: (group = sendsms-user block) I got
> the "Authorization failed for sendsms" error for one of the existing/old 
> users.
> I created the user by coping and editing the configuration from one of
> the existing users:
>
> group = sendsms-user
> username = srv
> password = wwr
> user-allow-ip = "*.*.*.*"
> max-messages = 4
> concatenation = 1
> split-chars = "#!"
>
>
> I didn't change anything else in the existing configuration.
> After commenting the new added user the error disapired.
>
> I configured 4 users excluding the one I want to add.
> Is there some restriction on the number of users which can be configured?
>
> Any ideas how to solve this would be apriciated.
>
> BR, Jovan
>

I solved the issue. It was bad configured username and password,
they both had space at its end.

BR, Jovan



Re: Authorization failed for sendsms - reg.

2007-04-24 Thread Rodrigo Cremaschi

Hi,

   The problem is that Kannel is not letting you send the message, because
you are not authenticated.
   Please check your "sendsms-user" group, and verify the "username" and
"password" variables you are using. They should match those in the URL.

Best Regards,
Rodrigo.

On 4/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:


Hi,
fine  and thank you for your guide line but the same code is not
functioning for me.

  Insteadof xxx in system-id I use the user id what I got from
clickatell
  and corresponding username and my pwd I used.
  still I got an error as

"Authorization failed for sendsms"

how did you try to connect clickatell either using any browser with the
following url

http://localhost:13013/cgi-bin/sendsms?username=foo&password=bar&to=phone
number&text=helloworld

is it correct?


# SMSC HTTP CLICKATEL

group = smsc
smsc = http
smsc-id = click
system-id = X  <--- API-ID
system-type = clickatell
port = 13015
smsc-username = YYY <---  Clickatell username
smsc-password =  <- Clickatell password
send-url = http://api.clickatell.com/http< Clickatell Http API
base Url
connect-allow-ip = 196.30.96.134


ARP with reg.


-
This email was sent using TCEMail Service.
Thiagarajar College of Engineering
Madurai - 625015 (India)





Re: RE Authorization failed for sendsms

2006-03-07 Thread Leonardo Torrella
No, your includes are fine.
So in order to use the sendsms interface you must use one of the
sendsms-user defined on the smsbox.conf file.

regards
Leonardo


2006/3/7, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Hi Rene,
>
> Thanks. My kannel.conf uses 'Includes':
>
> 
> include = /etc/kannel/modems.conf
> include = /etc/kannel/smsbox.conf
> include = /etc/kannel/wapbox.conf
>
> My 'group = sendsms-user' is actually in /etc/kannel/smsbox.conf, are
> you saying that it *must* be in kannel.conf?
>
> regards, Nooey.
>
> On Tue, 7 Mar 2006 00:25:49 +0100, "Rene Kluwen" <[EMAIL PROTECTED]>
> said:
> > User kannel & corresponding password have to exist in group =
> > sendsms-user
> > in kannel.conf.
> >
> > Rene Kluwen
> > Chimit
> --
>
>   [EMAIL PROTECTED]
>
> --
> http://www.fastmail.fm - IMAP accessible web-mail
>
>
>



RE Authorization failed for sendsms

2006-03-06 Thread nui_2_gui
Hi Rene,

Thanks. My kannel.conf uses 'Includes':


include = /etc/kannel/modems.conf
include = /etc/kannel/smsbox.conf
include = /etc/kannel/wapbox.conf

My 'group = sendsms-user' is actually in /etc/kannel/smsbox.conf, are
you saying that it *must* be in kannel.conf?

regards, Nooey.

On Tue, 7 Mar 2006 00:25:49 +0100, "Rene Kluwen" <[EMAIL PROTECTED]>
said:
> User kannel & corresponding password have to exist in group =
> sendsms-user
> in kannel.conf.
> 
> Rene Kluwen
> Chimit
-- 
  
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - IMAP accessible web-mail




Re: Authorization failed for sendsms

2006-03-06 Thread Leonardo Torrella
Please note that the status page it's generated by the bearerbox, and
the sendsms interface it's processed by the smsbox, so there are
different passwords involved.
The smsbox uses the sendsms-user groups to allow access to it. The
status and admin password (bearerbox) it's in the core group.

regards,
Leonardo.

2006/3/6, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
> Hi all,
>
> Finally have Kannel/Webserver/MySQL & PHP integrated. Went to send a
> test SMS today, however it failed. I executed the following cmd in
> Firefox 1.0.7:
>
> http://192.168.100.20:13013/cgi-bin/sendsms?username=kannel&password=123456&to=04&text=Test%20SMS
>
> with an error returned of:
>
> Authorization failed for sendsms
>
> I did a systems status check via cmd:
>
> http://192.168.100.20:13000/status?password=123456
>
> with output of:
>
> Kannel bearerbox version `1.4.0'. Build `Mar 4 2006 11:40:31', compiler
> `3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,
> pie-8.7.7.1)'. System Linux, release 2.6.15-gentoo-r1, version #1
> PREEMPT Wed Mar 1 22:08:11 EST 2006, machine i586. Hostname
> noseymunky.inthe.jungle, IP 192.168.100.20. Libxml version 2.6.23. Using
> OpenSSL 0.9.7e 25 Oct 2004. Compiled with MySQL 4.1.14, using MySQL
> 4.1.14. Using native malloc.
>
> Status: running, uptime 0d 0h 37m 11s
>
> WDP: received 0 (0 queued), sent 0 (0 queued)
>
> SMS: received 0 (0 queued), sent 0 (0 queued), store size 0
>
> SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec
>
> DLR: 0 queued, using internal storage
>
> Box connections:
> smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 35m 30s)
>
> SMSC connections:
> gsmtc35AT2[gsmtc35] (online s, rcvd 0, sent 0, failed 0,
> queued 0 msgs)
>
> User Kannel exists on my system, but I am not sure if it exists in my
> My_Sql setup. Is this a possible cause?
>
> regards, Nooey.
> --
>
>   [EMAIL PROTECTED]
>
> --
> http://www.fastmail.fm - Does exactly what it says on the tin
>
>
>



RE: Authorization failed for sendsms

2006-03-06 Thread Rene Kluwen
User kannel & corresponding password have to exist in group = sendsms-user
in kannel.conf.

Rene Kluwen
Chimit

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Behalf Of [EMAIL PROTECTED]
Sent: Tuesday, March 07, 2006 12:14 AM
To: Kannel Users
Subject: Authorization failed for sendsms


Hi all,

Finally have Kannel/Webserver/MySQL & PHP integrated. Went to send a
test SMS today, however it failed. I executed the following cmd in
Firefox 1.0.7:

http://192.168.100.20:13013/cgi-bin/sendsms?username=kannel&password=123456&;
to=04&text=Test%20SMS

with an error returned of:

Authorization failed for sendsms

I did a systems status check via cmd:

http://192.168.100.20:13000/status?password=123456

with output of:

Kannel bearerbox version `1.4.0'. Build `Mar 4 2006 11:40:31', compiler
`3.3.5-20050130 (Gentoo 3.3.5.20050130-r1, ssp-3.3.5.20050130-1,
pie-8.7.7.1)'. System Linux, release 2.6.15-gentoo-r1, version #1
PREEMPT Wed Mar 1 22:08:11 EST 2006, machine i586. Hostname
noseymunky.inthe.jungle, IP 192.168.100.20. Libxml version 2.6.23. Using
OpenSSL 0.9.7e 25 Oct 2004. Compiled with MySQL 4.1.14, using MySQL
4.1.14. Using native malloc.

Status: running, uptime 0d 0h 37m 11s

WDP: received 0 (0 queued), sent 0 (0 queued)

SMS: received 0 (0 queued), sent 0 (0 queued), store size 0

SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec

DLR: 0 queued, using internal storage

Box connections:
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 35m 30s)

SMSC connections:
gsmtc35AT2[gsmtc35] (online s, rcvd 0, sent 0, failed 0,
queued 0 msgs)

User Kannel exists on my system, but I am not sure if it exists in my
My_Sql setup. Is this a possible cause?

regards, Nooey.
--

  [EMAIL PROTECTED]

--
http://www.fastmail.fm - Does exactly what it says on the tin







Re: Authorization failed for sendsms

2005-06-14 Thread Aarno Syvänen

Do not use +, escape it (%2b). + means space.

Aarno

On 11.6.2005, at 19.30, Allan hank wrote:


Hi,

I've beeb using kannel for about 3 months but i wanted to add mysql
dlr-db and all became a mess instead.

1) I can longer send sms, the error "Authorization failed for sendsms"
when  i issue the command below
/usr/local/bin/lynx -dump
http://localhost:13013/cgi-bin/sendsms? 
user=tester&password=foobar&to=+17758980618&text=test&mclass=1


2) How can i add mysql logging?

Below is the currect kannel.conf without the mysql stuff.

I'll be very grateful for all the  help provided.


#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, send email to users@kannel.org
#

group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/kannel.log"
log-level = 5
access-log = "/tmp/access.log"
#http-proxy-host = "127.0.0.1"
#http-proxy-port = 8080
#http-proxy-exceptions = "127.0.0.1"
#http-proxy-username = "user"
#http-proxy-password = "password"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
# Smsbox related
#box-deny-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
#unified-prefix = "00358,0"
#white-list = "http://127.0.0.1/white-list.txt";
#black-list = "http://127.0.0.1/black-list.txt";
store-file = "/tmp/kannel.store"
# Wapbox related
#wapbox-port = 13002
#udp-deny-ip = "*.*.*.*"
#udp-allow-ip = "127.0.0.1"
#wdp-interface-name = "*"


# SMSC CONNECTIONS - GLOBAL FIELDS
#group = smsc
#smsc =
#smsc-id = ID
#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset =


# SMSC Nokia CIMD2
#group = smsc
#smsc = cimd2
#host =
#port =
#smsc-username =
#smsc-password =
#keepalive =
#sender-prefix =


# SMSC EMI
#group = smsc
#smsc = emi2
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone =
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive =
#flow-control =


# SMSC SMPP
#group = smsc
#smsc = smpp
#host =
#port =
#receive-port =
#smsc-username =
#smsc-password =
#system-type =
#address-range =


# SMSC SEMA
#group = smsc
#smsc = sema
#device = /dev/tty0
#smsc_nua = (X121 smsc address)
#home_nua = (x121 radio pad address)
#wait_report = 0/1 (0 means false, 1 means true)


# SMSC OIS
#group = smsc
#smsc = ois
#host = 103.102.101.100
#port = 1
#receive-port = 1
#ois-debug-level = 0


# SMSC GSM
group = smsc
smsc = at
#modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom |
nokiaphone | ericsson
modemtype = premicell
device = /dev/cuaa0
sms-center = "+25675010004"
speed = 9600
#pin = 2345
#validityperiod = 167


# SMSC Fake
#group = smsc
#smsc = fake
#host =
#port =
#connect-allow-ip =


# SMSC HTTP
#group = smsc
#smsc = http
#system-type = kannel
#send-url =
#port =
#connect-allow-ip =
#username =
#password =


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
#sendsms-chars = "0123456789 +-"
#global-sender = 12345
log-file = "/tmp/smsbox.log"
log-level = 5
access-log = "/tmp/smsboxaccess.log"
#white-list =
#black-list =
#reply-couldnotfetch =
#reply-couldnotrepresent =
#reply-requestfailed =
#reply-emptymessage =


# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#user-deny-ip = "*.*.*.*"
#user-allow-ip = ""

group = sendsms-user
username = simple
password = elpmis
user-allow-ip = "*.*.*.*"

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user
username = kannel
password = rL4y
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
#name = service_kannel
#forced-smsc = ID
#default-smsc = ID
#faked-sended =
#max-messages = 1
#concatenation = 1
#split-chars =
#split-suffix =
#omit-empty =
#header =
#footer =
#allowed-prefix =
#denied-prefix =
#white-list =
#black-list =



# SMS SERVICES

#group = sms-service
#name = nothing
#keyword = nop
#aliases = "noppy;niente"
#text = "You asked nothing and I did it!"
#get-url = "http://";
#post-url = "http://";
#file = "/tmp/"
#accepted-smsc = ID
#allowed-prefix =
#denied-prefix =
#catch-all = false
#send-sender = false
#strip-keyword = false
#faked-sender =
#max-messages = 1
#accept-x-kannel-headers = false
#assume-plain-text = false
#concatenation = false
#split-chars =
#split-suffix = "+"
#omit-empty = true
#header =
#footer =
#prefix =
#suffix =
#white-list =
#black-list =

group = sms-service
keyword = default
url = "http://ip.cfi.co.ug/~wilson/kannel/sms-service.php?from=% 
q&text=%a&time=%t"

max-messages = 0
omit-empty = 1


# SMS SERVICE GET-URL EXAMPLE
#group = sms-service
#keyword = relay
#get-url = "http://localhost/service?phone=%p&text=%r&binary=% 
b&smsc=$i&time=%t



# SMS SERVICE black-list
#group = sms-service
#keyword = black-list
#text = "You are not alowed to use this service, Go away!"


# SMS SERVICE Def