use English states in 'show hints' CLI command

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6777 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Kevin P. Fleming
2005-10-13 23:35:57 +00:00
parent 7c936b8826
commit 28dacd0815

6
pbx.c
View File

@@ -3145,14 +3145,14 @@ static int handle_show_hints(int fd, int argc, char *argv[])
watchers = 0;
for (watcher = hint->callbacks; watcher; watcher = watcher->next)
watchers++;
ast_cli(fd, " %-20.20s: %-20.20s State %2d Watchers %2d\n",
ast_cli(fd, " %-20.20s: %-20.20s State:%-15.15s Watchers %2d\n",
ast_get_extension_name(hint->exten), ast_get_extension_app(hint->exten),
hint->laststate, watchers);
devstate2str(hint->laststate), watchers);
num++;
hint = hint->next;
}
ast_cli(fd, "----------------\n");
ast_cli(fd, "- %d hints registred\n", num);
ast_cli(fd, "- %d hints registered\n", num);
ast_mutex_unlock(&hintlock);
return RESULT_SUCCESS;
}