Fix win32 Build

Update win32 Setup
add show calls and show channels


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1884 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2006-07-14 19:55:55 +00:00
parent 4aab8842cd
commit 0d82c97797
6 changed files with 575 additions and 98 deletions

View File

@@ -207,10 +207,16 @@ static switch_status_t show_function(char *cmd, switch_stream_handle_t *stream)
) {
sprintf (sql, "select * from interfaces where type = '%s'", cmd);
}
else if ( !strcmp(cmd,"calls")) {
sprintf (sql, "select * from calls", cmd);
}
else if ( !strcmp(cmd,"channels")) {
sprintf (sql, "select * from channels", cmd);
}
else {
stream->write_function(stream, "Invalid interfaces type!\n");
stream->write_function(stream, "Example:\n");
stream->write_function(stream, "show <blank>|codec|application|api|dialplan|file|timer\n");
stream->write_function(stream, "show <blank>|codec|application|api|dialplan|file|timer|calls|channels\n");
return SWITCH_STATUS_SUCCESS;
}