how-to-fix-the-you-dont-have-permission-to-access-recordings

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

how-to-fix-the-you-dont-have-permission-to-access-recordings

Postby carpenox » Sun Mar 10, 2024 8:41 am

here is a way to fix recordings on a scratch install

https://dialer.one/how-to-fix-the-you-d ... -vicidial/



Chris
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: how-to-fix-the-you-dont-have-permission-to-access-record

Postby williamconley » Sat Jun 29, 2024 1:35 pm

For clarity: Scratch install is what we call "installing Vicidial without using a purpose-built Vicidial .ISO installer" such as Vicibox or Goautodial. If you perform one of these manual/scratch installs, be certain that your instruction set is valid before you begin. If it's never been mentioned on this forum it may be questionable at best. And if you post here for support, include a link to the instruction set you used so we can know which sets have which bugs.

For posterity (in case the linked site or page ever goes away for any reason) Here's Chris's very accurate solution:

The usual suspect is not setting proper permissions on the folder for the recordings, to fix this simply type the commands below:

Redhat(Alma, Rocky or CentOS):
Code: Select all
chmod -R 755 /var/spool/asterisk/monitorDONE
chown -R apache:apache /var/spool/asterisk/monitorDONE


OpenSuSE(Tumpleweed, Leap ViciBox):
Code: Select all
chmod -R 755 /var/spool/asterisk/monitorDONE
chown -R wwwrun:www /var/spool/asterisk/monitorDONE


The other issue could be not having a proper alias/vhost set for apache. To fix this simply paste the lines below at the bottom of your http.conf file
Code: Select all
CustomLog /dev/null common

Alias /RECORDINGS/MP3 "/var/spool/asterisk/monitorDONE/MP3/"

<Directory "/var/spool/asterisk/monitorDONE/MP3/">
    Options Indexes MultiViews
    AllowOverride None
    Require all granted
</Directory>


For Redhat this goes in /etc/httpd/conf/httpd.conf

For OpenSuSE this goes in /etc/apache2/httpd.conf
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20253
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 90 guests