bar top left
bar top right
left curve
right curve
Welcome, Guest

Change call recording names and sort into folders
(1 viewing) (1) Guest
Go to bottom
Post Reply
Post New Topic
Page: 1234
TOPIC: Change call recording names and sort into folders
*
#75542
Re:Change call recording names and sort into folders 2 Years, 2 Months ago Karma: 7
The problem is that the box in the GUI will not take the entire instruction. It keeps lopping off the end. This is all I can get in the box:
/var/lib/asterisk/bin/sortcalls.sh ^${CALLFILENAME}.^{MIXMON_FORMAT} ^{MIXMON_DIR}`/usr/bin/mysql -u root -peLaStIx.2oo7 -N -B -D asteriskcdrdb -e "SELECT calldate,'From:',src,'To:',dst,'' FROM cdr WHERE uniqueid = ^{UNIQUEID}"|sed -s s'/\s/_/ g'`.^{MIXMO
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
franklin
Senior Boarder
Posts: 254
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#75544
Re:Change call recording names and sort into folders 2 Years, 2 Months ago Karma: 7
dicko, Sorry for the soap opera. All I want to do is have the recordings in /monitor/ show up with the date/time/"From"/"To" format. I don't want these things going to a Web page, so the simlinking to /var/www/html/rec does me no good. I will WinSCP these to another server, and eventually set up an auto cron job to upload to and FTP when I get there. The problem I am having is, as I said one post above, is the field is lopping off the end of the sed command. Trying to find the file where I might be able to enter this manually.

Maybe paid support?
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
franklin
Senior Boarder
Posts: 254
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#75545
Re:Change call recording names and sort into folders 2 Years, 2 Months ago Karma: 156
I'm sorry I guess you missed my:


www.elastix.org/en/component/kunena/29-a...ibuting-here---.html

regards

dicko

Maybe PaloSanto can help you.
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
dicko
Ethically, I no longer support PaloSanto, Sorry.
Platinum Boarder
Posts: 4100
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Not available Birthday: 01/21
There are other solutions!!
Reply Quote
 
#75561
Re:Change call recording names and sort into folders 2 Years, 2 Months ago Karma: 7
Well, I posted at www.freepbx.org/forum/freepbx/users/run-after-record

I'm hearing that song from Spiderman II, where that Asian girl is playing a little guitar and singing that song -- after Spiderman goes into seclusion:

Spiderman, Spiderman, where have you gone, Spiderman.

Substituting our dearly departed's name, of course. If you're not posting here, perhaps you can give it a look at freepbx.org?

Thanks, dicko.

Post the treatise and start the next Reformation!
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
franklin
Senior Boarder
Posts: 254
graphgraph
User Offline Click here to see the profile of this user
Reply Quote
 
#75858
Re:Change call recording names and sort into folders 2 Years, 2 Months ago Karma: -1
to FRANKLIN
Did you actually got it working ,all files are saved in day folder now?
Can you see it from web in pbx>monitoring?
Please let me know
Here some FTP upload sync way for you -))


dicko wrote:
ftp transfers are somewhat hard to script, you should probably wrap the session with 'expect'

basically a recipe I offer:

yum -y install expect;while ! false ; do man expect;man autoexpect;read -p "get it yet ?" ;done

then wait for brain to kick in . . . .

regards

dicko


Look like lftp may sute you to
just go
yum install lftp
creat file sync in home dir
nano ftpsync

lftp -u yourFTPusername,yourpassword ftp.provider.com/MyLinuxPC/
mirror -R -v /var/spool/asterisk/monitor/ .
mirror -R -v /var/spool/asterisk/voicemail/.
quit

then create MyLinuxPC folder in your ftp dir

after that you can run it with
lftp -f ~/ftpsync

All of the files in your chosen folder will be uploaded to FTPdrive. When you next run the command, only the changed files will be uploaded. When you’re happy with the script and once the first upload has completed, you can add the script to your crontab to schedule it to run every hour. Just type the command:

crontab -e

And add the following line to your crontab file:

0 * * * * lftp -f ~/ftpsync

This will tell your system to run the script every hour, on the hour, so your files are being constantly backed up. Make sure you’ve completed that initial upload first though – as if your upload takes more than an hour then you’ll end up with two versions of lftp running and both syncing the same files.

taken from Links hidden for unregistered users. Login or register Here

looks like a good solution may be the one you looking for
Enter code here   
Please note: although no board code and smiley buttons are shown, they are still usable.
ccccp
Fresh Boarder
Posts: 29
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/04/06 15:08 By ccccp.
Reply Quote
 
Go to top
Post Reply
Post New Topic
Page: 1234
Moderators: Bob, jgutierrez

elastix

Protected by Spam Fighter