Grandstream ATA ultimate dial plan string

Unlike plain old telephone service, the ATA that links your home phone to the VoIP provider must know when you’re done before attempting to dial the numbers you’ve entered. Therefore, all ATAs have a setting called “Dial Plan” (or somethings Dial String) in order to analyze the digits typed, and make the appropriate decisions for dialing.

By default, an ATA will simply wait until the user doesn’t add new numbers for a few seconds, and then dial that. There’s a few problems with that:

  • Always have to wait for that timeout period before actually making the call.
  • If you make a pause mid-typing, it will try to dial that, and then you have to start over.
  • All special numbers (311, 511, 811…) won’t work. Even 911 might not work if the VoIP provider did not implement it.

For all those reasons, I have spent some time to create a very practical dial plan. It’s particularly helpful for residents of Quebec (and Montreal) because certain services (x-1-1) are rerouted to the actual phone number of these services. Therefore, with this dial plan, I can reach:

  • 311: Montreal City
  • 411: A free phone directory service (800-555-1212)
  • 511: Quebec 511 line (transports)
  • 811: Health Line (Info-Santé)

Note that I’m using this with FreePhoneLine, so they already cover the 911 services. If your provider doesn’t link emergency services to 911, you can add a section to call your local emergency services. To get the number, just call your local police station at their non-emergency line, and simply ask for a number to reach them from “internet telephone” or something. They might have to search for it as it is quite unusual.

For GrandStream ATA devices:
{911|<311=5148720311>|<411=18005551212>|<511=18883550511>|<811=18003613977>|x11|*xx|[2-9]xxxxxxxxx|1xxxxxxxxxx|011xxxxxxxxxxxx.|^1900x.|^1976x.}
For Linksys ATA devices:
(911S0|<311:5148720311>S0|<411:18005551212>S0|<511:18883550511>S0|<811:18003613977>S0|x11S0|*xxS0|[2-9]xxxxxxxxxS0|1xxxxxxxxxxS0|011xxxxxxxxxxxx.|1900x.!|1976x.!)
Explanation of this dial string:
  • 911S0| Emergency service provided by my VoIP provider. Dial immediately.
  • <311:5148720311>S0| Montreal’s information line, dial immediately.
  • <411:18005551212>S0| Phone directory services, dial immediately.
  • <511:18883550511>S0| Quebec 511 service, dial immediately.
  • <811:18003613977>S0| Quebec Info-Santé, dial immediately.
  • x11S0| Any other x-1-1 number not covered above will be dialed anyway, so that if my VoIP provider implements them in the future, they’ll work.
  • *xxS0| All star-x-x numbers are dialed. Obvious case is voicemail *98, but certain features could be supported too.
  • [2-9]xxxxxxxxxS0| All north american ‘”local” numbers, dialed immediately. This covers all free areas where my line has access to.
  • 1xxxxxxxxxxS0| All of north america in long-distance (+1). Make sure you have a long distance plan to call those!
  • 011xxxxxxxxxxxx.| International calls. Requires a minimum of 12 digits, preceded by 011. No immediate dial because the length is unknown.
  • 1900x.!| BLOCK all 1-900 pay numbers.
  • 1976x!| BLOCK all 1-976 numbers.
Important details:
Grandstream uses the caret (^) for blocking, Linksys uses the exclamation (!)
Grandstream uses the equal (=) for remapping numbers, Linksys uses colon (:)
Linksys supports immediate dial (S0), Grandstream does not.
Grandstream uses accolades around the string { } while Linksys uses parenthesis ( )
Many thanks to Netphone Directory for a their explanations on Dial Plan constructions.

Tags: , , , , , , , , ,

12 Responses to “Grandstream ATA ultimate dial plan string”

  1. Jason says:

    Thanks very much for this!

  2. Laura says:

    Amazing – thank you so much!!!

  3. Thank you indeed! Just got a new VoIP phone line to replace my Videotron ‘standard’ phone, and I was looking the the 1800 number to use to reach 811, which I couldn’t find anywhere! :)
    Added 411 and 511 while I was playing in there.
    Thanks again.

  4. survival preparedness…

    [...]Grandstream ATA ultimate dial plan string | Laurent's blog[...]…

  5. Advertise says:

    Advertise…

    [...]Grandstream ATA ultimate dial plan string | Laurent's blog[...]…

  6. Gerry says:

    It does not work (dial plan as shown).

    Tried it and nothing happened.

    Using HT 502 with freephoneline.ca

    Thanks
    NB: I am in Mtl also

  7. Gerry says:

    got any dial plans for the Magicjack on line 2?

  8. Vick says:

    Hello,

    Very useful. Thanks man.

    Have a great day

  9. max says:

    Dude, thanks a TON for this. You saved me so much time.

  10. jettto says:

    can’t call to france… after 011 it start a message saying its a wrong number…

  11. Tyler says:

    You are awesome! Thank you.

Leave a Reply