mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
add ruby example
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12180 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
459b27af94
commit
e3cf4c4a65
8
libs/esl/ruby/single_command.rb
Normal file
8
libs/esl/ruby/single_command.rb
Normal 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()
|
Loading…
x
Reference in New Issue
Block a user