Ami manager login

Hi to all,

I’m trying to test the ami manager but I didn’t receive the login input, only ami asterisk call manager version:

[root@Centos-Asterisk /]# telnet 192.168.50.192 5038
Trying 192.168.50.192…
Connected to 192.168.50.192.
Escape character is ‘^]’.
Asterisk Call Manager/1.3

if I hit “return” appear:

Response: Error
Message: Missing action in request

after this messagge, the system wait for 30 s and the exit

in the asterisk core :

SecurityEvent=“RequestBadFormat”,EventTV=“1399466442-58095”,Severity=“Error”,Service=“AMI”,EventVersion=“1”,SessionID=“0x7f95540010c8”,LocalAddress=“IPV4/TCP/192.168.50.192/5038”,RemoteAddress=“IPV4/TCP/192.168.50.192/51471”,RequestType=“Action: NONE”,SessionTV=“0-0”,AccountID=""
== Client from 192.168.50.192, failed to authenticate in 30 seconds
== Connect attempt from ‘192.168.50.192’ unable to authenticate

I use centos 64bit 2.6.32 on VM, iptable and selinux are disabled. I’ve tried to migrate from 11.7 to 11.9 but nothing is changed.

my manager.conf:
[general]
enabled = yes
webenabled = no

port = 5038
bindaddr = 192.168.50.192 (tried also 0.0.0.0)

[test]
secret=test
deny=0.0.0.0/0.0.0.0
;permit=0.0.0.0/0.0.0.0
permit=192.168.50.0/255.255.255.0 (also my ip)
permit=127.0.0.1

any idea why the login request is not showed?

thanks in advance
Stefano

Because you need to send the login action to the system.

voip-info.org/wiki/view/Asterisk+manager+API

Thanks a lot , now is clear and working.

have a nice day.
Stefano