adding caller id information to vonage voicemail emails
A few months ago I wrote about a Perl script I use to convert the .wav attachments on my Vonage voicemail emails to .mp3, in order to save mailbox space. One other thing that has always annoyed me about those Vonage emails is that they don’t contain Caller ID information. Vonage already has this data, so why not put it on the email?
Perl to the rescue! I was actually rather surprised to find that there isn’t already a Perl module to look up this data from some web service. The only Caller ID module I could find dealt with converting data strings from modems, so my next task was to find a way to get this data from a website.
I couldn’t find a web service which provides this data, so that meant I was gonna have to scrape some HTML from somewhere. After a bit of Googling® for free reverse-phone search websites, I found that switchboard.com had the best HTML output (HTML 4.01 Strict, yay!) and cleanest layout for easily determining and scraping the data I wanted (results are in handy <div class="listing"></div> tags — thanks Switchboard.com!), plus a query URL that was rather simple.
So, here is the “callerid.pl” script I came up with. Simply call it with the phone number you want to query, and it will return either the listing(s) available (name, address, city/state/zip, formatted phone #) or a message saying there is no info available. I’ll leave it as an exercise for the reader how to incorporate this into the Vonage .wav-to-.mp3 script.
Continue Reading »


