From: Russell Bryant Date: Thu, 24 Jul 2008 20:40:15 +0000 (+0000) Subject: I made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it backwards, X-Git-Tag: 1.6.2.0-beta1~1594 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee74097194266efc1f212772082e03c811389ea;p=thirdparty%2Fasterisk.git I made this change from DEVICE_STATE to DEVICE_STATE_CHANGE, but I had it backwards, this is the right event to subscribe to ... git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@133486 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_agent.c b/channels/chan_agent.c index c86f826bab..150c1e9ad2 100644 --- a/channels/chan_agent.c +++ b/channels/chan_agent.c @@ -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;