]> git.ipfire.org Git - thirdparty/asterisk.git/commit
documentation: Update Gosub, Goto, and add new documentationtype.
authorBen Ford <bford@digium.com>
Fri, 14 Mar 2025 22:05:30 +0000 (17:05 -0500)
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Tue, 18 Mar 2025 15:12:08 +0000 (15:12 +0000)
commitf6d296256612d40ef787753a04040a68264aa16c
treedfa112a9fb0ff2b58edc6e70b308b84b7add0a1f
parentf918a6fb53db55e06650c58559e2a5e16572c9c7
documentation: Update Gosub, Goto, and add new documentationtype.

Gosub and Goto were not displaying their syntax correctly on the docs
site. This change adds a new way to specify an optional context, an
optional extension, and a required priority that the xml stylesheet can
parse without having to know which optional parameters come in which
order. In Asterisk, it looks like this:

  parameter name="context" documentationtype="dialplan_context"
  parameter name="extension" documentationtype="dialplan_extension"
  parameter name="priority" documentationtype="dialplan_priority" required="true"

The stylesheet will ignore the context and extension parameters, but for
priority, it will automatically inject the following:

  [[context,]extension,]priority

This is the correct oder for applications such as Gosub and Goto.
apps/app_stack.c
doc/appdocsxml.dtd
main/pbx_builtins.c