[asterisk-commits] seanbright: trunk r217408 - /trunk/main/manager.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Sep 9 07:11:15 CDT 2009
Author: seanbright
Date: Wed Sep 9 07:11:12 2009
New Revision: 217408
URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=217408
Log:
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
Modified:
trunk/main/manager.c
Modified: trunk/main/manager.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/main/manager.c?view=diff&rev=217408&r1=217407&r2=217408
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Wed Sep 9 07:11:12 2009
@@ -2063,7 +2063,12 @@
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;
}
More information about the asterisk-commits
mailing list