mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-17 02:02:22 +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:
@@ -4222,8 +4222,10 @@ static int manager_iax2_show_peers( struct mansession *s, struct message *m )
|
||||
{
|
||||
char *a[] = { "iax2", "show", "users" };
|
||||
int ret;
|
||||
ast_mutex_lock(&s->lock);
|
||||
ret = iax2_show_peers( s->fd, 3, a );
|
||||
ast_cli( s->fd, "\r\n" );
|
||||
ast_cli( s->fd, "\r\n\r\n" );
|
||||
ast_mutex_unlock(&s->lock);
|
||||
return ret;
|
||||
} /* /JDG */
|
||||
|
||||
|
Reference in New Issue
Block a user