MOH During AGI

Hi I was wondering if anyone knows a way to play MOH while the AGI script executes. I don’t really have a need to farm out the AGI to another server via FASTAGI because I need to keep the people on the line to make sure the script finishes with no errors. You know something like “Please enjoy this extra loud death metal while you script finishes.” :wink:

Thanks!!

Something like this should work:

$AGI->set_music(‘on’, ‘default’)
… Some long process…
$AGI->set_music(‘off’, ‘default’)