diff --git a/main/pbx.c b/main/pbx.c index f733423fa278d57d9161f8c0a8e4351f7ae62016..2a4ea234d97236c91679e954a7931b58556946ac 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -9596,7 +9596,7 @@ int load_pbx(void) /* Register manager application */ ast_manager_register_xml("ShowDialPlan", EVENT_FLAG_CONFIG | EVENT_FLAG_REPORTING, manager_show_dialplan); - if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE_CHANGE, device_state_cb, "pbx Device State Change", NULL, + if (!(device_state_sub = ast_event_subscribe(AST_EVENT_DEVICE_STATE, device_state_cb, "pbx Device State Change", NULL, AST_EVENT_IE_END))) { return -1; }