Solved

Trixbox Dial Plan Help

Posted on 2011-03-15
1
667 Views
Last Modified: 2013-11-12
Hi

We have a trixbox system with 3 digit extensions and  4 digit paging groups. For our outgoing/incoming we're using a rhino fxo card.

When we dial out we sometimes get "to reach a number outside your calling area, please dial 1 , the area code .." and sometimes it goes through. This leads me to believe there something wrong with the time out in the below dial plan:

<digitmap dialplan.digitmap="911|311|411|0T|[1-9]xxT|*xxxxxxT|[5-8]xxxT|011xxx.T|[0-1][2-9]xxxxxxxxx|[2-9]xxxxxxxxx" dialplan.digitmap.timeOut="4|4|4|4|4|4|4|4|4|4"/>

Below is outbound Route dial pattern :

311
411
911
011.
1800NXXXXXX
1866NXXXXXX
1877NXXXXXX
1888NXXXXXX
1NXXNXXXXXX
NXXNXXXXXX
NXXXXXX


Below is dial rules for my ZAP trunk, my local area code is 718 and it requires you to dial 718 before dialing a local number:

011|.
1NXXNXXXXXX
1+NXXNXXXXXX
1718+NXXXXXX




thanks in advance
0
Comment
Question by:mizgroup
1 Comment
 
LVL 32

Accepted Solution

by:
DrDamnit earned 500 total points
ID: 35174253
I don't think there is anything wrong with your timeout. Asterisk uses the dial plan rule that BEST matches what the phone sent to it.

What's happening is that your users are entering a number that is matching more than one rule, and the BEST rule is sending a number up the trunk that requires a 1 instead of having simple logic where you control who sends the 1 and when or if it is needed.

So, your logic needs revision.

Firstly, remove the NXXXXXX. If you have ten digit dialing where you are, there is no reason to have a rule that matches 7 digits.

For all outbound calls that require 10 digit dialing, you should be using NXXNXXXXXX. Your local area code should be the exception:

718NXXNXXXX

So, you should have three outbound rules to match:

1NXXNXXXXXX
NXXNXXXXXX
718NXXXXXX

The first two compensate for the fact that some people know to dial a one for long distance.

The second gives you cell phone style long distance dialing.

The last one gives you local calling.

The dial plan for the latter two rules should add the 1 to the digits, and send it up the pipe as required (if required).

0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Zaptel people (www.zaptel.com) got kind of annoyed with the fact that they were getting bombarded with searches for the zaptel driver system for Asterisk (not to mention they own the trademark on zaptel). So, they kindly requested that Digium ch…
Every year the snow affects people and businesses. According to the Federation of Small Businesses (FSB), in 2009, UK businesses lost an estimated £1.2bn (http://news.bbc.co.uk/1/hi/business/7864804.stm) because of bad weather. This article was c…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

827 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question