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 _______________________________________________ Asterisk-Users mailing list [EMAIL PROTECTED] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
