On Monday 04 Apr 2011, Asterisk User wrote: > Hello all, I am trying to figure out the logic in on prefix matching for > Asterisk 1.4.5. I want to be able to pass all international calls EXCEPT > calls to 011870, 01137455 and so on.
Asterisk's default behaviour is always to try the hardest-to-match expression first (i.e. the exact extension number). If there is no match there, it then tries progressively easier-to-match expressions; only ever trying something like _. if nothing else matched. (Compare the rules of poker when wild cards are introduced: a "natural" hand beats an otherwise-equivalent hand containing wild cards.) -- AJS Answers come *after* questions. -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
