Merge "res_agi: Fix malformed AGI usage response"

This commit is contained in:
Jenkins2
2017-05-25 15:23:18 -05:00
committed by Gerrit Code Review

View File

@@ -4060,7 +4060,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");
}