3CX Archive issues with SP2

Status
Not open for further replies.

Chris Ellsaesser

Platinum Partner
Advanced Certified
Joined
Jan 7, 2019
Messages
16
Reaction score
23
Hi

The archive issues with SP2 look to be resolved now with the PWA update, but for some of my systems there are still archived recordings that can be found with an FTP client but 3CX is unable to see them. Looking at it the affected files have the extensions' names as [First Last] while the working recordings use [First%20Last].

A small script that'll fix this is below. I highly recommend you check the commands over and make sure you're happy with what you do before you run them! Using them wrong could affect system health. This needs to run on your archive FTP/SFTP server, NOT on your 3CX server! The rename package is used to make the change a quick one-liner.

Find affected files:
cd /your/3cx/recordings/archive/location
find . -name "*\ *.wav" > affectedrecordings.wav
cat affectedrecordings.wav

Fixing affected files:
find /your/3cx/recordings/archive/location -name "*\ *.wav" -exec rename 's/(.*)\ (.*)/$1\%20$2/' {} ";"

For extensions with multiple spaces in the name you can rerun the command.
 
I would highly recommend somehow limiting any commands you run to alter the filenames to only affect files, that were written/created after the installation of V18 U2 that caused this. No need to risk older files being edited as those should work fine now after installing the PWA update...

Also, in case you need to revert, I would suggest making this into a proper script where whatever file fits the criteria, you write to a log file what the original name was and what you changed it to, so in case you need to undo any change you made, you have a log, and you can create a new "undo script" based on that.
 
Status
Not open for further replies.

Forum statistics

Threads
111,974
Messages
590,083
Members
164,901
Latest member
Silent_Guru