Skip to content
Snippets Groups Projects
Commit b7f82fd9 authored by Russell Bryant's avatar Russell Bryant
Browse files

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: https://origsvn.digium.com/svn/asterisk/trunk@133566 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 1d643813
Branches
Tags
No related merge requests found
...@@ -293,7 +293,7 @@ static enum ast_device_state devstate_cached(const char *device) ...@@ -293,7 +293,7 @@ static enum ast_device_state devstate_cached(const char *device)
enum ast_device_state res = AST_DEVICE_UNKNOWN; enum ast_device_state res = AST_DEVICE_UNKNOWN;
struct ast_event *event; 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_DEVICE, AST_EVENT_IE_PLTYPE_STR, device,
AST_EVENT_IE_END); AST_EVENT_IE_END);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment