From: Tilghman Lesher Date: Fri, 20 Feb 2009 22:59:52 +0000 (+0000) Subject: Don't print the CR-NL combination when we aren't outputting to the manager. X-Git-Tag: 1.4.24-rc1~33 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4af01752853d0e9205092da21d61f09606aa2141;p=thirdparty%2Fasterisk.git 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 --- diff --git a/main/pbx.c b/main/pbx.c index b5ef431060..78b200940a 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -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();