Fun with Amazon.com, ISBNs and Asterisk

Peter Rukavina

Phone (603) 258-6798. Press ‘5’ for ‘Amazon.com Lookup.’ Enter the ISBN number of a book. Hear the current price for that book on Amazon.com. Repeat.

Here’s what’s happening:

  • You’re calling a Voicepulse Connect DID number in Peterborough, New Hampshire.
  • The call is routed to my Asterisk server here in Charlottetown, PEI.
  • The Asterisk server has an extension defined to call a Perl script that accepts a 10-digit number and then uses the Amazon.com API to look up the book price, which is read back to you.

You’re free to use the Perl source code as an example of how to do this sort of thing. No guarantees that it’s error-proof, or that it takes into account all possible outcomes.

Comments

Submitted by Chris Hills on

Permalink

Thanks for providing the source code! I would like to use this, but I do not have an affiliate code, just a developer token. How should I proceed?

Submitted by Kevin Diffily on

Permalink

Nice implementation although it seems to have changed. Amazon has left. Is it still available? Also will you make the source code available for the agi’s?

Submitted by olivier on

Permalink

Hello, I was just wondering how to do such a thing when I saw your wab site. I am to set up your code and see if I can manage to make it work. Congratulations anyway.
Olivier
(Frabce)

Submitted by J. Anil Kumar on

Permalink

I would like to get and AGI for Asterisk server of mine which will get 5 digit number and then read from a text file or website or database and read out the data also should be able to send email to a email server from the asterisk server, where in that email will be send as sms. Also get a number and email it to mail server with a prefix fax in the number so that the mail server will the details as fax also.

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search