Problem accessing AMI

ecg711
Joined: Wed 19 of Dec, 2012

Problem accessing AMI

Posted:Wed 19 of Dec, 2012 (12:05 UTC)
Hi guys!!
I´m new with the asterisk and i´m having some problems to connect to the AMI console.

I can´t connect to AMI by telnet 5038 port to the Asterisk server. I can´t do it neither doing a telnet:5038 to the asterisk server from the asterisk server itself. Telnet is enabled and i have no problems in connecting it by telnet 23 port.

I configured the file etc/asterik/manager_custom.conf as follow:

[admin]
secret = password
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=192.168.1.0/255.255.255.0 ; corporate network
permit=172.16.0.0/255.255.0.0 ;corporate network
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate

After this i executed like root:
asterisk -rx'manager reload'

The error is as folow:

Asterisk Call Manager/1.1
Action: Login
Username: admin
Secret: password

Response: Error
Message: Missing action in request


Do you know what am i doing wrong?

Thank so much!!!!