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
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
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
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
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.

Post new comment

You can comment anonymously if you must, but I would prefer it if you used your real name.
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Optional. If you enter the address of a website here, your name will be publicly linked to the site.
  • Adds typographic refinements.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.