Saving raw G.711 PCMU data from voicemail?

Is it possible to get Asterisk to save the raw G.711 PCMU data of a call instead of saving it as a wave file? I have to do some processing on the raw data and it would be much simpler if I didn’t have to convert it back from WAV format.

Thanks for any help!

Make the extension part of the filename be the same as you would for a raw Mu-Law voice-announcement, or music on hold.

Sorry, I answered for monitoring. For voicemail, there is a format parameter in voicemail.conf.