1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. If you had a PIAF Forum account in the vBulletin days, log in with your old credentials. Otherwise, sign up again and we'll get you back in business as soon as we can.
  3. A serious FreePBX vulnerability has been reported. Update your Framework Module immediately. Click here for details.

Trunk Dial Rules

Discussion in 'Help' started by Mike_S, Feb 27, 2012.

  1. Mike_S New Member

    I have a system in Atlanta, GA which has huge local calling area. To complicate matters, the local exchange (NXX) coexists in multiple area codes (NPA).

    The carrier requires that ALL local numbers be dialed with 10 digits AND all toll calls be dialed with 1+10 digits.

    The end user can not possibly know whether a number is local or not and simply wants to dial 1+10 or 10 digits.

    Prior to FreePBX version 2.10, the Outgoing Dial Rules could be pasted into a list box. So the entries went like this:

    1) All local 10 digit NPANXXXXXX (OVER 2000 entries!)

    2) 1|NPANXXXXXX - Remove the 1 if dialed in front of a local number (SAME ENTRIES AS ABOVE - OVER 2000)

    3) 1+NXXXXXXXXX Prefix a 1 because it's not local if it didn't match earlier

    4) 1NXXXXXXXXX (1+10 not local - dial as is)

    I use local calling guide to download in csv, import into excel and use formulas to create the list. Then I paste the list into the "Dial Rules" list box.

    OK, here's the problem. FreePBX has done away with the list box for Dial Rules and they can not be pasted. I realize that the dial wizard has a selection called "Lookup Numbers for Local Trunk (10-digit Dialing)" but this does not provide the functionality that I need described above.

    I also realize that I can "Upload a cvs file" which is probably what I will do.

    I understand that this change was made to make it simpler for lay people to create the dial rules. Personally, I would prefer a system setting that lets you do it the old fashioned way.

    I also realize that this is a FreePBX issue not a PBXinaFlash issue - but the FreePBX developers do lurk here.

    Comments welcome :)
  2. phonebuff Guru

  3. I would agree that Swiss Army Knife is the preferred solution, but will it work with F---PBX 2.10? For some reason I had thought that 2.9 was the last supported version (though I'd be happy to be wrong about that).

    (Still hoping Ward and the gang will one day come up with a PiaF-like project that does not use Asterisk or F---PBX!).
  4. tbrummell Guru

    I have over 9300 entries in one of my dialing rules just for this sort of thing. My carrier allows free local calling to most major cities in the country, and I set the rules up the same way you do, using the SAK package.

    I should note, it takes my server 3-4 minutes to reload/restart, but it is able to do it. :)
  5. lgaetz Pundit

    This thread indicates that SAK features (if not in name) will be merged to the 2.10 trunk. Whether that means that they are available in 2.10 or 2.11, I am not sure. I don't have a 2.10 system to check.

    Wow. I guess I will stop bragging about my 100ish dialing patterns.
  6. jmullinix Guru

    Mike S.

    Check the link in my signature to the npanxx.php page on my website.

    If you enter an area code and exchange, tick the FreePBX 2.9 and higher radio button and add the Atlanta area area codes (770,404,678,470) to the comma separated list of area codes that are all local calls, this web page will provide an Atlanta dial plan with about 40 entries, including the local numbers in 706 and 256 area codes.

    The response that you get will be presented in csv format that you can copy and paste into a csv file on your local machine and upload it into FreePBX.

    The way I do it for Atlanta is to create the list for 10-digit and paste that into my file, then I re-run it for "Strip the 1" and paste that in. That way the user does not have to know whether it is local to Atlanta or not; FreePBX will make the number right and use the least cost routing this way.

Share This Page