Download call recordings

Hi.

Is there a way to download the call recordings from the PABX via script or schedule?

Thank you

Hello Alan.

Yes, we suggest to use Rsync for that. Please see below instructions to use that with a Windows PC.

Download the free version from here:
https://www.itefix.net/content/cwrsync-free-edition

Create a folder C:\cwrsync from where the application will run.
Unzip the file into a temporary folder and copy it to c:\cwrsync

You will need now to create a SSH key to automatically connect to the box.
Using the prompt type the commands below:

 SET CWRSYNCHOME=C:\CWRSYNC
 SET HOME=%userprofile%
 SET PATH=%CWRSYNCHOME%;%PATH%
 mkdir %HOME%/.ssh
 ssh-keygen -t rsa -N ''

This should create 2 files into your home folder .ssh

Edit the file id_rsa id_rsa.pub with wordpad and copy it’s contents.

You have to add this to the file /root/.ssh/authorized_keys in the PABX.

Very Important. Do not Remove or edit anything on that file. Just add your text on the bottom

Once you have this done, you can create a script to run Rsync. (Remember to change IP address)

 SET CWRSYNCHOME=c:\CWRSYNC
 SET CYGWIN=nontsec
 SET HOME=%userprofile%
 md c:\temp\ 2>NUL
 rsync.exe -a --chmod u+rwx root@10.0.0.1:/var/spool/asterisk/monitor/ /cygdrive/c/temp/

This script will create a folder c:/temp on your PC and synchronize the contents with the PABX.
You can also add this script to Windows Scheduler and run it regularly.

Hope that helps.

Augusto