Linux Blog

Asterisk AGI Area Code Lookup

Filed under: Shell Script Sundays — at 6:00 am on Sunday, January 9, 2011

I’ve written about my Asterisk meddling before in my Asterisk AGI IP Address lookup post. This time I’m writing about an Area Code Lookup Script I wrote that was inspired by Nerd Vittles WiFi Finder. The script prompts the user to enter a 3 digit area code and then reads the results back to the user.

The tar.gz file needs to be extracted and the resulting files placed into your agi-bin. The source can be found here.

Here is what it sounds like for the 404 areacode (ogg / mp3). After recording this I found out it would probably be a good idea to unique the array so items are not read twice, but it works for me.


Pingback by The Linux Blog » PulseCaster

January 26, 2011 @ 6:32 am

[…] I stumbled upon PulseCaster while searching through Fedoras repositories, I was intrigued and had to give it a try. By the website this is the description: “PulseCaster is a simple PulseAudio-based tool for making podcast interviews. It is designed for ease of use and simplicity. The user makes a call with a preferred PulseAudio-compatible Voice-over-IP (VoIP) softphone application such as Ekiga or Twinkle, and then starts PulseCaster to record the conversation to a multimedia file. The resulting file can be published as a podcast or distributed in other ways.” It works really well for phone interviews or just recording that call you want to remember. I wouldn’t advise recording conversations without the other parties permission. I don’t know what the law is on that, but if you’re using it for its intended purpose (podcasting) then it serves its purpose. I actually used it to record the Asterisk Area Code Lookup Script. […]

Comment by kelvinkimbis

August 4, 2011 @ 2:17 am

The script prompts the user to enter a 3 digit area code and then reads the results back to the user.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>