(closes issue #13993)

Reported by: mika

Add ActionID response to ping if sent with request.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@165798 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jeff Peeler
2008-12-18 21:43:17 +00:00
parent a117714b88
commit 4e4093ab48

View File

@@ -1109,9 +1109,13 @@ static char mandescr_ping[] =
static int action_ping(struct mansession *s, const struct message *m) static int action_ping(struct mansession *s, const struct message *m)
{ {
astman_append(s, "Response: Success\r\n" const char *actionid = astman_get_header(m, "ActionID");
"Ping: Pong\r\n"
"\r\n"); astman_append(s, "Response: Success\r\n");
if (!ast_strlen_zero(actionid)){
astman_append(s, "ActionID: %s\r\n", actionid);
}
astman_append(s, "Ping: Pong\r\n\r\n");
return 0; return 0;
} }