It's been awhile since I posted, and have a ton of posts lying around waiting to be edited or finished, but I thought I would get this one out there now. I've been crazy swamped in the past few months and hope to spend some time during the holidays writing.
Last night I began tackling some long overdue personal to-do items. Among them, my inbox. I tend to keep it under 50 so it fits on one page in gApps, but it had somehow risen to 543 during the past week or so of work related chaos. So upon restoring order to my inbox, 49, I wrote on facebook of my success and asked people to not email me anymore, just stick with faxes. My friend Tom today jokingly asked what my pager number was. I decided I should have a pager number. And despite being swamped with other things, I pushed myself to do this immediately and not let it end up in my mind map waiting in queue.
I have been working a lot with Twilio lately, and was an early adopter when the service launched. I was fascinated with how it simplified telephony(remember punch blocks?) and immediately created a Jott like secretary service for myself. I could call in, add to-do items for myself, email a dictation to my minion at work, reset servers, just about anything I could script. It was awesome. Then I no longer needed such a in-depth service to manage my work life and I began to no longer develop things with Twilio. Until recently. I know have been working closely with twilio for other stuff and figured this would be a quick hack, so here it is, 1 hr of work.
- Webserver with PHP to host your Twiml
- Willingness to pay for a Twiml dial in number, but I believe you get a branded sandbox for free
- An urge to be that guy with a pager.
This is the PHP that responds when Twilio phones home to my server. Twiml is XML that drives the call process when someone dials in. There is some decent(although Sms gave me a headache today) documention on their site, and they are very responsive on the forums and email.
Basically, put this script on your server and point your twilio number to the address. there, you're done.
Note: I used php's mail function because I couldn't get sms to work at all. It's odd, since I use their SMS in a production environment now, but in this case I think the to= parameter was not cooperating with me. In theory, if you can get say to work, you can use two twiml .xml files to power this call process.