mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
(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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user