Included rules' priorities

Hello everyone,

[specific] exten => 500,1,NoOp(specific) [general] exten => _X.,1,NoOp(general) include => specific

If I’ve got everything right, when we dial 500 in “general” context, “NoOp(general)” will be executed (because asterisk will first try to match against local context rules, and only if none matches it will look into included context). Is it possible to change this behavior somehow? I mean, could I make rules specified in included context of equal priorities with rules of the current context?

Currently I’m using files to get the behavior I want:

#cat specific.conf
exten => 500,1,NoOp(specific)

#cat general.conf
#include specific.conf
exten => _X.,1,NoOp(general)
#include specific.conf[/code]
It works. However in some cases I get a warning " Same File included more than once!" (when I have to include the same file in several contexts).