Page 1 of 1
Recording is not Accessible
Posted:
Fri Aug 01, 2014 5:07 am
by Arbind
hello every one,
I install vicidial using iso ViciBox5.i686-5.0.3.preload and fallowed cluster install. my vicidial VERSION: 2.10-448a
BUILD: 140706-0927.
i want to access recording but their is an error message "Access forbidden!" i search and found that i need to enable my IP address to access the recordings.
for this i have to make some changes in "/etc/httpd/conf.d/vicidial_recordings.conf" but when i tried to do this,
i did not found httpd directory in etc.though i found conf.d directory in etc/apache2 but again vicidial_recordings.conf not found in conf.d .
any idea or help to solve this issue.
thank you
Re: Recording is not Accessible
Posted:
Sat Aug 02, 2014 9:46 am
by covarrubiasgg
You will find it under
/etc/apache2/conf.d/vicirecord.conf
Re: Recording is not Accessible
Posted:
Mon Aug 04, 2014 4:53 am
by Arbind
thank you for your reply covarrubiasgg,
i check /etc/apache2/conf.d/vicirecord.conf as you mention and i found something like
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
after that i change the current code to
<Directory "/var/spool/asterisk/monitorDONE">
Order Deny,Allow
#Deny from all
Allow from all
Allow from 127.0.0.1 192.168
Options Indexes FollowSymLinks
</Directory>
Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE
but still,when i try to access the recording with myip/RECORDINGS/, get the same message, Access forbidden!
Re: Recording is not Accessible
Posted:
Mon Aug 04, 2014 2:47 pm
by covarrubiasgg
Trys this:
- Code: Select all
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options -Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
and run:
- Code: Select all
service apache2 reload
if still wont work run:
- Code: Select all
chmod 755 /var/spool/asterisk
Re: Recording is not Accessible
Posted:
Tue Aug 05, 2014 12:41 am
by Arbind
Thank you very much covarrubiasgg, its work.
i am able to access my recording, really appreciate your help.just please clear one more thing.what is the work of "FollowSymLinks" in Options -Indexes MultiViews FollowSymLinks.
Re: Recording is not Accessible
Posted:
Tue Aug 05, 2014 2:18 pm
by covarrubiasgg
If you have a symbolic in your recordings With FollowSymLinks you are telling apache to follow that path, for example
If you have done something like
- Code: Select all
ln -s /var/spool/asterisk/monitorDONE/MP3 /media/remote_disk
in order to have you recordings in an external file system such a NAS or a removable media, if you dont use FollowSymLinks it will not find the route to /media/remote_disk
Re: Recording is not Accessible
Posted:
Tue Aug 05, 2014 11:44 pm
by Arbind
thank you again for your help.i got the point clearly.
Re: Recording is not Accessible
Posted:
Wed Mar 08, 2017 4:24 am
by Alex
Hi. I'm also facing the same issue of RECORDING not accessible from USER STATS page. I'm using VICIdial 2.9-441a & installed on Centos 7. The error is mentioned below.
Forbidden
You don't have permission to access /RECORDINGS/MP3/20170307-175602_1234456798_agent001-all.mp3 on this server.
I have done the below changes as mentioned in the previous post in /etc/httpd/conf.d/vicidial.php & also tried on /etc/httpd/conf.d/goautodial.php. But I didn't find the vicidial_recordings.php file in /etc/httpd/conf.d folder .
###################################################
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
<Directory "/var/spool/asterisk/monitorDONE">
Options -Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
<files *.mp3>
Forcetype application/forcedownload
</files>
</Directory>
###################################################
service httpd restart
chmod 755 /var/spool/asterisk
But still i'm getting that error. Please help.
Re: Recording is not Accessible
Posted:
Wed Mar 08, 2017 11:43 am
by Vince-0
It's probably folder permissions.
Did you try the chmod command above?
Shot for resurrecting a 3 year old thread.
Re: Recording is not Accessible
Posted:
Thu Mar 09, 2017 1:57 am
by Alex
Hi Vince. Yes I did chmod (permission) for /var/spool/asterisk folder. Still same issue.
Re: Recording is not Accessible
Posted:
Thu Mar 09, 2017 2:38 am
by Vince-0
What does your web server log say when you try access it?