Show
Ignore:
Timestamp:
04/18/06 15:25:24 (7 years ago)
Author:
rcourtna
Message:

retrieve_conf will now also execute any modulename_hookGet_config functions. These functions are executed after the rest of the dialplan is generated in memory, and are typically used to execute $extensions->splice() commands

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/bin/retrieve_conf

    r1410 r1660  
    258258} 
    259259 
     260// now run all of the *_hookGet_config functions, which allows the generated dialplan to be modified (ie: $ext->splice()) 
     261$engine = "asterisk"; 
     262if(isset($active_modules) && is_array($active_modules)){ 
     263  foreach($active_modules as $module) { 
     264    $funcname = $module."_hookGet_config"; 
     265    if (function_exists($funcname)) {  
     266      $funcname($engine); 
     267    } 
     268  } 
     269} 
     270 
    260271// extensions_additional.conf 
    261272// create the from-internal-additional context so other can add to it