freePBX process flow

I am not quite sure the freePBX process flow. Here is my understanding for the outbound flow:
extension -> outbound route -> trunk -> outside
For the dial plan, both outbound route and trunk has some outbound rules, which one is important?

Both are important. Outbound route is processed first so the common approach is to strip digits in the route and perform any adds in the trunk.