[asterisk-commits] twilson: branch 1.6.2 r308814 - in /branches/1.6.2: ./ main/manager.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Feb 24 11:55:00 CST 2011


Author: twilson
Date: Thu Feb 24 11:54:49 2011
New Revision: 308814

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308814
Log:
Merged revisions 308813 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r308813 | twilson | 2011-02-24 11:42:16 -0600 (Thu, 24 Feb 2011) | 12 lines
  
  Don't broadcast FullyBooted to every AMI connection
  
  The FullyBooted event should not be sent to every AMI connection every
  time someone connects via AMI. It should only be sent to the user who
  just connected.
  
  (closes issue #18168)
  Reported by: FeyFre
  Patches: 
        bug0018168.patch uploaded by FeyFre (license 1142)
  Tested by: FeyFre, twilson
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/manager.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: branches/1.6.2/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/manager.c?view=diff&rev=308814&r1=308813&r2=308814
==============================================================================
--- branches/1.6.2/main/manager.c (original)
+++ branches/1.6.2/main/manager.c Thu Feb 24 11:54:49 2011
@@ -1792,7 +1792,11 @@
 	ast_log(LOG_EVENT, "%sManager '%s' logged on from %s\n", (s->session->managerid ? "HTTP " : ""), s->session->username, ast_inet_ntoa(s->session->sin.sin_addr));
 	astman_send_ack(s, m, "Authentication accepted");
 	if (ast_opt_send_fullybooted && ast_test_flag(&ast_options, AST_OPT_FLAG_FULLY_BOOTED)) {
-		manager_event(EVENT_FLAG_SYSTEM, "FullyBooted", "Status: Fully Booted\r\n");
+		struct ast_str *auth = ast_str_alloca(80);
+		const char *cat_str = authority_to_str(EVENT_FLAG_SYSTEM, &auth);
+		astman_append(s, "Event: FullyBooted\r\n"
+			"Privilege: %s\r\n"
+			"Status: Fully Booted\r\n\r\n", cat_str);
 	}
 	return 0;
 }




More information about the asterisk-commits mailing list