Changeset 7587

Show
Ignore:
Timestamp:
04/27/09 00:53:22 (4 years ago)
Author:
xrobau
Message:

AGI's need |'s rather than ,'s.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • contributed_modules/modules/routepermissions/agi-bin/checkperms.agi

    r7586 r7587  
    4040if ($res[0] === "NO") { 
    4141  if ($res[1] != "") { 
    42     $AGI->exec_goto($res[1]); 
     42    $AGI->exec_goto(gotofix($res[1])); 
    4343    exit; 
    4444  } else { 
    4545    $res = sql("SELECT faildest FROM routepermissions WHERE exten='-1'", "getRow"); 
    4646    if ($res[0] != "" ) { 
    47       $AGI->exec_goto($res[0]); 
     47      $AGI->exec_goto(gotofix($res[0])); 
    4848      exit; 
    4949    } else { 
     
    9797} 
    9898 
     99function gotofix($goto) { 
     100  return strtr($goto, ",", "|"); 
     101} 
     102 
    99103?>