mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 17:53:15 +00:00
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:
6
pbx.c
6
pbx.c
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user