[asterisk-commits] mmichelson: branch group/manager2 r103493 - /team/group/manager2/include/aste...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 12 15:14:57 CST 2008


Author: mmichelson
Date: Tue Feb 12 15:14:56 2008
New Revision: 103493

URL: http://svn.digium.com/view/asterisk?view=rev&rev=103493
Log:
Somehow the penalty IE got put in the wrong place in the lookup table.
Fixed and added a comment making sure it is known that the enum and lookup table must be 
in the same order.


Modified:
    team/group/manager2/include/asterisk/manager2.h

Modified: team/group/manager2/include/asterisk/manager2.h
URL: http://svn.digium.com/view/asterisk/team/group/manager2/include/asterisk/manager2.h?view=diff&rev=103493&r1=103492&r2=103493
==============================================================================
--- team/group/manager2/include/asterisk/manager2.h (original)
+++ team/group/manager2/include/asterisk/manager2.h Tue Feb 12 15:14:56 2008
@@ -57,10 +57,11 @@
 	enum ast_event_info_ie_type ie_type;
 	enum ast_event_ie_pltype pltype;
 	const char * name;
-} info_map[] = {
+} info_map[] = { /*NOTE: it is INSANELY IMPORTANT that these are in the same order as the above enum. My GOD I CANNOT STRESS THIS ENOUGH!!! */
 	{AST_EVENT_IE_INFO_QUEUE_NAME,					AST_EVENT_IE_PLTYPE_STR,	"QueueName"},	
 	{AST_EVENT_IE_INFO_QUEUE_INTERFACE,				AST_EVENT_IE_PLTYPE_STR,	"Interface"},
 	{AST_EVENT_IE_INFO_QUEUE_MEMBER_NAME,			AST_EVENT_IE_PLTYPE_STR,	"MemberName"},
+	{AST_EVENT_IE_INFO_QUEUE_PENALTY,				AST_EVENT_IE_PLTYPE_UINT,	"Penalty"},
 	{AST_EVENT_IE_INFO_QUEUE_CALLS,					AST_EVENT_IE_PLTYPE_UINT,	"Calls"},
 	{AST_EVENT_IE_INFO_QUEUE_LASTCALL,				AST_EVENT_IE_PLTYPE_UINT,	"LastCall"},
 	{AST_EVENT_IE_INFO_QUEUE_STATUS,				AST_EVENT_IE_PLTYPE_STR,	"Status"},
@@ -72,7 +73,6 @@
 	{AST_EVENT_IE_INFO_QUEUE_COUNT,					AST_EVENT_IE_PLTYPE_UINT,	"Count"},
 	{AST_EVENT_IE_INFO_QUEUE_SOURCE_UNIQUEID,		AST_EVENT_IE_PLTYPE_STR,	"SourceUniqueID"},
 	{AST_EVENT_IE_INFO_QUEUE_MEMBERSHIP, 			AST_EVENT_IE_PLTYPE_STR,	"Membership"},
-	{AST_EVENT_IE_INFO_QUEUE_PENALTY,				AST_EVENT_IE_PLTYPE_UINT,	"Penalty"},
 	{AST_EVENT_IE_INFO_QUEUE_DESTINATION_CHANNEL,	AST_EVENT_IE_PLTYPE_STR,	"DestinationChannel"},
 	{AST_EVENT_IE_INFO_QUEUE_CONTEXT,				AST_EVENT_IE_PLTYPE_STR,	"Context"},
 	{AST_EVENT_IE_INFO_QUEUE_EXTENSION,				AST_EVENT_IE_PLTYPE_STR,	"Extension"},




More information about the asterisk-commits mailing list