Asterisk Dialplan – Local Calling – Oshawa

Having to sort through the “rules” for some companies where phones are restricted to local calls only I ended up with the following list for Oshawa, ON, Canada. I pulled the local calling area from http://localcallingguide.com/lprefix.php?exch=156470 and then manually created the dial strings.

28922[023457]XXXX
28925[45]XXXX
28927[4568]XXXX
28931[2456]XXXX
28935[456]XXXX
28938[578]XXXX
28940[345]XXXX
28942[23]XXXX
28948[1235]XXXX
28951[23]XXXX
28953[39]XXXX
28960[08]XXXX
28962[469]XXXX
28963[48]XXXX
28967[156]XXXX
28968[58]XXXX
28970[1234689]XXXX
28971[0237]XXXX
28973[123]XXXX
28989[23]XXXX
28991[238]XXXX
28992[378]XXXX
28998[05789]XXXX
28999[126]XXXX
36540[12345678]XXXX
36580[02]XXXX
70527[67]XXXX
90521[357]XXXX
90523[139]XXXX
90524[02345]XXXX
90526[013]XXXX
90540[49]XXXX
90541[09]XXXX
90542[3456789]XXXX
90543[12345689]XXXX
90544XXXXX
90549[38]XXXX
90555[06]XXXX
90557[169]XXXX
90562[01236]XXXX
90566[568]XXXX
90567[45]XXXX
90568[36]XXXX
90572[01358]XXXX
90574[34]XXXX
90592[2456]XXXX
90598[23567]XXXX
90599[59]XXXX
289200XXXX
289240XXXX
289372XXXX
289417XXXX
289460XXXX
289509XXXX
289545XXXX
289591XXXX
289645XXXX
289653XXXX
289660XXXX
289830XXXX
289869XXXX
289886XXXX
289939XXXX
289943XXXX
289964XXXX
289979XXXX
365275XXXX
365300XXXX
365716XXXX
705608XXXX
905259XXXX
905391XXXX
905485XXXX
905619XXXX
905644XXXX
905655XXXX
905697XXXX
905706XXXX
905718XXXX
905767XXXX
905786XXXX
905809XXXX
905903XXXX
905914XXXX

Ten digit dialling is required.
There are three area codes overlaying each other (905 + 289 + 365).

While attempting to add a “Local” route to my Yeastar S20 I came across some limitations that prevented me from using the list as shown. The web interface only allows 15 characters and you have to enter each dialplan individually as there is no batch mode or import feature. So in the list above (84 entries) a few would have to be shortened.
I also want to add the above list with a leading “1” and have that digit stripped before dialling.

Later I will be adding the entries for the 416 area code.

Bookmark the permalink.

Comments are closed