mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 02:34:18 +00:00
15 lines
242 B
Ruby
15 lines
242 B
Ruby
#! /usr/bin/ruby
|
|
require 'ESL'
|
|
|
|
HOST = '127.0.0.1'.to_s
|
|
PORT = '8021'.to_s
|
|
PASSWORD = 'ClueCon'.to_s
|
|
|
|
command = ARGV.join(" ")
|
|
|
|
con = ESL::ESLconnection.new(HOST,PORT,PASSWORD)
|
|
e = con.sendRecv('api ' + command)
|
|
|
|
puts e.getBody
|
|
|