]> git.ipfire.org Git - thirdparty/asterisk.git/commit
docs: Add version information to configObject and configOption XML elements
authorGeorge Joseph <gjoseph@sangoma.com>
Thu, 16 Jan 2025 21:54:35 +0000 (14:54 -0700)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 23 Jan 2025 18:42:29 +0000 (18:42 +0000)
commit3df8b857ea352096247e8ce7b905a2e383f3bb6f
tree5b9c06a1163c3006da8d7e4764739a3b50edb86c
parent791d8fbbc065294635f0e7ac9f838ec0eb6101fc
docs: Add version information to configObject and configOption XML elements

Most of the configObjects and configOptions that are implemented with
ACO or Sorcery now have `<since>/<version>` elements added.  There are
probably some that the script I used didn't catch.  The version tags were
determined by the following...
 * Do a git blame on the API call that created the object or option.
 * From the commit hash, grab the summary line.
 * Do a `git log --grep <summary>` to find the cherry-pick commits in all
   branches that match.
 * Do a `git patch-id` to ensure the commits are all related and didn't get
   a false match on the summary.
 * Do a `git tag --contains <commit>` to find the tags that contain each
   commit.
 * Weed out all tags not <major>.<minor>.0.
 * Sort and discard any <major>.0.0 and following tags where the commit
   appeared in an earlier branch.
 * The result is a single tag for each branch where the API was last touched.

configObjects and configOptions elements implemented with the base
ast_config APIs were just not possible to find due to the non-deterministic
way they are accessed.

Also note that if the API call was on modified after it was added, the
version will be the one it was last modified in.

Final note:  The configObject and configOption elements were introduced in
12.0.0 so options created before then may not have any XML documentation.

(cherry picked from commit 772221c82a63b30c6381d7b758e0b2a8d1e40373)
31 files changed:
apps/app_agent_pool.c
apps/app_skel.c
apps/confbridge/conf_config_parser.c
channels/chan_motif.c
main/cdr.c
main/cel.c
main/features_config.c
main/named_acl.c
main/stasis.c
main/udptl.c
res/res_aeap.c
res/res_ari.c
res/res_geolocation/geoloc_doc.xml
res/res_hep.c
res/res_http_media_cache.c
res/res_parking.c
res/res_pjproject.c
res/res_pjsip/pjsip_config.xml
res/res_pjsip_acl.c
res/res_pjsip_endpoint_identifier_ip.c
res/res_pjsip_notify.c
res/res_pjsip_outbound_publish.c
res/res_pjsip_outbound_registration.c
res/res_pjsip_phoneprov_provider.c
res/res_pjsip_publish_asterisk.c
res/res_pjsip_pubsub.c
res/res_prometheus.c
res/res_resolver_unbound.c
res/res_statsd.c
res/res_stir_shaken/stir_shaken_doc.xml
res/res_xmpp.c