Page 1 of 1

Vicibox 7 Issue accessing recording from vicidial web interf

PostPosted: Thu Mar 17, 2016 4:09 am
by Merchant007
Vicibox 7 Issue accessing recording from vicidial web interface .


ERROR MESSAGE
Code: Select all

Access forbidden!

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.
Error 403
192.168.0.201
Apache



-
Code: Select all
nano /etc/apache2/conf.d/viciarchive.conf
--

Code: Select all
Alias /archive/ "/home/archive/"

<Directory "/home/archive">
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
        <files *.mp3>
                Forcetype application/forcedownload
        </files>
</Directory>

*-------


Code: Select all
Folder Permission ()

Code: Select all
vicibox7:/var/spool # ls -l
drwxr-x--- 10 asterisk asterisk 4096 Mar 13 12:36 asterisk

Code: Select all
vicibox7:/var/spool/asterisk # ls -l
drwxrwxrwt  2 root     root     1840 Mar 17 14:35 monitor
drwxrwxrwx 10 wwwrun   root     4096 Mar 17 14:34 monitorDONE


Recording FILE permission

Code: Select all
-rwxrwxrwx 1 root root    3744 Mar 17 14:37 20160317-144933_8884954604-all.mp3
-rwxrwxrwx 1 root root   26928 Mar 17 14:37 20160317-145012_8553340569-all.mp3


------------
Code: Select all
Apache LOG

Code: Select all
[Thu Mar 17 14:21:08.453184 2016] [core:error] [pid 24973] (13)Permission denied: [client 192.168.0.246:52937] AH00035: access to /RECORDINGS/MP3/20160315-095607_8951844254-all.mp3 denied (filesystem path '/var/spool/asterisk/monitorDONE') because search permissions are missing on a component of the path, referer: http://192.168.0.201/vicidial/admin_modify_lead.php?lead_id=530&archive_search=No&archive_log=0
[Thu Mar 17 14:21:09.452529 2016] [core:error] [pid 24973] (13)Permission denied: [client 192.168.0.246:52937] AH00035: access to /RECORDINGS/MP3/20160315-095607_8951844254-all.mp3 denied (filesystem path '/var/spool/asterisk/monitorDONE') because search permissions are missing on a component of the path, referer: http://192.168.0.201/vicidial/admin_modify_lead.php?lead_id=530&archive_search=No&archive_log=0
[Thu Mar 17 14:21:10.318006 2016] [core:error] [pid 24973] (13)Permission denied: [client 192.168.0.246:52937] AH00035: access to /RECORDINGS/MP3/20160315-095607_8951844254-all.mp3 denied (filesystem path '/var/spool/asterisk/monitorDONE') because search permissions are missing on a component of the path, referer: http://192.168.0.201/vicidial/admin_modify_lead.php?lead_id=530&archive_search=No&archive_log=0
vicibox7:/var/log/apache2 #

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Fri Mar 18, 2016 7:39 am
by udy786
Add:-

Here location is default location. If you have changed recording location then change folder location.

Code: Select all
<Directory "/var/spool/asterisk/monitorDONE">
  Order Deny,Allow
  Allow from 127.0.0.1 192.168 10.10
  Options Indexes FollowSymLinks
</Directory>

Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE




Comment your previous code:-
Code: Select all
Alias /archive/ "/home/archive/"

<Directory "/home/archive">
        Options Indexes MultiViews
        AllowOverride None
        Require all granted
        <files *.mp3>
                Forcetype application/forcedownload
        </files>
</Directory>


After adding this restart/reload your web server and try to download. Still its not working then allow folder permission.

Code: Select all
chmod 755 /var/spool/asterisk/monitorDONE -R

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Sat Mar 19, 2016 6:01 am
by Merchant007
i changed to

Code: Select all


<Directory "/var/spool/asterisk/monitorDONE">
  Order Deny,Allow
  Allow from 127.0.0.1 192.168 0.0
  Options Indexes FollowSymLinks
</Directory>

Alias /RECORDINGS /var/spool/asterisk/monitorDONE
Alias /recordings /var/spool/asterisk/monitorDONE

as said in post but after restarting apache2 vicidila website is not loading , after i revert my change to old one its working again

(our network is 192.168.0.0)

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Sat Mar 19, 2016 12:52 pm
by williamconley
1) When apache logs say "permissions issue" ... it's a permissions issue.

2) Try:
Code: Select all
chmod 755 /var/spool/asterisk


3) Don't use "express" install any more. use the standard.

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Sun Mar 20, 2016 11:38 pm
by Merchant007
williamconley wrote:1) When apache logs say "permissions issue" ... it's a permissions issue.

2) Try:
Code: Select all
chmod 755 /var/spool/asterisk


3) Don't use "express" install any more. use the standard.

:P thank you , worked

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Sat May 21, 2016 8:52 pm
by cvillarreal77
i have the same problem

i have file server in another machine..

1.- first vicidial cant tranfer the recordings to the file server,, and i resolv the problem configuring the vsftpd.conf in write_enable=yes..

2.- Now the recordings are copy sussescfull to the file server , but now the recorgins in the file server are created with permisions 600 chmod and when i try to get the link http://192.168.21.201/archive/2016-05-2 ... 94-all.mp3 i cant access beacouse the apache say : error 403 access denied

can you help me please :D ?

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Mon May 23, 2016 9:11 pm
by williamconley
The ftp user may need to be added to the www user's group so the www user has permission to access the files. Or you may need to modify the vsftp configuration file umask to create the file with different permissions. Or both. Note that umask is a "reverse" mask that takes away permissions instead of giving them because programmers are smart(@sses) and like things to be simple(y complex).

It may also have to do with the folder that these files are in having the wrong permissions or ownership.

Experiment with one file and the folders until that one file is accessible, then see if you can modify the system to make them all that way from the beginning. Note that your apache web server may have a more detailed error message (the apache server on the ftp server, since that's the one being asked for the file).

Or you can post the owner/permissions of the recording files and the folders in which they reside, and the mask/umask/user settings for vsftp and we may be able to help you get there.

Re: Vicibox 7 Issue accessing recording from vicidial web in

PostPosted: Fri Dec 16, 2016 8:20 am
by bedis
https://httpd.apache.org/docs/2.4/fr/upgrading.html

so add this in http.conf

<Directory "/var/spool/asterisk/monitorDONE">
Require all granted
Options Indexes FollowSymLinks
</Directory>

Alias /RECORDINGS /var/spool/asterisk/monitorDONE