aboutsummaryrefslogtreecommitdiffstats
path: root/main/devicestate.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-25 12:42:25 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-07-25 12:42:25 +0000
commit59617859fe812d2c0f6772d65f52c72a583832c2 (patch)
treef6559a61d34e281691bf179a3ed30c4afd5034fb /main/devicestate.c
parent0fc56a0dba69d93e63e630f9996d4d32b939ae46 (diff)
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. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@133566 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/devicestate.c')
-rw-r--r--main/devicestate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/devicestate.c b/main/devicestate.c
index 8c20d1703..6e0af66a0 100644
--- a/main/devicestate.c
+++ b/main/devicestate.c
@@ -293,7 +293,7 @@ static enum ast_device_state devstate_cached(const char *device)
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);