Changeset 1720

Show
Ignore:
Timestamp:
04/26/06 17:00:32 (7 years ago)
Author:
rcourtna
Message:

perform a check for the findmefollow module when generating dialplan - we need to find a way to avoid the need for these types of edits.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.1/ivr/functions.inc.php

    r1627 r1720  
    123123          $id = "ivr-".$item['ivr_id']; 
    124124          $details = ivr_get_details($item['ivr_id']); 
    125            
     125 
    126126          $announcement = (isset($details['announcement']) ? $details['announcement'] : ''); 
    127            
    128           if (!empty($details['enable_directdial']))  
     127 
     128          if (!empty($details['enable_directdial'])) { 
     129            // MODIFIED (PL) 
     130            // if findmefollow is active, include it before ext-local since any 
     131            // defined Follow-Me group should take precedence over the actual extension. 
     132            if (isset($active_modules['findmefollow'])) { 
     133              $ext->addInclude($item[0],'ext-findmefollow'); 
     134            } 
    129135                                          $ext->addInclude($id,'ext-local'); 
     136          } 
    130137          // I'm not sure I like the ability of people to send voicemail from the IVR. 
    131138          // Make it a config option, possibly?