[Asterisk-cvs] asterisk manager.c,1.45,1.46

markster at lists.digium.com markster at lists.digium.com
Wed Apr 28 22:52:49 CDT 2004


Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv13279

Modified Files:
	manager.c 
Log Message:
Send ActionID in response ot action command (bug #1484)


Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- manager.c	25 Apr 2004 20:42:45 -0000	1.45
+++ manager.c	29 Apr 2004 02:59:29 -0000	1.46
@@ -465,10 +465,13 @@
 static int action_command(struct mansession *s, struct message *m)
 {
 	char *cmd = astman_get_header(m, "Command");
+	char *id = astman_get_header(m, "ActionID");
 	ast_mutex_lock(&s->lock);
 	s->blocking = 1;
 	ast_mutex_unlock(&s->lock);
 	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 */
 	ast_cli_command(s->fd, cmd);
 	ast_cli(s->fd, "--END COMMAND--\r\n\r\n");




More information about the svn-commits mailing list