mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-05 10:34:54 +00:00
11 lines
240 B
Lua
11 lines
240 B
Lua
|
#!/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());
|