mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +00:00
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 091171c0eb
)
This commit is contained in:
committed by
Asterisk Development Team
parent
d9f1b1598f
commit
10ef135e5a
@@ -49,9 +49,9 @@
|
||||
Jump to label, saving return address.
|
||||
</synopsis>
|
||||
<syntax>
|
||||
<parameter name="context" />
|
||||
<parameter name="exten" />
|
||||
<parameter name="priority" required="true" hasparams="optional">
|
||||
<parameter name="context" documentationtype="dialplan_context" />
|
||||
<parameter name="extension" documentationtype="dialplan_extension" />
|
||||
<parameter name="priority" documentationtype="dialplan_priority" required="true" hasparams="optional">
|
||||
<argument name="arg1" multiple="true" required="true" />
|
||||
<argument name="argN" />
|
||||
</parameter>
|
||||
|
Reference in New Issue
Block a user