mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 18:38:02 +00:00
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
This commit is contained in:
@@ -2464,7 +2464,8 @@ static int load_module(void)
|
|||||||
/* Dialplan Functions */
|
/* Dialplan Functions */
|
||||||
ast_custom_function_register(&agent_function);
|
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;
|
return AST_MODULE_LOAD_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user