Welcome, Guest. Please login or register.
Did you miss your activation email?
September 08, 2010, 02:44:57 PM
Home Help Search Login Register
News: Version 3.0 of Noojee Fax has been released.
Order it now from here.

+  Noojee Telephony Solutions Forums
|-+  Noojee Click
| |-+  Install Support
| | |-+  Was working fine, now auth is failing
« previous next »
Pages: [1] Print
Author Topic: Was working fine, now auth is failing  (Read 1056 times)
bradtem
Newbie
*
Offline Offline

Posts: 7


« on: May 15, 2009, 09:47:59 AM »

I managed to get NC working after a bit of plugging around and adding more permissions to the files.   However, now it has stopped working and always claims the connection has gone away.

Here are a series of debug log entries showing the program is authenticating, getting a success response, and then when it tries to do something (even listen for events) get gets an authentication required.

16:36:10:420 debug: request=http://main:8089/asterisk/mxml?action=Login&Username=click&Secret=xxxxx&Events=call
16:36:10:428 debug: sequence.load: 4:200:OK:undefined:<ajax-response>
<response type='object' id='unknown'><generic response='Success' message='Authentication accepted' /></response>
</ajax-response>
16:36:10:430 debug: request=http://main:8089/asterisk/mxml?action=WaitEvent&Timeout=30
16:36:10:594 debug: sequence.load: 4:200:OK:undefined:<ajax-response>
<response type='object' id='unknown'><generic response='Error' message='Authentication Required' /></response>
</ajax-response>

Any attempt to actually call will also generate a similar error.  It does seem to be asterisk's fault, in that if I try these URLs from the browser I also get the auth accepted, and then an error that it is required, so this may be more a request for asterisk debug assist, but I didn't change anything much in asterisk.   What debug settings can I set in * to see why it is rejecting these requests?

No diagnostic in /var/log/asterisk/messages about it, though when I tried a bad password it did put in a "failed to authenticate as click" in the log
« Last Edit: May 15, 2009, 09:50:26 AM by bradtem » Logged
bradtem
Newbie
*
Offline Offline

Posts: 7


« Reply #1 on: May 16, 2009, 06:01:28 AM »

Adding some notes, it does appear to work when I paste the URLs from the logs into firefox now.   If I do the auth url, it will report authenticated (or already logged in).   If I try noojee at that point, it fails, but if I paste in the originate URL it makes the call.

Odd.
Logged
bradtem
Newbie
*
Offline Offline

Posts: 7


« Reply #2 on: May 21, 2009, 11:41:46 AM »

So, any advice on what to look for in asterisk debugs to find out why the auth is now failing?
Logged
Brett Sutton
Asterisk IT Staff
Sr. Member
*****
Offline Offline

Posts: 412



« Reply #3 on: May 26, 2009, 04:20:24 PM »

post http.conf and manager.conf and we may be able to help.
Logged
bradtem
Newbie
*
Offline Offline

Posts: 7


« Reply #4 on: October 15, 2009, 10:50:10 AM »

Sorry for long delay.  I gave up on this, but re-tried with the latest asterisk 1.4 from svn trunk, and the latest noojee click, both 1.0 and the alpha.  Same result.

manager.conf looks like this:

bindaddr=192.168.123.10

webenabled=yes
[click]
secret=xxxxxxx
;permit=127.0.0.1/255.255.255.0  ; allow connections for the local computer
permit=192.168.123.0/255.255.255.0  ; allow connections from all computers with an IP in the range 10.0.0.X
read = call,all
write = call,all

and http.conf local part looks like this:


enabled=yes
bindaddr=192.168.123.10
bindport=8089
prefix=asterisk



--------------

Asterisk says for http show status

 Prefix: /asterisk
Server Enabled and Bound to 192.168.123.10:8089


And for manager show user click:
 username: click
         secret: <Set>
           deny: (N/A)
         permit: 192.168.123.0/255.255.255.0
           read: call,all
          write: call,all


Noojee is configured to use 192.168.123.10 and port 8089, ajam mode, username click

Note I get "Authentication Required" not "authentication failed"

Got this both with an older asterisk and the latest
Logged
Brett Sutton
Asterisk IT Staff
Sr. Member
*****
Offline Offline

Posts: 412



« Reply #5 on: October 21, 2009, 08:03:44 PM »

Have a look at this post and let us know if it helps.

http://forums.asteriskit.com.au/index.php/topic,505.msg1491.html#msg1491
Logged
bradtem
Newbie
*
Offline Offline

Posts: 7


« Reply #6 on: October 22, 2009, 04:51:51 AM »

Yes, that does it.    So hard to say if you can call this a bug in firefox, though you could try filing a bug report on it.  Perhaps the add on has the power to add the asterisk server to the list of allowed cookie sites? (Turning on 3rd party cookies is not an acceptable solution.)
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!