Connect attempt from '127.0.0.1' unable to authenticate

Hi,

I just upgraded the Asterisk from 1.4.22 to 1.6.1 and I am using FreePBX along with it.
The system was working fine for the last one year.

It is giving this error after the upgrade. I am unable to figure out how to fix. Everything seems right, the details of the config are as below
for the Asterisk, AMPORTAL and the FreePBX .

Appreciate your help.

Connect attempt from ‘127.0.0.1’ unable to authenticate

The manager.conf has the following

[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1

[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user

#include manager_additional.conf
#include manager_custom.conf

and /etc/amportal.conf has the following

AMPMGRUSER: the user to access the Asterisk manager interface

AMPMGRUSER=admin

AMPMGRPASS: the password for AMPMGRUSER

AMPMGRPASS=amp111

AMPWEBADDRESS: the IP address or host name used to access the AMP web admin

AMPWEBADDRESS=135.91.X.Y

/var/www/html/panel/op_server.cfg

[general]
; If you want to use freepbx/trixbox conf file, set this to 1
use_amportal_conf=1;

; host or ip address of asterisk
manager_host=127.0.0.1
manager_port=5038
; user and secret for connecting to * manager
manager_user=admin
manager_secret=amp111

Folks,

Nobody responded to this and I am still unable to solve this issue.
Appreciate your hints comments help etc …

I dont know if this is causing some undue harm because I am able to make calls but the AMI interface does not seems to work.

The debug screen show that my java application is able to login and send originate command but it does not go any further.

TIA.

Irfan

Hi,

did you try also adding this to manager.conf:

permit=client_ip/255.255.255.0

where client_ip is the IP address of the client which using your java software…

Salimafsar,

I solved the originate problem by chnaging the group perms in manager.conf

But I the unable to authenticate problem still persists. I add the client IP to the permit list but it does not help.

Is there any other way to figure out who is try to login and where it is reading the user/password form ???
Thanks,
Irfan

Hi

You only seem to be binding to 127.0.0.1 try 0.0.0.0 so manage is bound to all interfaces

To see whats going on you could try tcpdump and see if thats sheds any light on it

Ian

Ian,
Thanks for your suggestion,

manager.conf

[code][general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0

[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=XXX.YY.9.42/255.255.255.0
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate

#include manager_additional.conf
#include manager_custom.conf[/code]

This did not work, even though it is binding to 0.0.0.0

Does deny=0.0.0.0/0.0.0.0 prevent all hosts, I tried deny= … just blank and that did not work either.
I feel something needs to changed in amportal.conf or somewhere in FreePBX conf files.

Regards,
Irfan

Hi,

Do you still get “Connect attempt from ‘127.0.0.1’ unable to authenticate” error.
Or you can not originate a call?

I can originate the call using the Java application , that part is working.

But I still see the unable to authenticate problem. This is due to FreePBX 2.6 trying to connect every 5 secs but
I am unable to figure out how to fix. The user and password in the FreePBX and Asterisk are matching but something is
still missing. I checked the FreePBX support site but no luck.

Any help will be appreciated

Regards,
Irfan

So you can start the originate but as I understand your phone doesn’t ring.
It may be codec problem.
I suggest try with 2 local softphone in different machines.
I mean for example create 2000 and 2001 extensions and with using x-lite try to make a call from 2000 to 2001.
If everthings ok then it may be codec problem.

Everything is working fine( extn to extn , originate calls are working and voice quality is good , etc)
but it is just annoying and bothering me because I dont know what is not working until I hit some problem.
If anything, I think FreePBX may not be syncing correctly or Front Operator Panel ( FOP) may be having problems.
So I want to fix this problem.

Regards,
Irfan

You should be making calls over an UMTH(telecom) company.
I guess you are using their sip server.
And most UMTH company as I know, don’t support every codec.
If you setup G.729 codec, then maybe it works.