MixMonitor and Voice Activity Detection

Hi,

I am using an agi script to record audio on a call using the command:

$AGI->exec(‘MixMonitor’,“test.wav”);

It records everything fine but if i am using a VoIP provider with Voice Activity Detection turned on MixMonitor will not record the silence. So if i am recording 1 minute of audio, MixMonitor will get a recording of maybe 55 seconds because silence has being stripped out.

I am using asterisk 1.6.0.17.

Would anybody know of a way to get the recording to include silence?

Thanks for any help.