System recordings recorded via feature code are not converted

Hello everyone
Our employees should be able to record vacation announcements themselves.
However, when they re-record a system recording by phone using feature code, it is only saved in the codec used (in our case g722), but is not converted to the other formats. If I upload the sound file via the web interface, everything works as it should.
We use Freepbx 16.0.40.13 with asterisk 20.7.0
Any ideas how I could solve this problem?

Thanks in advance,
Martin Germann

Don’t use feature codes? The GUI let’s you do a selection of formats to convert to. That is because it is a web interface. Recording over a voice channel the recording is in the format of the channels codec.

Outside of that you would need to rewrite the dialplan to call on a script to handle the conversion. Keep in mind, that would be a blocking call meaning the call would not continue until the script is fully executed. You could get around that with a hangup handler though.