Can't connect to Asterisk Manager

I'm having trouble setting up ADM. Here is my manager_custom.conf (automatically included from manager.conf):

[adm]
secret = adm
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

And here's what I put into ADM:

Hostname: 192.168.x.x
Username: adm
Password: adm

In the Asterisk CLI, here's what pops up:

== Parsing '/etc/asterisk/manager.conf' : Found
== Parsing '/etc/asterisk/manager_custom.conf' : Found
== Connect attempt from '192.168.x.x' unable to authenticate

I'm not sure what the problem is.... I'm running A@H 2.7 if that helps.

Thanks,
Max

You have set the manager to

You have set the manager to bind only to localhost, you need to bind it to 192.168.x.x it seems.

in the permit line in manager_custom.conf

Thanks very much Richard,

Thanks very much Richard, that was the problem :)

For some bizarre reason I assumed 127.0.0.1/255.255.255.0 to be a range, from IP 127.0.0.1 to 255.255.255.0 *smacks head*

Cheers!

Authentication to asterisk Manager Failed

I have the same problem and tried to resolve it from the advice on this thread but still it didn't work. This is my manager_custom.conf:

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

and the cli debug output is:
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Connect attempt from '192.168.1.5' unable to authenticate

I followed also the suggested changes on the sip.conf (callevent=yes). Still not working. Any idea what are the things should I look onto? I don't like to make something that I don't understand and mess up the system.

Authentication

Sorry. Please ignore my post. Its working now with my managers_custom.conf (I am using FreePBX). Just to share what I did, please the details below. It might help others too.

[adm]
secret = adm
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
enabled = yes
port = 5038
bindaddr = 192.168.1.5 (my PC IP)

Regards,

Jessie

i can not have access as well

;
; Asterisk Call Management support
;
[general]
enabled = yes
port = 5038
bindaddr = 10.20.1.1

[admin]
secret = adm
deny=0.0.0.0/0.0.0.0
permit=10.20.1.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 every time i create connection to the astersik server it said :autentication to asterisk manager failed