Recordings: how to change WebLink url

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

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

Recordings: how to change WebLink url

Postby Iulian.c » Tue Aug 20, 2013 1:46 pm

Hello,
GoAutodial CE ... i don't know the version
Vicidial VERSION: 2.4-309a
BUILD: 110430-1642
© 2011 ViciDial Group
Asterisk Version: 1.4.39.1-vici

I am new on this forum and i have a question about how to change the Recordings URL in the User Stats from server-ip/RECORDINGS/MP3/CUSTPHONE_FULLDATE_AGENT-all.mp3 to server-ip/RECORDINGS/ORIG/CUSTPHONE_FULLDATE_AGENT-all.wav because the quality of the MP3 recording is poor and we want to use the original recordings that are stored in the ORIG folder and i looked everywhere on how to make vicidial to look for the records in the ORIG folder not in the MP3 folder and i didn't find anything.

Thanks.
Iulian.c
 
Posts: 3
Joined: Tue Aug 20, 2013 1:18 pm

Re: Recordings: how to change WebLink url

Postby gardo » Tue Aug 20, 2013 10:27 pm

Welcome to the Vicidial forums! First of all running "yum update -y" is highly recommended. This will download and install updated software packages to make your GOautodial system current.

By default calls are recorded in WAV (if you have call recordings enabled in the campaign) and transcoded to MP3 by the following scripts:

Code: Select all
/usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
/usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3


Run "crontab -l":

Code: Select all
crontab -l


The first 6 lines are responsible in transcoding your recordings to MP3:

Code: Select all
### recording mixing/compressing/ftping scripts
0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_mix.pl --MIX
#0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57 * * * * /usr/share/astguiclient/AST_CRON_audio_1_move_VDonly.pl
1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3
#2,5,8,11,14,17,20,23,26,29,32,35,38,41,44,47,50,53,56,59 * * * * /usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --GSM


If you want the recordings to stay as WAV files only, comment the 5th line:

Code: Select all
#1,4,7,10,13,16,19,22,25,28,31,34,37,40,43,46,49,52,55,58 * * * * /usr/share/astguiclient/AST_CRON_audio_2_compress.pl --MP3


The original WAV files are in:

Code: Select all
/var/spool/asterisk/monitorDONE/ORIG


They are deleted after 14 days by default.
http://goautodial.com
Empowering the next generation contact centers
gardo
 
Posts: 1926
Joined: Fri Sep 15, 2006 10:24 am
Location: Manila, 1004

Re: Recordings: how to change WebLink url

Postby Iulian.c » Wed Aug 21, 2013 7:35 am

Hello,

Thank you for the reply it worked like you said by commenting the line in the crontab, and i have another question if i connect an external HDD and i make a cron schedule to move the recordings in the .... mnt/usb/Recordings can i make vicidial look in that folder to display in Web interface link to the new path?

Thanks
Iulian.c
 
Posts: 3
Joined: Tue Aug 20, 2013 1:18 pm

Re: Recordings: how to change WebLink url

Postby Iulian.c » Thu Aug 22, 2013 3:54 am

Hy guys,

Regarding to my question i did some research and i figured out how to change the Web link URL for my recordings so this is what i did:

in /etc/astguiclient.conf i modified the path to monitorDONE:

# Paths used by astGUIclient
PATHhome => /usr/share/astguiclient
PATHlogs => /var/log/astguiclient
PATHagi => /var/lib/asterisk/agi-bin
PATHweb => /var/www/html
PATHsounds => /var/lib/asterisk/sounds
PATHmonitor => /var/spool/asterisk/monitor
PATHDONEmonitor => /mnt/usb/monitorDONE - (it was /var/spool/astersik/monitorDONE)

then in /etc/httpd/conf.d i modified the path in vicidial_recordings.conf

<Directory "/mnt/usb/monitorDONE"> - it was /var/spool/astersik/monitorDONE
Order Deny,Allow
Deny from all
Allow from X.X.X.X
Options Indexes FollowSymLinks

</Directory>

Alias /RECORDINGS /mnt/usb/monitorDONE - same here it was /var/spool/astersik/monitorDONE
Alias /recordings /mnt/usb/monitorDONE - it was /var/spool/astersik/monitorDONE


and in /etc/httpd/conf.d i modified the path in goautodial_httpd.conf

<Directory "mnt/usb/monitorDONE"> - it was /var/spool/astersik/monitorDONE
Order Deny,Allow
Deny from all
Allow from x.x.x.x
Allow from x.x.x
Allow from x.x.x
Options Indexes FollowSymLinks
</Directory>
Alias /RECORDINGS /mnt/usb/monitorDONE - it was /var/spool/astersik/monitorDONE
Alias /recordings /mnt/usb/monitorDONE - it was /var/spool/astersik/monitorDONE

After all modification were made i did a Restart of Apache

And now all my recording go to the external HDD and can be accessed form the Web interface of vicidial.

can you tell me if what i did is a good modification?


Thanks
Iulian.c
 
Posts: 3
Joined: Tue Aug 20, 2013 1:18 pm

Re: Recordings: how to change WebLink url

Postby DomeDan » Thu Aug 22, 2013 7:55 am

If it works then its all good :wink:
but I would probably just edit fstab to mount the drive directly on /var/spool/astersik/monitorDONE
Vicidial Partner. Region: Sweden/Norway.
Does Vicidial installation, configuration, customization, add-ons, CRM implementation, support, upgrading, network-related, pentesting etc. Remote and onsite assistance.
Email: domedan (at) gmail.com
DomeDan
 
Posts: 1226
Joined: Tue Jan 04, 2011 9:17 am
Location: Sweden


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 110 guests