]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Thu, 2 Sep 2021 20:13:03 +0000 (15:13 -0500)
commit5c836c8e363bd56d93e91989f16b4f88adaa67cb
tree6fffe71c4637a301d0bc908e010408fe204e5e07
parent5a685249ce054347300a7acd94058ea09f6e8a06
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