Having issue with testing AMI athentication by using telnet

I’m trying to test the ami user by using telnet 127.0.0.01 5038, but I ONLY get the following message !!!

[root@localhost ~]# telnet 127.0.0.1 5038
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
Asterisk Call Manager/1.3

and here is my manager.conf

[general]
enabled = yes
webenabled = yes
port = 5038
bindaddr = 127.0.0.1
displayconnects=no ;only effects 1.6+

[admin]
secret = pA55w0rd
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
permit=10.10.10.29/255.255.255.0
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
writetimeout = 5000

Thank You,

Mohammad

You haven’t authenticated yet, login with Username admin and Secret pA55w0rd.

The telnet session you have successfully connected to is interactive (you have to type things :slight_smile: )

How to use it is covered in

https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=4817239

in your case type

Action: Login
Username: admin
Secret: pA55w0rd

(type two CR’s to continue after “pA55w0rd” )

2 Likes

is very bogus, use a proper network/netmask and bind to 0.0.0.0 (a security risk) if you expect it to work outside your localhost.

Dicko,

Thank you for you respond.

Now here is my result:

[root@localhost ~]# telnet 127.0.0.1 5038
Trying 127.0.0.1…
Connected to 127.0.0.1.
Escape character is ‘^]’.
Asterisk Call Manager/1.3
Action: Login
Username: admin
Secret: pA55w0rd

Response: Success
Message: Authentication accepted

Event: FullyBooted
Privilege: system,all
Status: Fully Booted

I thought by getting this result, I will get rid of the following message:

[2015-03-20 21:37:26] NOTICE[11695] manager.c: 127.0.0.1 failed to authenticate as ‘admin’

But seems like, NO !!!

would you help me please resolve this issue.

Thank You,

Mohammad

No, that is a misconfiguration of your system, obviously you can login but your asterisk user can’t with it’s username/password pair go and read the installation script you followed a few more times, . . . .

I’m using the FreePBX Distro which I thought it should work out of the box.

Thank You,