FreePBX cannot connect to asterisk

Hello All,

 I have a problem which is that FreePBX can't connect to asterisk, this is my configuration:

[general]
enabled = yes
webenabled = yes
port = 5038
bindaddr = 0.0.0.0
displayconnects=no

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

root@asterisk:/home/azureuser# cat /etc/freepbx.conf | grep AMPMGR
$amp_conf[‘AMPMGRUSER’] = ‘admin’;
$amp_conf[‘AMPMGRPASS’] = ‘admin’;

root@asterisk:/home/azureuser# grep AMPMGRPASS /etc/amportal.conf
AMPMGRPASS=admin

root@asterisk:/home/azureuser# asterisk -rx “manager show connected”
Username IP Address Start Elapsed FileDes HttpCnt ReadPerms WritePerms
127.0.0.1 0 1747183352 32 0 0000000000 0000000000
1 users connected.

I see the below error, when running “fwconsole restart”

Unable to connect to Asterisk. Did it start?

so can you please tell me what is the issue ?

Thanks,
Rafik Mokadis

Asterisk failed to start (look at logs, and/or try manually starting Asterisk), or you have a non-standard installation, and permissions are wrong on the pipe used to communicate with the running Asterisk.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.