I made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it backwards,
[asterisk/asterisk.git] / channels / chan_agent.c
index c86f826..150c1e9 100644 (file)
@@ -2488,7 +2488,7 @@ static int load_module(void)
        /* Dialplan Functions */
        ast_custom_function_register(&agent_function);
 
-       agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE_CHANGE,
+       agent_devicestate_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE,
                agent_devicestate_cb, NULL, AST_EVENT_IE_END);
 
        return AST_MODULE_LOAD_SUCCESS;