Fun with Amazon.com, ISBNs and Asterisk

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

Chris Hills's picture
Chris Hills on December 9, 2004 - 17:03

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?

Kevin Diffily's picture
Kevin Diffily on September 2, 2005 - 23:26

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?

olivier's picture
olivier on October 13, 2005 - 14:21

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)

J. Anil Kumar's picture
J. Anil Kumar on June 8, 2007 - 11:29

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