]> 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)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 20 Mar 2025 18:29:21 +0000 (18:29 +0000)
commitd9b715a5826c86c221d931038c7ba82f6055fd27
treed08b5d16fa1fc77f72bb60538443722a036c596d
parent6bd4446f0f0bb83941c3bbb8c4756fb29d718875
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.

(cherry picked from commit 6921ede7cbcd68046e9f3efe3085ef53f1573fa0)
apps/app_stack.c
doc/appdocsxml.dtd
main/pbx_builtins.c