Thank you Very much for your explanaition...
The flexibility of yate is great, but certanly raises questions :-)
The regfile module is a routing module. When call.route is handled and called party number indicates a registered user the module will return its location (target). Routing process stops. No other module will handle call.route.
If you want to handle the call.route in regexroute just lower its call.route priority (see the 'route' parameter in [priorities] section. This will make regexroute to handle the call.route message before regfile module.
I guess I understood the Prioritiy
95 regexroute.conf
100 regfile.conf
So first look for the destination in Regexroute ( Do whatever with the called number, eg. Number to [Number|Name] Translation. eg ^200$=return;called=100 ) In this case Returns means, Exchange called number and continue Searching regexroute.conf from this point down. If no match found in regexroute continue searching regfile.conf
So what would be the preferd way to have dialing permissions ?
e.g. Phone in Kitchen, and a Phone in the public space are only allowed to dial INTERNAL and Emergency Targets?
Office Phones are allowed to reach all Targets, etc.
But I will give the section [extra]a try...