From 3867d08940c1ae41e6f74b3c62956956c616204d Mon Sep 17 00:00:00 2001 From: tilghman Date: Fri, 20 Feb 2009 22:59:52 +0000 Subject: 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: http://svn.digium.com/svn/asterisk/branches/1.4@177786 f38db490-d61c-443f-a65b-d21fe96a405b --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/pbx.c') diff --git a/main/pbx.c b/main/pbx.c index b5ef43106..78b200940 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(); -- cgit v1.2.3