[asterisk-commits] twilson: branch 1.4 r308813 - /branches/1.4/main/manager.c

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


Author: twilson
Date: Thu Feb 24 11:42:16 2011
New Revision: 308813

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=308813
Log:
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.4/main/manager.c

Modified: branches/1.4/main/manager.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/main/manager.c?view=diff&rev=308813&r1=308812&r2=308813
==============================================================================
--- branches/1.4/main/manager.c (original)
+++ branches/1.4/main/manager.c Thu Feb 24 11:42:16 2011
@@ -2315,7 +2315,12 @@
 					(s->session->sessiontimeout ? "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");
+					char auth[80];
+				   	authority_to_str(EVENT_FLAG_SYSTEM, auth, sizeof(auth));
+					astman_append(s, "Event: FullyBooted\r\n"
+						"Privilege: %s\r\n"
+						"Status: Fully Booted\r\n\r\n",
+						auth);
 				}
 			}
 		} else if (!strcasecmp(action, "Logoff")) {




More information about the asterisk-commits mailing list