diff options
author | Sean Bright <sean@malleable.com> | 2009-09-09 12:11:12 +0000 |
---|---|---|
committer | Sean Bright <sean@malleable.com> | 2009-09-09 12:11:12 +0000 |
commit | 2ee2947a55d82df8090268fb0abea36cca1dca67 (patch) | |
tree | 1966f255caa6c89feb1833a4f71d6efb887d4616 | |
parent | cc0170852071f079c1ac025fadee686e014913cd (diff) |
Properly terminate the response to the manager Ping action.
In passing, correct the formatting of the Timestamp attribute so that there is a
space after the colon and before the value.
(closes issue #15861)
Reported by: Ivan
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@217408 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/manager.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/main/manager.c b/main/manager.c index a293d3aaa..1e205742b 100644 --- a/main/manager.c +++ b/main/manager.c @@ -2063,7 +2063,12 @@ static int action_ping(struct mansession *s, const struct message *m) if (!ast_strlen_zero(actionid)){ astman_append(s, "ActionID: %s\r\n", actionid); } - astman_append(s, "Ping: Pong\r\nTimestamp:%ld.%06lu\r\n", now.tv_sec, (unsigned long) now.tv_usec); + astman_append( + s, + "Ping: Pong\r\n" + "Timestamp: %ld.%06lu\r\n" + "\r\n", + now.tv_sec, (unsigned long) now.tv_usec); return 0; } |