[asterisk-commits] russell: trunk r133566 - /trunk/main/devicestate.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 25 07:42:26 CDT 2008


Author: russell
Date: Fri Jul 25 07:42:25 2008
New Revision: 133566

URL: http://svn.digium.com/view/asterisk?view=rev&rev=133566
Log:
When the ast_device_state() function is called to retrieve device state, and
the code checks to see if there is a cached state available, use the aggregate
cached state across all servers, and not just the local state.

Modified:
    trunk/main/devicestate.c

Modified: trunk/main/devicestate.c
URL: http://svn.digium.com/view/asterisk/trunk/main/devicestate.c?view=diff&rev=133566&r1=133565&r2=133566
==============================================================================
--- trunk/main/devicestate.c (original)
+++ trunk/main/devicestate.c Fri Jul 25 07:42:25 2008
@@ -293,7 +293,7 @@
 	enum ast_device_state res = AST_DEVICE_UNKNOWN;
 	struct ast_event *event;
 
-	event = ast_event_get_cached(AST_EVENT_DEVICE_STATE_CHANGE,
+	event = ast_event_get_cached(AST_EVENT_DEVICE_STATE,
 		AST_EVENT_IE_DEVICE, AST_EVENT_IE_PLTYPE_STR, device,
 		AST_EVENT_IE_END);
 




More information about the asterisk-commits mailing list