Ticket #3846: enumlookup.agi.diff

File enumlookup.agi.diff, 1.0 kB (added by drmessano, 3 years ago)
  • enumlookup.old

    old new  
    4040$AGI = new AGI(); 
    4141$lookup = get_var( $AGI, "DIAL_NUMBER" ); 
    4242 
    43 $enums = Array( 
    44   'e164.org',  
    45   //'e164.arpa',  
    46   //'e164.info', 
    47 ); 
     43$enums = Array('e164.org','e164.arpa','e164.info'); 
    4844 
    4945// Go through the ENUM providers and look for the number. 
    5046 
     
    7874    foreach ($arr as $key => $row) { 
    7975      if (eregi('SIP|IAX', $row['tech'])) { 
    8076        $URI = $row['URI']; 
    81         $dialstr .= $nextURI[$URI]."|"; 
     77        $dialstr .= $nextURI[$URI]."%"; 
    8278      } 
    8379    } 
    8480  } 
     
    9086function get_dig($lookup, $enum) { 
    9187  global $AGI; 
    9288 
    93   $AGI->verbose("Looking up $lookup on $enum via shell command DIG",3);; 
     89  $AGI->verbose("Looking up $lookup on $enum via shell command DIG",3); 
    9490  $arpa = ""; 
    9591  for ($i = 0; $i < strlen($lookup); $i++) { 
    9692    $arpa = $lookup[$i].".".$arpa;