Page 1 of 1
Recording Path Issue
Posted:
Mon Apr 23, 2018 9:10 am
by kalaula2
Hi guys, I have issue on my vicidial recordings path. if you access it via ipaddress/RECORDINGS/ it will return access forbidden but it works in ipaddress/recordings/.
but when i try to download the recording of the call on the modify lead page or user stats page it doesnt work as it uses the /RECORDINGS/ path no /recordings/
the system was installed using vicibox8
Please help.
Thanks
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 9:33 am
by blackbird2306
There is vicirecord.conf file in "/etc/apache2/conf.d/" directory.
Look into first line, it should be like this:
- Code: Select all
Alias /RECORDINGS/ "/var/spool/asterisk/monitorDONE/"
Change it to upper-case, if it starts with Alias /recordings/...! Then restart apache.
- Code: Select all
service apache2 stop
service apache2 start
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 9:34 am
by mflorell
the locations are stored in the database like that. You should modify the /etc/astguiclient.conf file to use "recordings" instead of "RECORDINGS", then make sure new recordings links made after that conf file change are working properly, then you can do something like this in MySQL to change the old recordings:
UPDATE recording_log SET location = REPLACE(location, '/RECORDINGS/', '/recordings/') WHERE location LIKE ('%/recordings/%');
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 11:04 am
by kalaula2
Thank you for your response guys. will try and will let you know with the results ^_^
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 11:11 am
by kalaula2
Change it to upper-case, if it starts with Alias /recordings/...! Then restart apache.
How about it it starts with Alias /RECORDINGS/...? Should I change it to /recordings/...? I need to access the recordings on /recordings/ so sould I change it that way?
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 4:37 pm
by blackbird2306
No you shouldn't change it. I misunderstood the problem. The error was "access forbidden" and not "not found".
So try this:
- Code: Select all
chmod 755 /var/spool/asterisk
chmod 755 /var/spool/asterisk/monitorDONE
Then post us the configuration file "vicirecord.conf". Strangely it works with "/recordings/", but not for "/RECORDINGS/". The reason for that might be in this config file.
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 5:24 pm
by kalaula2
Thank you for the reply blackbird2306... its working now.
indeed the error is caused by a permision. it worked after i run this
chmod 755 /var/spool/asterisk
chmod 755 /var/spool/asterisk/monitorDONE -R
Re: Recording Path Issue
Posted:
Mon Apr 23, 2018 5:35 pm
by kalaula2
still have an issue when checked on the list via ipaddress/vicidial/admin_modify_lead.php?lead_id=636476&archive_search=No&archive_log=0 and clicked the recording link on the RECORDINGS FOR THIS LEAD it returs "not a valid recording"