]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add ruby example
authorBrian West <brian@freeswitch.org>
Fri, 20 Feb 2009 16:53:24 +0000 (16:53 +0000)
committerBrian West <brian@freeswitch.org>
Fri, 20 Feb 2009 16:53:24 +0000 (16:53 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12180 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/esl/ruby/single_command.rb [new file with mode: 0644]

diff --git a/libs/esl/ruby/single_command.rb b/libs/esl/ruby/single_command.rb
new file mode 100644 (file)
index 0000000..b763cd8
--- /dev/null
@@ -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()