From: Sean Bright Date: Tue, 23 May 2017 17:35:25 +0000 (-0400) Subject: res_agi: Fix malformed AGI usage response X-Git-Tag: 14.6.0-rc1~64^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e08136b0ddd6792ff1abb36c3fbeafb2c15fa9f5;p=thirdparty%2Fasterisk.git res_agi: Fix malformed AGI usage response If the generated XML documentation for a command does not end with a \n, the postamble of the usage message does not appear on its own line. ASTERISK-25662 #close Change-Id: If190f1e9e37fe215fed95897d78d4a6e142b0020 --- diff --git a/res/res_agi.c b/res/res_agi.c index d46a019ead..e84e051410 100644 --- a/res/res_agi.c +++ b/res/res_agi.c @@ -4039,7 +4039,7 @@ static enum agi_result agi_handle_command(struct ast_channel *chan, AGI *agi, ch ast_agi_send(agi->fd, chan, "520 Invalid command syntax. Proper usage not available.\n"); } else { ast_agi_send(agi->fd, chan, "520-Invalid command syntax. Proper usage follows:\n"); - ast_agi_send(agi->fd, chan, "%s", c->usage); + ast_agi_send(agi->fd, chan, "%s\n", c->usage); ast_agi_send(agi->fd, chan, "520 End of proper usage.\n"); }