[asterisk-commits] kharwell: trunk r404832 - /trunk/main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jan 3 14:02:08 CST 2014


Author: kharwell
Date: Fri Jan  3 14:02:03 2014
New Revision: 404832

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404832
Log:
manager: UserEvent including action on output

AMI action UserEvent event response would include the action header in its
keyvalue pairs list. Adjusted the start of the header loop to skip over the
action part.

(closes issue ASTERISK-22899)
Reported by: outtolunc
Patches:
     svn_manager.c.skip_action.diff.txt uploaded by outtolunc (license 5198)

Modified:
    trunk/main/manager.c

Modified: trunk/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/manager.c?view=diff&rev=404832&r1=404831&r2=404832
==============================================================================
--- trunk/main/manager.c (original)
+++ trunk/main/manager.c Fri Jan  3 14:02:03 2014
@@ -5170,7 +5170,7 @@
 
 	ast_str_reset(body);
 
-	for (x = 0; x < m->hdrcount; x++) {
+	for (x = 1; x < m->hdrcount; x++) {
 		if (strncasecmp("UserEvent:", m->headers[x], strlen("UserEvent:"))) {
 			ast_str_append(&body, 0, "%s\r\n", m->headers[x]);
 		}




More information about the asterisk-commits mailing list