This modification allows you to create a 'stealth' autoattendant. Asterisk picks up the line but keeps playing the ringing sound. At home i set the timeout to '3' and you can pick from the ivr menu during the first ring. After that it rings the house as normal. This way i can access my home switch (DISA, etc.) without having people that call me have to go thru a IVR when they call.
In extensions.class.php, add this function.
class ext_ringing extends extension {
function output() {
return "Ringing";
}
}
In page.ivr.php, add this line where it builds the Announcement dropdown list.
echo '<option value="_stealth_"'.($annmsg == '_stealth_' ? ' SELECTED' : '') . '>'._("Stealth - Ringing")."</option>";
In functions.inc.php, change
$ext->add($id, 's', '', new ext_background($announcement));
to
if ($announcement == '_stealth_')
$ext->add($id, 's', '', new ext_ringing);
else
$ext->add($id, 's', '', new ext_background($announcement));
Disclaimer: I'm not an asterisk expert, this works but it would probably be more efficient if it changed more of the configuration.. but like i said, it works for me :-)