Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Click 2 Call, call, call...

JustinAiken
December 08, 2013

Click 2 Call, call, call...

One of the most frequently asked questions seen in the adhearsion mailing list and chat room is “how do I send a call from my Rails application?” To answer this, I’ll show you several different approaches from start to finish, including using DRB from a Rails application, or running an HTTP API in your adhearison app that can be triggered from any framework.

Hopefully one of the options will inspire you to build something cool!

JustinAiken

December 08, 2013
Tweet

Transcript

  1. P A G E !1 ! ! ! ! !

    ! • Justin Aiken Twitter: @JustinAiken Github: https://www.github.com/JustinAiken !
  2. P A G E !10 DRB (DISTRIBUTED RUBY) • Easiest

    method (IMO, YMMV) • Ruby-only GEMFILE: gem ‘adhearsion-drb’ ! adhearsion.rb: config.adhearsion_drb.host = "0.0.0.0" config.adhearsion_drb.acl.allow = ["all"] config.adhearsion_drb.shared_object = AMI.new
  3. P A G E !14 WITH HTTP • Reel -

    A Webserver for Celluloid • Virginia - An Adhearsion plugin for Reel ! GEMFILE: gem ‘virginia’ ! adhearsion.rb: config.virginia.host = "0.0.0.0" config.virginia.port = 8080 config.virginia.handler = RequestHandler
  4. P A G E !17 WITH REDIS • Lemondrop -

    A Redis plugin for Adhearsion ! GEMFILE: gem ‘lemondrop’ ! adhearsion.rb: config.lemondrop.uri = “REDIS://#{R_HOST}:#{R_PORT}”