So I received a call from an employee who said he was testing the IVR and noticed calls were droppoing right into voicemail instead of ringing the group. Some investigation lead to me to the error on the CLI Failed to execute ‘/var/lib/asterisk/agi-bin/dialparties.agi’: Permission denied.
I was able to quickly fix it with a chmod 777 /var/lib/asterisk/agi-bin/dialparties.agi
But any time I do an “Apply Configuration” change in the web gui it breaks the dialparties.agi file again.
I saw this thread, but no solution. I’m running Elastix 2.3.0 + FreePBX 2.8.1
So I noticed that the asterisk process was running as root for the last 2 days. I dont recall doing anything and starting asterisk as that user, but I must have. Rebooted the appliance and it seems to be ok. I’ll monitor it
you chose to use an undocumented OS the closest match would be Centos. Either read the install script and adapt or perhaps as a newbie go the easy route and use a “distro”?
Changing the permissions or running asterisk as root will create even more issues in the future.
This is strange, but not exactly a freepbx issue.
If I boot the system (centos 5 i386 2.6.x kernel (latest standard available via yum) then asterisk runs as user asterisk, autostarted via service and chkconfig at boot
if the system is rebooted to el-repo 3.2.58-1.el5.elrepo (again latest standard)
then asterisk autostarts as root, failing to execute agi scripts due to permission denied errors as mentioned in the first post here
However, starting it with amportal start, seems to run things as it should, ie user asterisk.
Somewhere I read that amportal command is (or will be) deprecated…
Hopefully this doesn’t happen soon
I’m running Asterisk 11.9.0 built by root @ pbx.home.loc on a i686 running Linux on 2014-05-01 15:37:45 UTC with FreePBX 2.11.0.37
System is Centos 5.x yum updated to latest, with kernels as stated above.
This needs further research which involves reboots that I can’t do at the moment.