提交 9f435645 authored 作者: Brian West's avatar Brian West

guess nobody has actually tried this before

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16650 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 be219869
LOCAL_CFLAGS= LOCAL_CFLAGS=
LOCAL_LDFLAGS=-llua LOCAL_LDFLAGS=-llua -lpthread
WRAP_GCC_WARNING_SILENCE=-Wno-unused-function WRAP_GCC_WARNING_SILENCE=-Wno-unused-function
all: ESL.so all: ESL.so
......
#!/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());
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论