Ticket #3846: enumlookup.agi.diff
| File enumlookup.agi.diff, 1.0 kB (added by drmessano, 3 years ago) |
|---|
-
enumlookup.old
old new 40 40 $AGI = new AGI(); 41 41 $lookup = get_var( $AGI, "DIAL_NUMBER" ); 42 42 43 $enums = Array( 44 'e164.org', 45 //'e164.arpa', 46 //'e164.info', 47 ); 43 $enums = Array('e164.org','e164.arpa','e164.info'); 48 44 49 45 // Go through the ENUM providers and look for the number. 50 46 … … 78 74 foreach ($arr as $key => $row) { 79 75 if (eregi('SIP|IAX', $row['tech'])) { 80 76 $URI = $row['URI']; 81 $dialstr .= $nextURI[$URI]." |";77 $dialstr .= $nextURI[$URI]."%"; 82 78 } 83 79 } 84 80 } … … 90 86 function get_dig($lookup, $enum) { 91 87 global $AGI; 92 88 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); 94 90 $arpa = ""; 95 91 for ($i = 0; $i < strlen($lookup); $i++) { 96 92 $arpa = $lookup[$i].".".$arpa;
