Changeset 7714
- Timestamp:
- 05/08/09 19:11:32 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
contributed_modules/modules/routepermissions/agi-bin/checkperms.agi
r7596 r7714 47 47 if ($res[0] === "NO") { 48 48 if ($res[1] != "") { 49 $AGI->exec_goto(gotofix($res[1])); 49 $arg2 = $res[1].get_var($AGI, "ARG2"); 50 $AGI->set_variable('ARG2',$arg2); 51 $AGI->exec_goto(gotofix("reroute,1")); 50 52 exit; 51 53 } else { 52 54 $res = sql("SELECT faildest FROM routepermissions WHERE exten='-1'", "getRow"); 53 55 if ($res[0] != "" ) { 54 $AGI->exec_goto(gotofix($res[0])); 56 $arg2 = $res[0].get_var($AGI, "ARG2"); 57 $AGI->set_variable('ARG2',$arg2); 58 $AGI->exec_goto(gotofix("reroute,1")); 55 59 exit; 56 60 } else { contributed_modules/modules/routepermissions/functions.inc.php
r7604 r7714 56 56 $ext->splice($context, 's', 1 ,new ext_agi('checkperms.agi')); 57 57 $ext->add($context, 'barred', '', new ext_noop('Route administratively banned for this user.')); 58 $ext->add($context, 'reroute', '', new ext_goto('1','${ARG2}','from-internal')); 59 60 $context="macro-dialout-dundi"; 61 $ext->splice($context, 's', 1 ,new ext_agi('checkperms.agi')); 62 $ext->add($context, 'barred', '', new ext_noop('Route administratively banned for this user.')); 63 $ext->add($context, 'reroute', '', new ext_goto('1','${ARG2}','from-internal')); 64 65 $context="macro-dialout-enum"; 66 $ext->splice($context, 's', 0 ,new ext_agi('checkperms.agi')); 67 $ext->add($context, 'barred', '', new ext_noop('Route administratively banned for this user.')); 68 $ext->add($context, 'reroute', '', new ext_goto('1','${ARG2}','from-internal')); 58 69 59 70 // Insert the ROUTENAME into each route
