Question on the order of the outbound routes

I have a question on the order of the outbound routes, does it check them in order, and then proceed to the next one, only if there is no match?

IE.

If I want to blocked pay per minute numbers like 900 and 976 do I need to have a route to match:
1900NXXXXXX
1976NXXXXXX
and then go to a fake trunk, or require a password, above my normal route?

IE.
In route1 I have:
NXXNXXXXXX
In route 2 I have
1900NXXXXXX
1976NXXXXXX

Will 1-900-333-4444 match on route 1, and goto the trunk route 1 uses, without asterisk even checking to see if it matches route 2? Or will it know to look at all routes and match the most specific pattern?

TIA!

Quite correct, as the system will take the first matching trunk.

There’s a few posts on this, but here’s one that I prepared earlier…

http://www.freepbx.org/forum/freepbx/tips-and-tricks/tip-how-to-block-staff-guests-from-dialling-1900-x-numbers

Thanks, great post!