<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2523" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a problem with ASTCC. When I create all my 
routes, I not able to get the destination pattern I desire. I see it come up, 
but ASTCC seems to select the first available pattern, and not necessarily the 
exact one I want. I&nbsp; found the MYSQL statement in astcc.agi:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>SELECT * FROM routes WHERE "$number" RLIKE pattern 
ORDER BY LENGTH(pattern) DESC;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>This returns the desired route, but also other 
routes that may be first in the select, and ASTCC uses that instead fo the exact 
matching route.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>How do I get ASTCC to select the routes starting at 
the begining of $number and not just anything that matches an expression in 
$number?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks for your help.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Voipcarib</FONT></DIV></BODY></HTML>