diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-09 12:11:12 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-09 12:11:12 +0000 |
commit | 29bf63b15a53fee1972485b57f5860208056ffc4 (patch) | |
tree | 1966f255caa6c89feb1833a4f71d6efb887d4616 /main/manager.c | |
parent | 659c6e9ada9e02113943978f93df2a0b97e413ff (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: http://svn.digium.com/svn/asterisk/trunk@217408 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/manager.c')
-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; } |