[Freeswitch-svn] [commit] r12180 - freeswitch/trunk/libs/esl/ruby
FreeSWITCH SVN
brian at freeswitch.org
Fri Feb 20 08:53:24 PST 2009
Author: brian
Date: Fri Feb 20 10:53:24 2009
New Revision: 12180
Log:
add ruby example
Added:
freeswitch/trunk/libs/esl/ruby/single_command.rb
Added: freeswitch/trunk/libs/esl/ruby/single_command.rb
==============================================================================
--- (empty file)
+++ freeswitch/trunk/libs/esl/ruby/single_command.rb Fri Feb 20 10:53:24 2009
@@ -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()
More information about the Freeswitch-svn
mailing list