Changeset 7714 for contributed_modules/modules/routepermissions/agi-bin
- Timestamp:
- 05/08/09 20:11:32 (4 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 {
