How can I play a file from a different directory using Playback application in call file

Hi I have this file here formatted correctly for phone systems, it is not in the sounds directory of freepbx, how can I play that file without putting it the sounds directory of freebx. It is in /root/page/

Here is my call file:

Channel: LOCAL/9098@ext-paging
Application: Playback
Data: /root/page/sounds/doorbell.wav
callerID: "DOORBELL" <ANNONCE>
maxretries:1
Waittime:5

I have also tried without the .wav

Channel: LOCAL/9098@ext-paging
Application: Playback
Data: /root/page/sounds/doorbell
callerID: "DOORBELL" <ANNONCE>
maxretries:1
Waittime:5

But I get no audio

Thanks in advance

The asterisk user does not have permission to read files in the /root directory.

1 Like

I have tried the following but still does not work:

sudo chown asterisk:asterisk /root/page/sounds

You need execute permission on all the directories, and probably also read permission on the leaf one.

This is a very non-standard place to put such files.

1 Like

I just did give all perms, read right execute using chmod. Still doesn’t work

You would need to change the permissions on all of /root, /root/page and /root/page/sounds probably easier and better to move those files to a more conventional location

1 Like

Setting write permission on /root is dangerous.

1 Like

Yeah I figured I would put them in the sounds directory…

Thanks!

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