Ticket #1096 (closed Patches: invalid)

Opened 5 years ago

Last modified 5 years ago

Added module hook support to IVR

Reported by: iotarob Assigned to: wozto1s
Priority: minor Milestone: 2.2
Component: IVR Version:
Keywords: Cc:
Confirmation: SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

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

Attachments

ivh-hook.patch (1.1 kB) - added by iotarob on 08/21/06 02:11:53.

Change History

08/21/06 02:11:53 changed by iotarob

  • attachment ivh-hook.patch added.

08/21/06 07:14:02 changed by gregmac

  • owner changed.
  • type changed from Bugs to Patches.
  • component changed from - choose - to IVR Module.
  • milestone set to 2.2.

09/07/06 05:08:02 changed by RobThomas

  • owner set to wozto1s.

Mmmm. Shouldn't this be part of wozto1s' hooks stuff?

12/03/06 12:07:47 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to invalid.

I'm closing this because 1) it should be part of the/a proper hook mechanism and 2) because it is old enough that I am concerend the patch probably does not work any longer (even though I have not tested it).

01/08/07 13:46:44 changed by

  • milestone deleted.

Milestone 2.2 deleted

01/08/07 15:14:33 changed by vgster

  • milestone set to 2.2.