Merged revisions 133486 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
r133486 | russell | 2008-07-24 15:40:15 -0500 (Thu, 24 Jul 2008) | 3 lines

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/branches/1.6.0@133487 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.0
Russell Bryant 17 years ago
parent 38c51fee14
commit b1fb1c8da1

@ -2464,7 +2464,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,
agent_devicestate_cb, NULL, AST_EVENT_IE_END);
return AST_MODULE_LOAD_SUCCESS;
}

Loading…
Cancel
Save