[Asterisk-cvs] asterisk manager.c,1.69,1.70

markster at lists.digium.com markster at lists.digium.com
Thu Sep 9 08:48:48 CDT 2004


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

Modified Files:
	manager.c 
Log Message:
Make GetVar respect ActionID (bug #2404/2405)


Index: manager.c
===================================================================
RCS file: /usr/cvsroot/asterisk/manager.c,v
retrieving revision 1.69
retrieving revision 1.70
diff -u -d -r1.69 -r1.70
--- manager.c	31 Aug 2004 00:08:52 -0000	1.69
+++ manager.c	9 Sep 2004 12:50:56 -0000	1.70
@@ -608,6 +608,7 @@
         struct ast_channel *c = NULL;
         char *name = astman_get_header(m, "Channel");
         char *varname = astman_get_header(m, "Variable");
+	char *id = astman_get_header(m,"ActionID");
 	char *varval;
 
 	if (!strlen(name)) {
@@ -637,6 +638,8 @@
 	ast_mutex_unlock(&c->lock);
 	ast_cli(s->fd, "Response: Success\r\n"
 		"%s: %s\r\n" ,varname,varval);
+	if (id && !ast_strlen_zero(id))
+		ast_cli(s->fd, "ActionID: %s\r\n",id);
 	ast_cli(s->fd, "\r\n");
 
 	return 0;




More information about the svn-commits mailing list