From e3cf4c4a65565ce35bf37a7f6fc3357d8d4df1cf Mon Sep 17 00:00:00 2001 From: Brian West Date: Fri, 20 Feb 2009 16:53:24 +0000 Subject: [PATCH] add ruby example git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12180 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/ruby/single_command.rb | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 libs/esl/ruby/single_command.rb diff --git a/libs/esl/ruby/single_command.rb b/libs/esl/ruby/single_command.rb new file mode 100644 index 0000000000..b763cd8211 --- /dev/null +++ b/libs/esl/ruby/single_command.rb @@ -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()