freeswitch/libs/esl/ruby/single_command.rb
Brian West e3cf4c4a65 add ruby example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12180 d0543943-73ff-0310-b7d9-9358b9ac24b2
2009-02-20 16:53:24 +00:00

9 lines
171 B
Ruby

#! /usr/bin/ruby
require "ESL"
command = ARGV.join(" ")
con = ESL::ESLconnection.new("localhost", "8021", "ClueCon")
e = con.sendRecv("api #{command}")
puts e.getBody()