Page 1 of 1

Solved: Access forbidden! on recording links

PostPosted: Tue Oct 15, 2013 10:47 pm
by mav2287
I know this one has been covered many times on the forum and I have read as many as I could find. It looked like most of the time it was related the vici_record.conf so I started there looking for the file in the Httpd folder. I tried to change this but quickly found out the file was gone or had moved. I found it in /etc/apache2/confid/vicirecord.conf and I added my IP and even the Alias code at the bottom pointing to the monitor folder. However every time I follow a link in Vicidial it takes me to an Access forbidden! page. I did check in the monitorDONE folder and I am recording calls. I just can't seem to crack what I need to do to make the links in the admin page work instead of going to the Access forbidden! page. I also check my apache error log file and couldn't seem to find anything helpful. Any ideas?

Re: Access forbidden! on recording links

PostPosted: Wed Oct 16, 2013 3:55 am
by DomeDan
post your vicirecord.conf file and also check the permission on the monitorDONE folder and files:
ls -l /var/spool/asterisk/
ls -l /var/spool/asterisk/monitorDONE/
ls -l /var/spool/asterisk/monitorDONE/*/|head -50

Re: Access forbidden! on recording links

PostPosted: Wed Oct 16, 2013 9:53 am
by richardroi
try this...using winscp go to /var/spool change your permission on asterisk folder.
But make sure to lock it down. viewtopic.php?f=4&t=29568

Re: Access forbidden! on recording links

PostPosted: Thu Oct 17, 2013 3:58 pm
by mav2287
checked permissions working on the other item the file looks like this

Code: Select all
lias /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>
Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE

Re: Access forbidden! on recording links

PostPosted: Fri Oct 18, 2013 6:01 am
by richardroi
Code: Select all
chmod 755 /var/spool/asterisk
try this...

Re: Access forbidden! on recording links

PostPosted: Fri Oct 18, 2013 6:36 pm
by mav2287
That did it thanks man!

Re: Solved: Access forbidden! on recording links

PostPosted: Sat Oct 19, 2013 4:37 pm
by williamconley
but change

Code: Select all
Options Indexes MultiViews


to

Code: Select all
Options -Indexes MultiViews


This will remove "browsing" ability. So anyone who gains access will need to use a link directly to a file. This reduces your exposure should someone you don't like gain access to the folder!

Re: Solved: Access forbidden! on recording links

PostPosted: Sun Oct 20, 2013 12:24 pm
by mav2287
Thanks William I got that added I think that would be a good thing to add to the Vicibox preload

Re: Solved: Access forbidden! on recording links

PostPosted: Sun Oct 20, 2013 8:20 pm
by williamconley
More of a personal preference thing. If the folder is IP locked or password protected, browsing could be useful.

Re: Access forbidden! on recording links

PostPosted: Tue May 24, 2016 9:50 am
by mattyou1985
richardroi wrote:
Code: Select all
chmod 755 /var/spool/asterisk
try this...



i bumped in to the same problum with vicibox VERSION: 2.12-557a BUILD: 160517-1927

i just ran chmod 755 /var/spool/asterisk in putty and no more Access forbidden! woop woop thank you and good to no old fixes still work on new versions

Re: Access forbidden! on recording links

PostPosted: Tue May 24, 2016 9:55 am
by williamconley
mattyou1985 wrote:
richardroi wrote:
Code: Select all
chmod 755 /var/spool/asterisk
try this...



i bumped in to the same problum with vicibox VERSION: 2.12-557a BUILD: 160517-1927

i just ran chmod 755 /var/spool/asterisk in putty and no more Access forbidden! woop woop thank you and good to no old fixes still work on new versions

This issue is related to the Vicibox vesion, not the Vicidial version (the installation software creates the environment, this is part of that environment ... NOT part of the dialer software).

Re: Solved: Access forbidden! on recording links

PostPosted: Sat May 28, 2016 10:32 am
by mattyou1985
my version of vicibox is ViciBox v.7.0.3-160505 vicidial VERSION: 2.12-557a BUILD: 160517-1927

dident no wair 100% is was related to just new that it was not part of vicibox v6 and befor that so figerd that new version of vicibox or the new version vicidial was to blame as i like to do onley new installs (using iso) then updates for the miner fixes