[Asterisk-Users] ASTCC
VoIPCarib
voipcarib at hotmail.com
Mon Dec 13 23:13:03 MST 2004
Hello all,
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 found the MYSQL statement in astcc.agi:
SELECT * FROM routes WHERE "$number" RLIKE pattern ORDER BY LENGTH(pattern) DESC;
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.
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?
Thanks for your help.
Voipcarib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20041214/51a9691d/attachment.htm
More information about the asterisk-users
mailing list