Seems like if you're missing the smsbox-user group where you define the user
and password to use.

Read the user guide for more details.

Regards,

Alex

On Thu, Dec 23, 2010 at 1:27 PM, David Ige: Cellulant <
da...@cellulant.com.ng> wrote:

> Hello,
>
>
> I have installed an Elite SMS Gateway software which also installed Kannel
> along with it on a centOS server.
>
> Each time i try to send SMS using the sendsms url it gives "Authorization
> failed for sendsms".
>
> Below is my config,
>
>
>
> --------------------------------------------------------------------------------
> bearerbox.conf
>
> -------------------------------------------------------------------------------
>
> include="/opt/vsmsc/etc/kannel_include.conf"
>
> group=vsmsc-config
> path=/opt/vsmsc/etc/vsmsc_bbox.conf
>
> group=rr-list
> id=rr-db
> table=users
> key-field=username
> value-field=throughput
>
> group=mysql-connection
> id=rr-db
> host=localhost
> username=xxxxxx
> password=xxxxx
> database=xxxxx
> max-connections=1
>
> ----------------------------------------------------------------------------------
>
> --------------------------------------------------------------------------------
> kannel_include.conf
>
> -------------------------------------------------------------------------------
>
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = foobar
> #box-deny-ip = "*.*.*.*"
> #box-allow-ip = "127.0.0.1"
> box-allow-ip = "*.*.*.*"
> log-file=/opt/vsmsc/logs/bearerbox.log
> log-level=0
> admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "127.0.0.1"
>
>
> group = mysql-connection
> id = kannel_dlr
> host = localhost
> username = xxxxxx
> password = xxxxxx
> database = xxxxxx
> max-connections = 5
>
> group = dlr-db
> id = kannel_dlr
> table = kannel_dlr
> field-smsc = smsc
> field-timestamp = ts
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc
>
> #---------------------------------------------
> # SMSC CONNECTIONS
> #---------------------------------------------
>
> include="/opt/vsmsc/etc/smsc.d/"
> #include="/etc/kannel/smsc.d/mo_relay.conf"
>
> #---------------------------------------------
> # SMSBOX SETUP
> #---------------------------------------------
>
> group = smsbox
> smsbox-id=VSMSC_HTTP
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> log-file=/opt/vsmsc/logs/smsbox.log
> log-level=0
> access-log = "/tmp/access.log"
>
> #---------------------------------------------
> # SEND-SMS USERS
> #---------------------------------------------
>
>
>
> #---------------------------------------------
> # SERVICES
> #---------------------------------------------
>
> group = sms-service
> keyword = default
> catch-all=yes
> exec=/opt/vsmsc/sbin/mo_processor.php /opt/vsmsc/logs/mo_debug.log %p %P %C
> %b %F
> omit-empty=yes
> send-sender=yes
>
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>
> --------------------------------------------------------------------------------
> smsbox.conf
>
> -------------------------------------------------------------------------------
>
> include=/opt/vsmsc/etc/kannel_include.conf
>
> group=vsmsc-config
> path=/opt/vsmsc/etc/vsmsc_sbox.conf
>
> # SEND-SMS USERS
> group = sendsms-user
> username = tester
> password = foobar
> #user-deny-ip = ""
> #user-allow-ip = ""
>
>
> ---------------------------------------------------------------------------------
>
> --------------------------------------------------------------------------------
> vsmsc_bbox.conf
>
> -------------------------------------------------------------------------------
>
> group=vsmsc
> id=vsmsc-primary
> smsc-db=vsmsc
> smsc-table=smscs
> user-db=vsmsc
> user-table=users
> http-port=16000
> mode=1
> bearerbox-status-url="http://localhost:13000/status.xml?password=foobar";
> num-tables=10
> server-id=1
> transactions-db=vsmsc
> transactions-table=user_transactions
> messages-db=vsmsc
> messages-table=user_messages
> status-db=vsmsc
> status-table=status_queue
> numbers-db=vsmsc
> numbers-table=numbers
> keywords-db=vsmsc
> keywords-table=number_keywords
> smpp-smsbox-id=VSMSC_SMPP
> http-smsbox-id=VSMSC_HTTP
> mo-db=vsmsc
> mo-table=mo_messages
> profile-db=vsmsc
> profile-table=routing_profiles
> batch-db=vsmsc
> batch-table=user_batches
> batch-tracking-db=vsmsc
> batch-tracking-table=user_batch_tracking_codes
> opt-out-words="stop"
> block-db=vsmsc
> block-table=blocked_numbers
>
>
> ----------------------------------------------------------------------------------------------------
>
> --------------------------------------------------------------------------------
> vsmsc_sbox.conf
>
> -------------------------------------------------------------------------------
>
> group=mysql-connection
> id=vsmsc-primary
> host=localhost
> username=xxxxxx
> password=xxxxxx
> database=xxxxxx
> max-connections=5
>
>
> group=vsmsc
> id=vsmsc-primary
> smsc-db=vsmsc
> smsc-table=smscs
> user-db=vsmsc
> user-table=users
> http-port=17000
> mode=2
> bearerbox-status-url="http://localhost:13000/status.xml?password=foobar";
> num-tables=10
> server-id=1
> transactions-db=vsmsc
> transactions-table=user_transactions
> messages-db=vsmsc
> messages-table=user_messages
> status-db=vsmsc
> status-table=status_queue
> numbers-db=vsmsc
> numbers-table=numbers
> keywords-db=vsmsc
> keywords-table=number_keywords
> smpp-smsbox-id=VSMSC_SMPP
> http-smsbox-id=VSMSC_HTTP
> smsbox-override-auth=xxxxxxxxxx
> mo-db=vsmsc
> mo-table=mo_messages
> profile-db=vsmsc
> profile-table=routing_profiles
> batch-db=vsmsc
> batch-table=user_batches
> batch-tracking-db=vsmsc
> batch-tracking-table=user_batch_tracking_codes
> opt-out-words="stop"
> block-db=vsmsc
> block-table=blocked_numbers
>
> group=mysql-connection
> id=vsmsc-primary
> host=localhost
> username=vsmsc
> password=
> database=vsmsc
> max-connections=5
>
> -----------------------------------------------------------------------------------
>
> Each time i try to send an sms using the sendsms url using this url
>
> ------------------------------------------------------------------------------------------------------------------------------------
> wget "
> http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar";
>
> -------------------------------------------------------------------------------------------------------------------------------------
>
> i got this error:
>
> --2010-12-24 12:02:11--
> http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar
> Resolving localhost... 127.0.0.1
> Connecting to localhost|127.0.0.1|:13013... connected.
> HTTP request sent, awaiting response... 403 Forbidden
> 2010-12-24 12:02:11 ERROR 403: Forbidden.
>
>
> When i checked the smsbox.log, here is what it displays:
>
> 2010-12-24 12:08:56 [6669] [3] DEBUG: HTTP: Creating HTTPClient for
> `127.0.0.1'.
> 2010-12-24 12:08:56 [6669] [3] DEBUG: HTTP: Created HTTPClient area
> 0x98f6f80.
> 2010-12-24 12:08:56 [6669] [8] INFO: smsbox: Got HTTP request
> </cgi-bin/sendsms> from <127.0.0.1>
> 2010-12-24 12:08:56 [6669] [8] INFO: User authentication result for
> 'tester' = 0
> 2010-12-24 12:08:56 [6669] [8] INFO: User not authenticated
> 2010-12-24 12:08:56 [6669] [8] DEBUG: Status: 403 Answer: <Authorization
> failed for sendsms>
> 2010-12-24 12:08:56 [6669] [8] DEBUG: HTTP: Resetting HTTPClient for
> `127.0.0.1'.
> 2010-12-24 12:08:56 [6669] [2] ERROR: Error reading from fd 41:
> 2010-12-24 12:08:56 [6669] [2] ERROR: System error 104: Connection reset by
> peer
> 2010-12-24 12:08:56 [6669] [2] DEBUG: HTTP: Destroying HTTPClient area
> 0x98f6f80.
> 2010-12-24 12:08:56 [6669] [2] DEBUG: HTTP: Destroying HTTPClient for
> `127.0.0.1'.
>
>
> I have also tried but i sm still getting the same error.
>
> lynx --dump "
> http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar";
>
> It displays "Authorization failed for sendsms".
>
> Please can someone help me as quickly as possible.
>
>
>
>
>
>
>

Reply via email to