gordon.dewis.ca - Random musings from Gordon


Archive for April 11th, 2008

Replacement for my Unlimitel dialplan

April 11, 2008 @ 22:44 By: gordon Category: VoIP

When I started using Voice over IP technology, I acquired a wholesale DID from Unlimitel for an extremely reasonable monthly cost. Shortly thereafter I created an Asterisk-friendly version of the dialplan information they provided and made it available for download. It was a very simplistic set of Dial() statements, one per areacode-exchange combination. This resulted in a large number of statements and as Unlimitel’s on-net service area grew, so did it. It also meant that it was easy for my dialplan to be out of date as new exchanges were added. If you wanted to do anything before the Dial() statement you had to either create another context with a pattern that caught what you wanted to do and then went to your outbound Unlimitel context or you had to take my dialplan and insert new statements.

Way too much work and also way too many statements.

I had thought about writing a small Perl program to parse the dialplan information and collapse it to match with broader patterns, but never found the time. And when I had the time, I really didn’t feel like it because, frankly, things were working for me so I didn’t feel like changing it.

When I upgraded my blog a few months ago, I dropped the dialplan from my website during the migration. I hadn’t updated it in months and I knew that Unlimitel had made whole sale changes. A reader looking for my dialplan asked me if I would put it back up.

Recently, I overhauled my dialplans and made things more efficient with macros rather than explicit Dial() statements for every combination of areacode and exchange. For various reasons, I use a couple of different providers to provide outbound paths. Since most of my calls are local, I first try to send the call out via Unlimitel. If Unlimitel doesn’t handle the destination, I then try to send it out via Link2Voip.

The result is that I have eliminated most of the lines being loaded while eliminating the need to maintain an unwieldy dialplan.

Here’s how I did it…


Here we go again

April 11, 2008 @ 00:02 By: gordon Category: Weather

A few minutes ago I checked the terminal area forecast (TAF) for Ottawa for the next 24 hours or so:

TAF CYOW 110238Z 110324 32008KT P6SM BKN220
FM1000Z 03005KT P6SM BKN120
FM1400Z 08012KT 11/2SM -SN VV015 PROB30 1419 P6SM -FZRA -PL
FM1900Z 08012KT 4SM -SNRA BKN012 OVC050 TEMPO 1922 2SM -SN BKN008
FM2200Z 07012KT 11/2SM -RA BR BKN006 OVC012

So, we can probably expect to see snow and rain, both individually and together, and maybe some freezing rain and ice pellets.

Only about 6 weeks until I go to Greece…