RESTfulAdhearsion

Description

Ruby library for consuming the Adhearsion RESTful RPC API.

Example


<p><code>
    Adhearsion = RESTfulAdhearsion.new(:host => "localhost",
		                               :port => 5000,
		                               :user => "jicksta",
		                               :password => "roflcopterz")
	options = { :channel  => "SIP/3000",
                :priority => 1,
                :exten    => "1000",
	            :context  => "adhearsion",
	            :async    => "true",
	            :variable => "bill_this=true"  }
	Adhearsion.originate options
	

Dependencies

  • json v1.1.3+
  • rest-client v0.8.2+

Installation

sudo gem install restful_adhearsion