Record calls transferred to custom extension

We have created some custom extensions in the file extensions_custom.conf that allow an agent to transfer a call to that extension, it waits for silence and then plays a message. This is for when an agent calls a customer and gets to their voicemail. Rather than having to read a script, we have it pre-recorded and it then plays.

When it comes to the recordings, as soon as the agent hits the transfer, the recording stops and doesn’t record the message being played to the voicemail. We would like to be able to record that to demonstrate what message was left.

Here’s an example of one of the custom extensions.

------start snip------
[from-internal-custom]
exten =>33,1,Playback(silence/1)
exten =>33,n,WaitForSilence(2000)
exten =>33,n,Playback(custom/wavfile)
exten =>33,n,Hangup()

------end snip------

This is running on FreePBX 13.0.192.9