Nik,

Right now there is mod_vmd.  It sets the channel variable vmd_detect if it detects a beep.  If a beep is detected it will set vmd_detect=TRUE.  If no beep is detected then it won't do anything.

Example of usage as follows (with the outcome being hangup if answering machine is detected):

<extension name="110">
  <condition field="destination_number" expression="^110$">
    <action application="answer"/>
    <action application="vmd"/>
    <action application="playback" data="$SOMEFILE"/>
    <action application="transfer" data="111 xml $context/>
  </condition>
</extension>

<extension name="111">
  <condition field="destination_number" expression="^111$"/>
  <condition field="${vmd_detect}" expression="^TRUE">
    <action application="hangup"/>
    <anti-action application="transfer" data="112 xml $context"/>
  </condition>
</extension>

And Ken Rice also has a mod that can be licensed that probably is a better solution and works much better.  

Hope this helps.

SDR