This script is in production to send recordings from the duty supervisor phone line to the #dutysups channel on our Slack workspace. It was taken from dslauter's very helpful comment on the FreePBX forums and modified to fit our needs.
This is provided by RPI Ambulance under the MIT License.