From: lvl Date: Mon, 3 Sep 2018 11:50:07 +0000 (+0200) Subject: manager: Set AMI event "Newexten" to the EVENT_FLAG_DIALPLAN class X-Git-Tag: 16.0.0-rc2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8648aa349ad22b1f66594acde0babeca22b3fd99;p=thirdparty%2Fasterisk.git manager: Set AMI event "Newexten" to the EVENT_FLAG_DIALPLAN class The documentation already specified EVENT_FLAG_DIALPLAN for this event, but the implementation was using EVENT_FLAG_CALL. Using EVENT_FLAG_DIALPLAN allows AMI clients to opt out of receiving this highly verbose event. ASTERISK-28033 Change-Id: I45b3119f30e4dbc17b49831f2b1a4f2c1beadafe --- diff --git a/CHANGES b/CHANGES index 783e2e669c..fa177b5661 100644 --- a/CHANGES +++ b/CHANGES @@ -64,6 +64,10 @@ AMI and ContactStatusDetail are now set to "NonQualified" when a contact exists but has not been qualified. + * The "Newexten" event is now part of the "dialplan" class. The documentation + for Asterisk 15 already specified this, but the implementation was actually + using the "call" class instead. + ARI ------------------ * The ContactInfo event's contact_status field is now set to "NonQualified" diff --git a/UPGRADE.txt b/UPGRADE.txt index 41e22c67d2..b2bd28d79a 100644 --- a/UPGRADE.txt +++ b/UPGRADE.txt @@ -41,6 +41,9 @@ AMI: but has not been qualified. - The ContactStatus event will no longer be sent by PJSIP when a device refreshes its registration. + - The "Newexten" event is now part of the "dialplan" class. The documentation + for Asterisk 15 already specified this, but the implementation was actually + using the "call" class instead. ARI: - The ContactInfo event's contact_status field is now set to "NonQualified" diff --git a/main/manager_channels.c b/main/manager_channels.c index 37269a9172..ac09d42a33 100644 --- a/main/manager_channels.c +++ b/main/manager_channels.c @@ -638,7 +638,7 @@ static struct ast_manager_event_blob *channel_newexten( /* DEPRECATED: Extension field deprecated in 12; remove in 14 */ return ast_manager_event_blob_create( - EVENT_FLAG_CALL, "Newexten", + EVENT_FLAG_DIALPLAN, "Newexten", "Extension: %s\r\n" "Application: %s\r\n" "AppData: %s\r\n",