AMI Default Configuration in 16

Starting in version 16, the default configuration for the Asterisk Manager Interface (AMI) has changed. In previous versions the AMI bind address was set to 0.0.0.0 which would allow an AMI request to be served from any interface on the system. Starting in 16, the bind address is 127.0.0.1 so that only AMI requests from localhost will be served. This will be fine for most users and admins, but if you need to allow external access to the AMI, you will need to reconfigure it.

 

Steps to Allow AMI access from external hosts

Log into the PBX command line and edit the file /etc/asterisk/manager.conf

[root@freepbx ~]# nano /etc/asterisk/manager.conf

 

Locate the bindaddr line in the general section:

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

 

Update the current value with the desired value, probably 0.0.0.0

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

 

Save the file and reload with 'fwconsole reload

 

Optionally, you can confirm the setting is live from the Asterisk console with:

Return to Documentation Home I Return to Sangoma Support