Changeset 7566

Show
Ignore:
Timestamp:
03/31/09 10:29:37 (4 years ago)
Author:
xrobau
Message:

Seems to be working now. It has some issues, due to asterisk limitations, that will need to be worked around later.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/routepermissions/functions.inc.php

    r7563 r7566  
    4141                rp_applyhooks(); 
    4242                $currentcomponent->addprocessfunc('rp_configprocess', 5); 
     43        } 
     44} 
     45 
     46// This MUST be "TheNameOfTheModule_hookGet_config" to be called when a reload (yellow bar) is clicked. 
     47function routepermissions_hookGet_config($engine) { 
     48        global $ext; 
     49        global $version; 
     50        switch($engine) { 
     51                case "asterisk": 
     52      $context="macro-dialout-trunk"; 
     53      $ext->splice($context, 's', 1 ,new ext_agi('checkperms.agi')); 
     54      $ext->add($context, 'barred', '', new ext_noop('Route administratively banned for this user.')); 
     55                break; 
    4356        } 
    4457}