add ruby example

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12180 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2009-02-20 16:53:24 +00:00
parent 459b27af94
commit e3cf4c4a65
1 changed files with 8 additions and 0 deletions

View File

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