From: Brian West Date: Fri, 20 Feb 2009 16:53:24 +0000 (+0000) Subject: add ruby example X-Git-Tag: v1.0.4~1920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3cf4c4a65565ce35bf37a7f6fc3357d8d4df1cf;p=thirdparty%2Ffreeswitch.git add ruby example git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12180 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- 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()