mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
ESL-77 your test script works along with single_command.rb now
This commit is contained in:
parent
e2d7bb417b
commit
d97b163fd3
@ -4,7 +4,7 @@ LOCAL_CFLAGS=$(shell ruby cflags.rb)
|
|||||||
all: ESL.so
|
all: ESL.so
|
||||||
|
|
||||||
esl_wrap.cpp:
|
esl_wrap.cpp:
|
||||||
swig -module ESL -ruby -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
swig2.0 -module ESL -ruby -c++ -DMULTIPLICITY -I../src/include -o esl_wrap.cpp ../ESL.i
|
||||||
|
|
||||||
esl_wrap.o: esl_wrap.cpp
|
esl_wrap.o: esl_wrap.cpp
|
||||||
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
$(CXX) $(CXX_CFLAGS) $(CXXFLAGS) $(LOCAL_CFLAGS) -c esl_wrap.cpp -o esl_wrap.o
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -1,8 +1,14 @@
|
|||||||
#! /usr/bin/ruby
|
#! /usr/bin/ruby
|
||||||
|
require_relative './ESL'
|
||||||
|
|
||||||
require "ESL"
|
HOST = '127.0.0.1'.to_s
|
||||||
|
PORT = '8021'.to_s
|
||||||
|
PASSWORD = 'ClueCon'.to_s
|
||||||
|
|
||||||
command = ARGV.join(" ")
|
command = ARGV.join(" ")
|
||||||
con = ESL::ESLconnection.new("localhost", "8021", "ClueCon")
|
|
||||||
e = con.sendRecv("api #{command}")
|
con = ESL::ESLconnection.new(HOST,PORT,PASSWORD)
|
||||||
puts e.getBody()
|
e = con.sendRecv('api ' + command)
|
||||||
|
|
||||||
|
puts e.getBody
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user