I’m not a programmer. Never tried to pass myself off as one — which made for a really, really awkward interview once… but that’s another story.
Anyway, I’ve been creating “APIs” in Perl for a while using Perl CGI on NGINX. It’s not a REST API whatsoever, but I enjoy scripting in Perl and (1) got the job done, (2) was fast, and (3) no learning curve.
Flowroute, a SIP service provider, recently enabled SMS on all of their phone numbers (DIDs). This means that if you have a DID from Flowroute, your phone number can now be used to send and receive SMS messages.
This article will show you how you can receive those SMS messages with Perl. (You can skip the background to get to that part quicker.)
I first learned about Flowroute at Astricon 2008 (Phoenix, AZ). At the time, I was working for a Residential VoIP carrier and we were always looking for new service providers.
Flowroute immediately distanced themselves from the other providers by (1) sending engineers instead of sales staff and (2) offering Asterisk prompts from Pat Fleet.
Ok, if you use Asterisk (or a Do It Yourself type VoIP service), you sometimes do not receive the CNAM (think Caller ID with Name data) from your carrier. Well, since geeks like information and anything “free,” there’s a simple way to use the internet to do a reverse number lookup query. So, if you’re a technical type, keep reading… otherwise, non-geek posts will return very soon.
I have a new phone on my desk (or as Yeni calls it, the mesk). Why mesk? Combines messy and desk… but I digress (as usual).
As I was saying, I recently purchased a Polycom Soundpoint IP 450 phone. The phone is great — small foot print, clean, great speakerphone, and enables HD Voice. HD Voice is going to change the way we think of how phone calls sound. I admit, I was reluctant at first, but then I got to know Michael Graves; and after listening to him praise the benefits of HD Voice for many, many months, I decided it was time to embrace the technology.
Let me say this — HD Voice is amazing. I won’t say too much more, because I’m planning to write about it big time on VoIP Tech Chat and Team Forrest; but bottom line: HD Voice = amazing.
So the other nice thing about the phone? It has a little micro-mini browser. Which means what you ask? It means that know whenever Yeni asks me the weather… I can answer. A nice little Perl script checks the local Ann Arbor weather and gives me the temp (in F and C), current condition, and quick day’s forecast. The phone reads the website every 5 minutes and constantly displays the results. It’s nice. 🙂