Don't print the CR-NL combination when we aren't outputting to the manager.

An embedded CR-NL in a CLI command screws up several AMI parsers that don't
expect to see that combination in the middle of output.

(Closes issue #14305)
Reported by: martins
Patch by: tilghman


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@177786 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2009-02-20 22:59:52 +00:00
parent 426cee0362
commit 4af0175285

View File

@@ -3660,7 +3660,7 @@ static int show_dialplan_helper(int fd, const char *context, const char *exten,
/* if we print something in context, make an empty line */
if (context_info_printed)
ast_cli(fd, "\r\n");
ast_cli(fd, "\n");
}
ast_unlock_contexts();