To start off I seem to be confused about what or how the dial patterns configuration works. You have support for them in trunks and in outbound routes.
What takes precedence, trunks or outbound routes?
Well my real problem is this, I have configured a dial rule that looks like this 1317+NXXXXXX (btw, this can only be done in trunks with the wizard and entered in by hand into outbound routes).
I will dial a number of the format NXXXXXX and it will never hit the rule.
It returns with two lines of erros and stating that it is unable to make the call.
At the moment I can enter in a rule that allows 1NXXXXXXXXX dialing and it works. I can call using 10 digits and things work fine. I have done this with dialplans of my own making without freepbx and it works great. Hardcoded area code in my dialplan.
I have no other rules for dialplans setup only the above rule, one at a time (KISS).
If someone can help me understand why the fixlocalprefix agi is not running on this rule, or actually why the dial rule never sees 7 digit calls as a valid call please let me know.
Also if I dial an extension like 6700 it will fail with other reasons.
I am sure this is because there are no rules for local extensions, but not understading freepbx completely, I am not sure.
I am running 2.3.0beta1-2.1 something updated today.
Asterisk 1.4.5
oop -sorry, typo in the localprefixes.conf file name, you should be able to do a new update to get a fix for this within 10 minutes or so when the mirror picks up the change.
sorry, I broke fixlocalprefix with a syntax error in the comment, should be fixed now. The hard coded paths are also wrong here and in a few others. I fixed the paths to phpagi.php. There are other hardcoded paths that need to be dealt with, see ticket 2042.
nothing has changed wrt to route/trunk dialpatterns in 2.3 at this point. Take a look at the tooltips to help understand how it works as well as try the main forum (searching, posting for help).