Recording is not Accessible

All installation and configuration problems and questions

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

Recording is not Accessible

Postby Arbind » Fri Aug 01, 2014 5:07 am

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
Arbind
 
Posts: 12
Joined: Mon May 19, 2014 2:27 am

Re: Recording is not Accessible

Postby covarrubiasgg » Sat Aug 02, 2014 9:46 am

You will find it under

/etc/apache2/conf.d/vicirecord.conf
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: Recording is not Accessible

Postby Arbind » Mon Aug 04, 2014 4:53 am

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!
Arbind
 
Posts: 12
Joined: Mon May 19, 2014 2:27 am

Re: Recording is not Accessible

Postby covarrubiasgg » Mon Aug 04, 2014 2:47 pm

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
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: Recording is not Accessible

Postby Arbind » Tue Aug 05, 2014 12:41 am

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.
Arbind
 
Posts: 12
Joined: Mon May 19, 2014 2:27 am

Re: Recording is not Accessible

Postby covarrubiasgg » Tue Aug 05, 2014 2:18 pm

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
covarrubiasgg
 
Posts: 420
Joined: Thu Jun 10, 2010 10:20 am
Location: Tijuana, Mexico

Re: Recording is not Accessible

Postby Arbind » Tue Aug 05, 2014 11:44 pm

thank you again for your help.i got the point clearly. :)
Arbind
 
Posts: 12
Joined: Mon May 19, 2014 2:27 am

Re: Recording is not Accessible

Postby Alex » Wed Mar 08, 2017 4:24 am

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.
Alex
 
Posts: 53
Joined: Mon Jun 01, 2015 1:37 am

Re: Recording is not Accessible

Postby Vince-0 » Wed Mar 08, 2017 11:43 am

It's probably folder permissions.
Did you try the chmod command above?

Shot for resurrecting a 3 year old thread.
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa

Re: Recording is not Accessible

Postby Alex » Thu Mar 09, 2017 1:57 am

Hi Vince. Yes I did chmod (permission) for /var/spool/asterisk folder. Still same issue.
Alex
 
Posts: 53
Joined: Mon Jun 01, 2015 1:37 am

Re: Recording is not Accessible

Postby Vince-0 » Thu Mar 09, 2017 2:38 am

What does your web server log say when you try access it?
Vince-0
 
Posts: 272
Joined: Fri Mar 02, 2012 4:27 pm
Location: South Africa


Return to Support

Who is online

Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 101 guests