mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 04:30:28 +00:00
ensure CLI commands produce proper terminating output when used with manager interface (bug #4497)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5884 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -3152,9 +3152,13 @@ static char *complete_queue(char *line, char *word, int pos, int state)
|
||||
static int manager_queues_show( struct mansession *s, struct message *m )
|
||||
{
|
||||
char *a[] = { "show", "queues" };
|
||||
return queues_show(s->fd, 2, a);
|
||||
}
|
||||
ast_mutex_lock(&s->lock);
|
||||
queues_show(s->fd, 2, a);
|
||||
ast_cli(s->fd, "\r\n\r\n"); /* Properly terminate Manager output */
|
||||
ast_mutex_unlock(&s->lock);
|
||||
|
||||
return RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
/* Dump queue status */
|
||||
static int manager_queues_status( struct mansession *s, struct message *m )
|
||||
|
Reference in New Issue
Block a user