Script to Convert files to MP3 & Change Storage Location

General and Support topics relating to ViciDialNow and GoAutoDial ISO installers

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

Script to Convert files to MP3 & Change Storage Location

Postby vijaymuddu » Tue Jul 15, 2014 9:58 am

hi everybody
I am vijay & new to this forum

I want some help to setup my goautodial 2.1 server

I want the call recording to be recorded in a particular folder eg: \var\www\html\calls

questions
where can i change the settings of folder location
I want files to be converted in to filename.mp3 currently its converting in to filename-all.mp3 format
or
I want to save the converted mp3 files to a different location & filename.mp3 format

please can anybody help me with this issue

Thanks
server config: i3,4gb, Centos 6.9 64bit | Version: 2.14b0.5 | Schema: 1528 | revision 2928| Asterisk 1.8.0 | E1-card
Thanks
Vijay Muddu
vijaymuddu
 
Posts: 106
Joined: Mon Jul 14, 2014 9:38 am
Location: India

Re: Script to Convert files to MP3 & Change Storage Location

Postby ivschakravarthi » Tue Jul 22, 2014 12:41 am

lame should be installed in your machine

In your crontab ,enable the following

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
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

open the program /usr/share/astguiclient/AST_CRON_audio_2_compress.pl
In that file under MP3 compression,you will find a line
`$lamebin -b 16 -m m --silent "$dir2/$ALLfile" "$dir2/MP3/$MP3file"`;
Comment it
and write as follows
`$lamebin -b 16 -m m --silent "$dir2/$ALLfile" "/var/www/html/RECORDINGS/MP3/$MP3file"`;
ivschakravarthi
 
Posts: 81
Joined: Wed Jun 20, 2012 12:47 am
Location: India

Re: Script to Convert files to MP3 & Change Storage Location

Postby vijaymuddu » Sun Aug 03, 2014 11:09 am

Thanks a lot for your reply

I followed your script but the files are getting saved as example 20140803-153856_9012867019_FFFU_megarima-all.mp3

i want to remove -all from the file name, like 20140803-153856_9012867019_FFFU_megarima.mp3

please can you help me with this..
i have a dailer configured by someone, they have created some script that does this but i am not able to figure out the script location

Also the files in.wav & out.wav are automatically stored in a folder with current date eg: 2014-08-03
Then the in out files are converetd on to .wav file in 20140803-153856_9012867019_FFFU_megarima.wavformat
i can give you teamviwer to check if you can figure it out

my skype id is vijaymuddu you can add me .

Please
server config: i3,4gb, Centos 6.9 64bit | Version: 2.14b0.5 | Schema: 1528 | revision 2928| Asterisk 1.8.0 | E1-card
Thanks
Vijay Muddu
vijaymuddu
 
Posts: 106
Joined: Mon Jul 14, 2014 9:38 am
Location: India


Return to ViciDialNow - GoAutoDial

Who is online

Users browsing this forum: No registered users and 40 guests