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