Jay Phillip’s Adhearsion Demo at the Moutain West Ruby Conf
Jay Phillip’s talk at MWRC attempted to get the audience involved in
actually running an Adhearsion demo on their own laptops.
Unfortunately, the demo at MWRC was plagued with firewall and network
problems, but eventually I was able to get it working. Here are the
You will need a skype account to complete the sign-up. After signing
up, you should get an email with a link that you need to click before
your account is activated. Go ahead and activate the account now.
Step 2—Install the Adhearsion Gem
gem install adhearsion
I’m running the 0.8.2 version of the gem.
Step 3—Create an Adhearsion project
ahn create project_name
Step 4—Enable the Sandbox
ahn enable component sandbox
Step 5—Edit Your Credentials
Edit the file: components/sandbox/sandbox.yml and update the
username and password you used when you created the Adhearsion account
in step 1.
Step 6—Create a Dial Plan for the Sandbox
Edit the dialplan.rb file to contain the following:
The adhearsion section should alread be in the file. You will be
adding the sandbox section.
Step 7—Star the Adhearsion Server
ahn start project_name
You should see:
INFO ahn: Adhearsion initialized!
Errors at this stage might mean that your adhearsion account isn’t
setup properly, you don’t have the right user name and password (in
step 5), or that you have firewall issues preventing you from
connecting to the Adhearsion server.
Step 8—Call The Sandbox
Using Skype, call the Skype user named sandbox.adhearsion.com.
You should hear a hello world message.
Step 9—Change the Dial Plan
Just for fun, change the dialplan.rb file to contain:
(Add the tt-monkeys line to the sandbox dial plan).
Now call the sandbox again (skyping user sandbox.adhearsion.com)
to hear the change in the dial plan. Monkeys FTW.
Here’s a example of what can be done in a dial plan. I was just
goofing around with my dial plan.
digits = input 1, :timeout => 10.seconds
play "1000", "dollars"