From: Matthew Nicholson Date: Wed, 8 Jul 2009 23:07:09 +0000 (+0000) Subject: Fix a CEL related regression with hints updating by subscribing to AST_DEVICE_STATE... X-Git-Tag: 11.0.0-beta1~4526 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a6380004519dd3239b3ad86dee48ea73628f625b;p=thirdparty%2Fasterisk.git Fix a CEL related regression with hints updating by subscribing to AST_DEVICE_STATE instead of AST_DEVICE_STATE_CHANGED. (closes issue #15440) Reported by: lmsteffan git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@205469 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/pbx.c b/main/pbx.c index f733423fa2..2a4ea234d9 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; }