diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-20 22:59:52 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-02-20 22:59:52 +0000 |
commit | 3867d08940c1ae41e6f74b3c62956956c616204d (patch) | |
tree | 17c3b3f6e64f750dfc5f166b94dc0f2ed6d0efed /main | |
parent | 059001f427f480c87ebc8bbe213bd0f6d8f32cad (diff) |
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
Diffstat (limited to 'main')
-rw-r--r-- | main/pbx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |