[svn-commits] russell: trunk r317915 - in /trunk: CHANGES apps/app_userevent.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri May 6 15:44:58 CDT 2011


Author: russell
Date: Fri May  6 15:44:53 2011
New Revision: 317915

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=317915
Log:
Add the Uniqueid header to Userevent.

(closes issue #16962)
Reported by: jlpedrosa
Patches:
      patch.diff uploaded by jlpedrosa (license 1002)

Modified:
    trunk/CHANGES
    trunk/apps/app_userevent.c

Modified: trunk/CHANGES
URL: http://svnview.digium.com/svn/asterisk/trunk/CHANGES?view=diff&rev=317915&r1=317914&r2=317915
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Fri May  6 15:44:53 2011
@@ -26,6 +26,7 @@
  * DAHDIShowChannels, SIPshowpeer, SIPpeers, and IAXpeers now contains a
    Description field that is set by 'description' in the channel configuration
    file.
+ * Added Uniqueid header to UserEvent.
 
 Asterisk HTTP Server
 --------------------------

Modified: trunk/apps/app_userevent.c
URL: http://svnview.digium.com/svn/asterisk/trunk/apps/app_userevent.c?view=diff&rev=317915&r1=317914&r2=317915
==============================================================================
--- trunk/apps/app_userevent.c (original)
+++ trunk/apps/app_userevent.c Fri May  6 15:44:53 2011
@@ -85,7 +85,12 @@
 		ast_str_append(&body, 0, "%s\r\n", args.extra[x]);
 	}
 
-	manager_event(EVENT_FLAG_USER, "UserEvent", "UserEvent: %s\r\n%s", args.eventname, ast_str_buffer(body));
+	manager_event(EVENT_FLAG_USER, "UserEvent",
+			"UserEvent: %s\r\n"
+			"Uniqueid: %s\r\n"
+			"%s",
+			args.eventname, chan->uniqueid, ast_str_buffer(body));
+
 	ast_free(body);
 
 	return 0;




More information about the svn-commits mailing list