Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2010, 12:17:15 AM
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
| | |-+  "Authentication Failed" then "Dial failed. No response"
« previous next »
Pages: [1] Print
Author Topic: "Authentication Failed" then "Dial failed. No response"  (Read 829 times)
murfett-au
Newbie
*
Offline Offline

Posts: 3


« on: February 17, 2009, 11:47:21 AM »

I'd like some assistance on how to debug my problems more methodically.  I'm not even sure the AJAM process is running on my Asterisk 1.4 server.

The  /etc/asterisk/http.conf file contains:

[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
prefix=asterisk

but when I enter "http://asteriskboxip:8088/" as a URL in firefox it returns a "Network Timeout" message.  I tried "http://asteriskboxip:8088/asterisk" also, but still nothing.

I initially had a problem with the acl for my [click] user in /etc/asterisk/manager.conf - I changed the permit= line in the [admin] user section rather than the [click] section.  When this error was happening, the manager.c error you describe in the "Authentication Failed" post was happening.  After I fixed the permit line in the [click] section these errors stopped appearing in the log file.

So when I now click the icon in firefox, the "Authenticating" message displays for about 24 seconds, then "Dial failed. No response." appears.  Any information on whether this is a phone or a server problem would be appreciated.
Logged
Brett Sutton
Asterisk IT Staff
Sr. Member
*****
Offline Offline

Posts: 404



« Reply #1 on: February 27, 2009, 09:19:08 PM »

I would start with some basic network test such as:

On your asterisk box start with the following:
netstat -andp | grep asterisk

Amongst other lines you should see the following. This shows that asterisk is ready to accept connections on port 8088. If this doesn't show up then your http.conf is wrong.

tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      4553/asterisk

The are key settings in both manager.conf and http.conf. In manager.conf you must have at a minimum:

[general]
enabled=yes
webenabled=yes

[click]
secret = apassword
deny=0.0.0.0/0.0.0.0
permit=X.0.0.0/255.0.0.0
read = system,call,log,verbose,command,agent,user


Where X is the first number that appears in your clients IP address.
For instance my laptops address is 10.1.0.34 so my permit statement is:
permit=10.0.0.0/255.0.0.0

Note: this is not very secure as it will allow any other computer that has an IP address beggining with '10' to have access to asterisk.

Your http.conf file looks correct.

Once you have the above working then from the client PC try
ping asteriskboxip

If that succeeds then try:

telnet asteriskboxip 8088

If that succeeds then hit the enter key twice and you should see something very similar to the following. If its not the same then you probably have something other than asterisk running on the port.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.


HTTP/1.1 200 OK
Server: Asterisk/1.4.22.1
Date: Fri, 27 Feb 2009 11:12:09 GMT
Connection: close
Cache-Control: no-cache, no-store
Content-type: text/html

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Invalid Request</p>
<hr />
<address>Asterisk Server</address>
</body></html>
Connection closed by foreign host.

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!