Dialparties.agi

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

www.elastix.org/index.php/en/component/k...rmission-denied.html
http://www.freepbx.org/forum/freepbx/users/agi-files-permissions-change

Help Please!

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

I am getting a similiar message, and its causing none of my Call Groups to work (this means I’m down).

[2014-02-03 11:47:17] WARNING[6798][C-0000000d] res_agi.c: Failed to execute ‘/usr/share/asterisk/agi-bin/dialparties.agi’: File does not exist.

I’m running Fedora 20, Asterisk 11.7.0, and FreePBX 2.11.

Any thoughts most appreciated.

You will need to install FreePBX correctly in your chosen OS, if you had, it WOULD have existed :wink:

Any clues on how to create the file … everything seemed to install perfectly…

The generic process is documented in the wiki

http://wiki.freepbx.org/pages/viewpage.action?pageId=1048598

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”?

Sorry, no support here for Elastix, they went rogue years ago.

The user never said elastix, they said Fedora 20

The agi-bin for Asterisk is in a strange location “usr/share/asterisk” which FreePBX definitely isn’t used to. This might be a bug.

My mistake for that inline post, I replied belatedly to the OP.

With respect to the Hijacker’s post my first reply attested directly to his Fedora inconsistancies.

I had this issue as well

chown root:root /var/lib/asterisk/agi-bin/dialparties.agi

This fixed it for me

FreePBX 2.7.0.2
Asterisk 1.6.0.17

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.

service asterisk start
root 7687 7685 75 08:48 pts/3 00:00:03 /usr/sbin/asterisk -f -vvvg -c
amportal start
root 8121 1 0 08:50 pts/3 00:00:00 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk
asterisk 8124 8121 7 08:50 pts/3 00:00:03 /usr/sbin/asterisk -f -U asterisk -G asterisk -vvvg -c

Somewhere I read that amportal command is (or will be) deprecated…
Hopefully this doesn’t happen soon :slight_smile:

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.

“Somewhere I read that amportal command is (or will be) deprecated”

This is entirely untrue.