forked from Mirrors/freeswitch
9f43564500
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16650 d0543943-73ff-0310-b7d9-9358b9ac24b2
11 lines
240 B
Lua
Executable File
11 lines
240 B
Lua
Executable File
#!/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());
|