From e46e58f9973eaa6f0a2ca034714722e1579c877f Mon Sep 17 00:00:00 2001 From: russell Date: Thu, 17 Jul 2008 14:46:29 +0000 Subject: Instead of attempting to pass through AST_EVENT_DEVICE_STATE, use DEVICE_STATE_CHANGE instead. DEVICE_STATE is a state change on one server, and DEVICE_STATE_CHANGE is the "real" state of that device across all servers sharing state. This would have only been a problem with distributed device state. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@131643 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/chan_agent.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'channels') diff --git a/channels/chan_agent.c b/channels/chan_agent.c index 7d62718b4..c86f826ba 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -2488,7 +2488,8 @@ static int load_module(void) /* Dialplan Functions */ ast_custom_function_register(&agent_function); - agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, agent_devicestate_cb, NULL, AST_EVENT_IE_END); + agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE_CHANGE, + agent_devicestate_cb, NULL, AST_EVENT_IE_END); return AST_MODULE_LOAD_SUCCESS; } -- cgit v1.2.3