freeswitch/libs/esl/ruby/single_command.rb

9 lines
171 B
Ruby
Raw Normal View History

#! /usr/bin/ruby
require "ESL"
command = ARGV.join(" ")
con = ESL::ESLconnection.new("localhost", "8021", "ClueCon")
e = con.sendRecv("api #{command}")
puts e.getBody()