git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5049 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West committed 2007-05-01 01:04:07 +00:00
1 parent c222c58542
commit b3a3ae9c43
4 files changed
+21 -13

No files matched your search

+9 -11
View File
@@ -1520,7 +1520,7 @@ static switch_status_t pa_cmd(char *cmd, switch_core_session_t *isession, switch
{
char *argv[1024] = { 0 };
int argc = 0;
char *mycmd = NULL, *devname = NULL;
char *mycmd = NULL;
switch_status_t status = SWITCH_STATUS_SUCCESS;
pa_command_t func = NULL;
int lead = 1, devval = 0;
@@ -1616,17 +1616,15 @@ static switch_status_t pa_cmd(char *cmd, switch_core_session_t *isession, switch
}
if (func) {
status = func(&argv[lead], argc - lead, stream);
} else {
if (devname) {
if (devval > 0) {
stream->write_function(stream, "%s set to %d\n", devname, devval);
} else {
stream->write_function(stream, "%s not set (invalid value)\n", devname);
}
} else {
stream->write_function(stream, "Unknown Command [%s]\n", argv[0]);
if (stream->event) {
stream->write_function(stream, "<pre>");
}
status = func(&argv[lead], argc - lead, stream);
if (stream->event) {
stream->write_function(stream, "\n\n</pre>");
}
} else {
stream->write_function(stream, "Unknown Command [%s]\n", argv[0]);
}
done: