mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 08:05:37 +00:00
guess nobody has actually tried this before
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16650 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
be219869e4
commit
9f43564500
@ -1,5 +1,5 @@
|
||||
LOCAL_CFLAGS=
|
||||
LOCAL_LDFLAGS=-llua
|
||||
LOCAL_LDFLAGS=-llua -lpthread
|
||||
WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
|
||||
|
||||
all: ESL.so
|
||||
|
10
libs/esl/lua/single_command.lua
Executable file
10
libs/esl/lua/single_command.lua
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/local/bin/lua
|
||||
require("ESL")
|
||||
|
||||
local command = arg[1];
|
||||
table.remove(arg, 1);
|
||||
local args = table.concat(arg, " ");
|
||||
|
||||
local con = ESL.ESLconnection("localhost", "8021", "ClueCon");
|
||||
local e = con:api(command, args);
|
||||
print(e:getBody());
|
Loading…
x
Reference in New Issue
Block a user