VoIP Tech Chat

Patrick and Fred Chat… sometimes about VoIP

Archive for the ‘Perl’ tag

Use Asterisk, Cepstral, and Perl to Get Parking and Weather Updates

27 comments

Note: For information on Ann Arbor DDA blocking this application, click here.

VoIP is Fun

VoIP is Fun

Patrick and Fred eat, breathe, and live telecommunication. So, when the chance to make fun little phone applications come around, we like to jump on it. Recently, while discussing parking issues with Ann Arbor’s Edward Vielmetti, and idea came to mind. Mr. Vielmetti is active within the Ann Arbor community and among the many hats he wears, one seeks to provide access to accurate information concerning downtown transportation and parking (wow that was a mouthful). While discussing the lack of accurate bus information in Ann Arbor, the conversation took a tangent (yes, how odd that conversations with Fred or Patrick take tangents) on the area of parking.

The parking garages in Ann Arbor provide nice signs in front displaying in brightly lit numbers, the amount of available spaces remaining. Ann Arbor also posts this information on the web at the A2DDA website. An idea came to mind that basically, you can tell the available spots either from the website or right when you reach the garage — but what if you wanted to know while driving to the garage?

So, with that long introduction, we present “using asterisk, cepstral, and perl to get parking and weather updates.” Ok, for the non-techs, don’t panic! We’ll talk about the techie stuff in a little bit. The bottom line is using Asterisk, Cepstral, and Perl, you can check the internet for the spaces available and let the caller know — all in real time. For a working example, call +1 (212) 937-7844 and press 6 +1 (734) 272-0909 (this is not a toll-free number).

Read the rest of this entry »

Written by Fred

January 8th, 2009 at 6:39 pm

Asterisk Script: Caller ID Name CNAM Lookup

4 comments

VoIP Geeks Rock

VoIP Geeks Rock

Note: This is another one of VoIP Tech Chat’s more technical articles. If you’re not a techie (or a trekkie), you may want to skip this one. In fact, we’d love it if you instead read our What is a VoIP? article instead.

First, let’s discuss CNAM. CNAM is the Calling Name matching a telephone number. So, when you purchase caller ID with name from your telephone service provider, you get a name (or region) sent to your caller id with name enabled phone. Yay. But, if one of the reasons you’re using VoIP is to save money, and / or your telephone provider does not provide this service, then Asterisk and the Internet can help you.

Read the rest of this entry »

Written by Fred

January 6th, 2009 at 10:09 am

Posted in VoIP,tech

Tagged with , , ,

Perl Script to put Weather on your Polycom Microbrowser

7 comments

VoIP Geeks Rock

VoIP Geeks Rock

Note: This is one of VoIP Tech Chat’s more technical articles. If you’re not a techie (or a trekkie), you may want to skip this one. In fact, we’d love it if you instead read our What is a VoIP? article instead.

Here’s a quick little perl script to create a static html/xml file that can be displayed on your Polycom’s microbrowser. The script uses the Google weather API to check the weather based on a given zip code. The script, of course, is just an example and can be customized as needed.

For PHP coders, the same script can be modified to PHP and save yourself a step. For those of us that really like Perl, this script will create a static page. Using a cron job, you can easily make the page update every 10 minutes or so, and keep weather information current.

You can download the zipped file (weather.pl), or view the code and geeky discussion below… Read the rest of this entry »

Written by Fred

January 5th, 2009 at 8:50 pm

Posted in VoIP,tech

Tagged with , , , ,