[Asterisk-Users] ASTCC

Nicolás Gudiño asternic at gmail.com
Tue Dec 14 06:04:08 MST 2004


Hi,

> 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? 
>  

Try with:

^01154.*

being 54 the country code for Argentina and 011 the internacional prefix.

-- 
Nicolás Gudiño
Buenos Aires - Argentina



More information about the asterisk-users mailing list