I added module hook support to the IVR module. I also made a change to allow the dial plan to call out to additional contexts so that other modules can intercept direct dialed extensions.
Index: page.ivr.php
===================================================================
--- page.ivr.php (revision 2270)
+++ page.ivr.php (working copy)
@@ -145,6 +145,12 @@
<td><input type="checkbox" name="ena_directdial" <?php echo $ivr_details['enable_directdial'] ?>></td>
</tr>
<?php
+ // implementation of module hook
+ // object was initialized in config.php
+ global $module_hook;
+ echo $module_hook->hookHtml;
+?>
+<?php
$annmsg = isset($ivr_details['announcement'])?$ivr_details['announcement']:'';
if(function_exists('recordings_list')) { //only include if recordings is enabled ?>
<tr>
Index: functions.inc.php
===================================================================
--- functions.inc.php (revision 2270)
+++ functions.inc.php (working copy)
@@ -127,6 +127,8 @@
$announcement = (isset($details['announcement']) ? $details['announcement'] : '');
+ $ext->addInclude($id, "ivr-additional");
+
if (!empty($details['enable_directdial'])) {
// MODIFIED (PL)
// always include ext-findmefollow whether or not the module is currenlty