提交 27b289bd authored 作者: Anthony Minessale's avatar Anthony Minessale

add example

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8827 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 611818cf
stream:write("Content-Type: text/html\n\n");
stream:write("<title>FreeSWITCH Command Portal</title>");
stream:write("<h2>FreeSWITCH Command Portal</h2>");
stream:write("<form method=post><input name=command size=40> ");
stream:write("<input type=submit value=\"Execute\">");
stream:write("</form><hr noshade size=1><br>");
command = env:getHeader("command");
if (command) then
api = freeswitch.API();
reply = api:executeString(command);
if (reply) then
stream:write("<br><B>Command Result</b><br><pre>" .. reply .. "\n</pre>");
end
end
env:addHeader("cool", "true");
stream:write("<pre>" .. env:serialize() .. "</pre>");
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论