]> git.ipfire.org Git - thirdparty/asterisk.git/commit
message.c: Add option to suppress the Message channel AMI and ARI events
authorGeorge Joseph <gjoseph@digium.com>
Mon, 3 Feb 2020 16:24:58 +0000 (09:24 -0700)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 3 Feb 2020 20:22:10 +0000 (14:22 -0600)
commitbdcf8e71655cd2fd79264e212cb50494c70c1e05
tree48faf46dd2c971fae82984259d53619179e4f964
parent8b027e249029fcce322dbda430439ef66bafa1d6
message.c: Add option to suppress the Message channel AMI and ARI events

In order to reduce the amount of AMI and ARI events generated,
the global "Message/ast_msg_queue" channel can be set to suppress
it's normal channel housekeeping events such as "Newexten",
"VarSet", etc. This can greatly reduce load on the manager
and ARI applications when the Digium Phone Module for Asterisk
is in use.  To enable, set "hide_messaging_ami_events" in
asterisk.conf to "yes"  In Asterisk versions <18, the default
is "no" preserving existing behavior.  Beginning with
Asterisk 18, the option will default to "yes".

NOTE:  This change does not affect UserEvents or the ARI
TextMessageReceived events.

* Added the "hide_messaging_ami_events" option to asterisk.conf.

* Changed message.c to set the AST_CHAN_TP_INTERNAL property on
  the "Message/ast_msg_queue" channel if the option is set in
  asterisk.conf.  This suppresses the reporting of the events.

Change-Id: Ia2e3516d43f4e0df994fc6598565d6bba2d7018b
configs/samples/asterisk.conf.sample
doc/CHANGES-staging/hide_messaging_ami_events [new file with mode: 0644]
include/asterisk/options.h
main/asterisk.c
main/message.c
main/options.c