]> git.ipfire.org Git - thirdparty/asterisk.git/commit
config_options: Handle ACO arrays correctly in generated XML docs.
authorSean Bright <sean.bright@gmail.com>
Wed, 25 Aug 2021 15:21:07 +0000 (11:21 -0400)
committerKevin Harwell <kharwell@digium.com>
Thu, 2 Sep 2021 20:17:16 +0000 (15:17 -0500)
commit16b0f460f6f83b44ec284f431a6b6004dfba8797
tree3b7ac9937eac79238b79f7c9c9feae56f98731f6
parent29770520b335a62e05568d356b82022fd2dd3660
config_options: Handle ACO arrays correctly in generated XML docs.

There are 3 separate changes here but they are all closely related:

* Only try to set matchfield attributes on 'field' nodes

* We need to adjust how we treat the category pointer based on the
  value of the category_match, to avoid memory corruption. We now
  generate a regex-like string when match types other than
  ACO_WHITELIST and ACO_BLACKLIST are used.

* Switch app_agent_pool from ACO_BLACKLIST_ARRAY to
  ACO_BLACKLIST_EXACT since we only have one category we need to
  ignore, not two.

ASTERISK-29614 #close

Change-Id: I7be7bdb1bb9814f942bc6bb4fdd0a55a7b7efe1e
apps/app_agent_pool.c
main/config_options.c