[asterisk-commits] qwell: branch certified-1.8.15 r382389 - /certified/branches/1.8.15/main/event.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 4 14:54:16 CST 2013


Author: qwell
Date: Mon Mar  4 14:54:12 2013
New Revision: 382389

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382389
Log:
Fix comparison of presence state in event subsystem.

Several new IEs were not given types (or names), causing the comparison
function to improperly succeed.  This adds those.

(closes issue AST-1128)

Modified:
    certified/branches/1.8.15/main/event.c

Modified: certified/branches/1.8.15/main/event.c
URL: http://svnview.digium.com/svn/asterisk/certified/branches/1.8.15/main/event.c?view=diff&rev=382389&r1=382388&r2=382389
==============================================================================
--- certified/branches/1.8.15/main/event.c (original)
+++ certified/branches/1.8.15/main/event.c Mon Mar  4 14:54:12 2013
@@ -214,6 +214,7 @@
 	[AST_EVENT_CEL]                 = "CEL",
 	[AST_EVENT_SECURITY]            = "Security",
 	[AST_EVENT_NETWORK_CHANGE]      = "NetworkChange",
+	[AST_EVENT_PRESENCE_STATE]      = "PresenceState",
 };
 
 /*!
@@ -274,7 +275,11 @@
 	[AST_EVENT_IE_CHALLENGE]           = { AST_EVENT_IE_PLTYPE_STR,  "Challenge" },
 	[AST_EVENT_IE_RESPONSE]            = { AST_EVENT_IE_PLTYPE_STR,  "Response" },
 	[AST_EVENT_IE_EXPECTED_RESPONSE]   = { AST_EVENT_IE_PLTYPE_STR,  "ExpectedResponse" },
-	[AST_EVENT_IE_CACHABLE]            = { AST_EVENT_IE_PLTYPE_UINT,  "Cachable" },
+	[AST_EVENT_IE_CACHABLE]            = { AST_EVENT_IE_PLTYPE_UINT, "Cachable" },
+	[AST_EVENT_IE_PRESENCE_PROVIDER]   = { AST_EVENT_IE_PLTYPE_STR,  "PresenceProvider" },
+	[AST_EVENT_IE_PRESENCE_STATE]      = { AST_EVENT_IE_PLTYPE_UINT, "PresenceState" },
+	[AST_EVENT_IE_PRESENCE_SUBTYPE]    = { AST_EVENT_IE_PLTYPE_STR,  "PresenceSubtype" },
+	[AST_EVENT_IE_PRESENCE_MESSAGE]    = { AST_EVENT_IE_PLTYPE_STR,  "PresenceMessage" },
 };
 
 const char *ast_event_get_type_name(const struct ast_event *event)




More information about the asterisk-commits mailing list