Asterisk, Asterisk Manager Interface (AMI) IP , . , 1 asterisk, 1, , .

FreePBX 13 (CLI) CentOS


AMI FreePBX

, Settings Asterisk Managers, :

    AMI  FreePBX

, , , Add Manager:

   AMI  FreePBX

. :

   AMI  FreePBX
  • Manager Name - AMI. .
  • Manager Secret - AMI.
  • Deny - IP , AMI . , &. , 192.168.1.0/255.255.255.0&192.168.2.0/255.255.255.0
  • Permit - IP , AMI . Deny.
  • Write Timeout - , Asterisk AMI . , 100 .

. , Rights

   AMI   FreePBX

Submit


AMI CLI

, CentOS. , SSH :

, .
[root@localhost ~]# vim /etc/asterisk/manager.conf  //    manager.conf

[general]:

[general]
enabled = yes // AMI
port = 5038 //    AMI 
bindaddr = 0.0.0.0 //   ( , 0.0.0.0      )
displayconnects=no ;  //    Asterisk   

. , [general] . test P@ssw0rd :

[test] //  Manager Name  FreePBX
secret = P@ssw0rd //  Manager Secret 
deny=0.0.0.0/0.0.0.0 //  Deny
permit=127.0.0.1/255.255.255.0 //  Permit
read = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
write = system,call,log,verbose,command,agent,user,config,command,dtmf,reporting,cdr,dialplan,originate,message
writetimeout = 5000 //  Write Timeout

, :x! . , :

[root@localhost ~]# asterisk -rx "core restart now"

AMI

, , AMI . , telnet 5038, [general] Port, manager.conf :

[root@localhost ~]# telnet localhost 5038
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Asterisk Call Manager/2.8.0
Action: login
Username: test
Secret: P@ssw0rd

Response: Success
Message: Authentication accepted

. Success. , .


?

 .

P.S. , :)

"",