]> 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:31 +0000 (15:17 -0500)
commit5029e78f39fab61f2972184077bef71b994fbbda
tree807d4a0a4d47f6a3b77a202560f9e5dc1f62cd61
parent3072c540bb2a4d128e97ef94d070696bf1348b5d
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