diff --git a/apps/app_queue.c b/apps/app_queue.c index 15472cdc5af95e7b17511fa7535e534265d27a10..58b68cda3c36287a101c2f546d0f7878c54be00f 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -7095,7 +7095,7 @@ static int load_module(void) ast_log(LOG_WARNING, "devicestate taskprocessor reference failed - devicestate notifications will not occur\n"); } - if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE_CHANGE, device_state_cb, NULL, AST_EVENT_IE_END))) { + if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, device_state_cb, NULL, AST_EVENT_IE_END))) { res = -1; } diff --git a/main/pbx.c b/main/pbx.c index 96e42db45863c648325c6a6e73b0d9c6f45d5bec..4c2b273664575d702e43e187bac485a4f5b89986 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9102,7 +9102,7 @@ int load_pbx(void) /* Register manager application */ ast_manager_register2("ShowDialPlan", EVENT_FLAG_CONFIG | EVENT_FLAG_REPORTING, manager_show_dialplan, "List dialplan", mandescr_show_dialplan); - if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE_CHANGE, device_state_cb, NULL, + if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, device_state_cb, NULL, AST_EVENT_IE_END))) { return -1; }