mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-12 12:58:30 +00:00
Send ActionID in response ot action command (bug #1484)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2810 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -465,10 +465,13 @@ static int action_redirect(struct mansession *s, struct message *m)
|
|||||||
static int action_command(struct mansession *s, struct message *m)
|
static int action_command(struct mansession *s, struct message *m)
|
||||||
{
|
{
|
||||||
char *cmd = astman_get_header(m, "Command");
|
char *cmd = astman_get_header(m, "Command");
|
||||||
|
char *id = astman_get_header(m, "ActionID");
|
||||||
ast_mutex_lock(&s->lock);
|
ast_mutex_lock(&s->lock);
|
||||||
s->blocking = 1;
|
s->blocking = 1;
|
||||||
ast_mutex_unlock(&s->lock);
|
ast_mutex_unlock(&s->lock);
|
||||||
ast_cli(s->fd, "Response: Follows\r\n");
|
ast_cli(s->fd, "Response: Follows\r\n");
|
||||||
|
if (id && strlen(id))
|
||||||
|
ast_cli(s->fd, "ActionID: %s\r\n", id);
|
||||||
/* FIXME: Wedge a ActionID response in here, waiting for later changes */
|
/* FIXME: Wedge a ActionID response in here, waiting for later changes */
|
||||||
ast_cli_command(s->fd, cmd);
|
ast_cli_command(s->fd, cmd);
|
||||||
ast_cli(s->fd, "--END COMMAND--\r\n\r\n");
|
ast_cli(s->fd, "--END COMMAND--\r\n\r\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user