[asterisk-users] Help with Dialplan Rules Please!
Alex Robar
alex.robar at gmail.com
Tue Oct 17 07:58:23 MST 2006
If the order is giving you problems, create two separate outbound routes,
one for local calls and one for long distance. Make sure the local route is
before the LD route, and it should work for you. Both outbound routes can
use the same trunk without issue.
Alex
On 10/17/06, Chris Ramsey <asteriskblog at gmail.com> wrote:
>
> This was posted at The Asterisk Blog Forums<http://asteriskblog.com/forum/>
>
> Click here for the original post.<http://asteriskblog.com/forum/viewtopic.php?t=20>
>
> I need someone to explain how the dialplan rules work? I'm having a hard
> time getting it. I know that 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.
>
> In freePBX it's this:
> 9|NXXXXXX
>
> For Long distance it is
> 9|1NXXNXXXXXX
>
> Here is my problem using Free PBX:
>
> I want to be able to dial long distance and local at will while using free
> PBX to set it up. Right now we have 1 line for testing purposes and soon to
> be expanded into 2.
>
> 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 when it's hard coded into the configuration
> file (additional_extensions.conf) and free PBX always puts it in this
> order... wether I like it or not.
>
> 9|1NXXNXXXXXX
> 9|NXXXXXX
>
> And causes problems in the configuration file when and I change the
> settings. This isn't going to help me much!
>
> Im just a tad bit confused.
>
> A Little help here?
>
> --
> www.AsteriskBlog.com
> Your home for easy to learn Asterisk stuff.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
--
Alex Robar
alex.robar at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061017/8fb1e4de/attachment.htm
More information about the asterisk-users
mailing list