update example

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5439 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-06-22 17:38:32 +00:00
parent da7640faa6
commit 34d6c49870
1 changed files with 5 additions and 3 deletions

View File

@ -53,10 +53,12 @@ request.write("<input type=submit value=\"Execute\">");
request.write("</form><hr noshade size=1><br>");
if ((command = request.getHeader("command"))) {
cmd_list = command.split(" ", 2);
cmd_list = command.split(" ");
cmd = cmd_list.shift();
args = cmd_list.join(" ");
if ((reply = apiExecute(cmd_list[0], cmd_list[1]))) {
request.write("<B>Command Result</b><br><pre>" + reply + "\n</pre>");
if ((reply = apiExecute(cmd, args))) {
request.write("<br><B>Command Result</b><br><pre>" + reply + "\n</pre>");
}
}