ok… could someone take the time to explain to me how the dialplan rules work?
Its getting to be a real pain in the .
Ok… I understand that in order to dial out you need a 9… and to ignore that 9 once your out… requires a switch of sorts that tells asterisk to ignore the first digit on the left.
Example… in freePBX it’s this:
9|NXXXXXX
For Long distance its
9|1NXXNXXXXXX
Now… heres my problem… and again… im using Free PBX…
I want to be able to dial long distance and local at will… using free PBX to set it up.
right now we have 1 line… for testing purposes… soon to be expanded into 2.
Now when the rules are arranged like this in FreePBX
9|1NXXNXXXXXX
9|NXXXXXX
the long distance portion works…but the local one does not.
when its arranged like this
9|NXXXXXX
9|1NXXNXXXXXX
They both work…
But the above is only done if it’s HARDCODED into the configuration file (additional_extensions.conf)… free PBX always puts it in this order… wether I like it or not.
9|1NXXNXXXXXX
9|NXXXXXX
And messes up the stupid configuration file when and IF i change settings.
This isn’t going to help me much… surely theres a solution?
Is it just a matter of how I set up the outbound rules? Or is it a FreePBX glitch…
I’ve been trying to decode the configuraiton files just to figure out what in the heck its doing that would make it do that… I thought it wouldn’t matter WHAT order it is in.
Im just a tad bit confused.
Any suggestions?
Better yet… how would YOU set it up so you can dial out with 9 to call local and longdistance.
one rule for each? (didn’t work for me…) or all in one?