Merge "app_voicemail: Fix memory management issues."
[asterisk/asterisk.git] / doc / appdocsxml.xslt
1 <xsl:stylesheet version="1.0"
2  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3     <xsl:output omit-xml-declaration="yes" indent="yes"/>
4
5     <xsl:param name="pNewType" select="'myNewType'"/>
6
7     <xsl:template match="node()|@*">
8         <xsl:copy>
9             <xsl:for-each select="node()|@*">
10                 <xsl:sort select="@tech"/>
11                 <xsl:apply-templates select="."/>
12             </xsl:for-each>
13         </xsl:copy>
14     </xsl:template>
15
16     <xsl:template match="configOptionToEnum">
17         <xsl:for-each select="configOption">
18             <xsl:element name="enum">
19                 <xsl:attribute name="name">
20                     <xsl:value-of select="@name"/>
21                 </xsl:attribute>
22                 <xsl:element name="para">
23                     <xsl:value-of select="synopsis"/>
24                 </xsl:element>
25             </xsl:element>
26         </xsl:for-each>
27     </xsl:template>
28
29     <xsl:template match="channel_snapshot">
30         <xsl:element name="parameter">
31             <xsl:attribute name="name">
32                 <xsl:value-of select="concat(@prefix,'Channel')"/>
33             </xsl:attribute>
34         </xsl:element>
35         <xsl:element name="parameter">
36             <xsl:attribute name="name">
37                 <xsl:value-of select="concat(@prefix,'ChannelState')"/>
38             </xsl:attribute>
39             <para>A numeric code for the channel's current state, related to <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/></para>
40         </xsl:element>
41         <xsl:element name="parameter">
42             <xsl:attribute name="name">
43                 <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/>
44             </xsl:attribute>
45             <enumlist>
46                 <enum name="Down"/>
47                 <enum name="Rsrvd"/>
48                 <enum name="OffHook"/>
49                 <enum name="Dialing"/>
50                 <enum name="Ring"/>
51                 <enum name="Ringing"/>
52                 <enum name="Up"/>
53                 <enum name="Busy"/>
54                 <enum name="Dialing Offhook"/>
55                 <enum name="Pre-ring"/>
56                 <enum name="Unknown"/>
57             </enumlist>
58         </xsl:element>
59         <xsl:element name="parameter">
60             <xsl:attribute name="name">
61                 <xsl:value-of select="concat(@prefix,'CallerIDNum')"/>
62             </xsl:attribute>
63         </xsl:element>
64         <xsl:element name="parameter">
65             <xsl:attribute name="name">
66                 <xsl:value-of select="concat(@prefix,'CallerIDName')"/>
67             </xsl:attribute>
68         </xsl:element>
69         <xsl:element name="parameter">
70             <xsl:attribute name="name">
71                 <xsl:value-of select="concat(@prefix,'ConnectedLineNum')"/>
72             </xsl:attribute>
73         </xsl:element>
74         <xsl:element name="parameter">
75             <xsl:attribute name="name">
76                 <xsl:value-of select="concat(@prefix,'ConnectedLineName')"/>
77             </xsl:attribute>
78         </xsl:element>
79         <xsl:element name="parameter">
80             <xsl:attribute name="name">
81                 <xsl:value-of select="concat(@prefix,'AccountCode')"/>
82             </xsl:attribute>
83         </xsl:element>
84         <xsl:element name="parameter">
85             <xsl:attribute name="name">
86                 <xsl:value-of select="concat(@prefix,'Context')"/>
87             </xsl:attribute>
88         </xsl:element>
89         <xsl:element name="parameter">
90             <xsl:attribute name="name">
91                 <xsl:value-of select="concat(@prefix,'Exten')"/>
92             </xsl:attribute>
93         </xsl:element>
94         <xsl:element name="parameter">
95             <xsl:attribute name="name">
96                 <xsl:value-of select="concat(@prefix,'Priority')"/>
97             </xsl:attribute>
98         </xsl:element>
99         <xsl:element name="parameter">
100             <xsl:attribute name="name">
101                 <xsl:value-of select="concat(@prefix,'Uniqueid')"/>
102             </xsl:attribute>
103         </xsl:element>
104         <xsl:element name="parameter">
105             <xsl:attribute name="name">
106                 <xsl:value-of select="concat(@prefix,'Linkedid')"/>
107             </xsl:attribute>
108             <para>Uniqueid of the oldest channel associated with this channel.</para>
109         </xsl:element>
110     </xsl:template>
111
112     <xsl:template match="bridge_snapshot">
113         <xsl:element name="parameter">
114             <xsl:attribute name="name">
115                 <xsl:value-of select="concat(@prefix,'BridgeUniqueid')"/>
116             </xsl:attribute>
117         </xsl:element>
118         <xsl:element name="parameter">
119             <xsl:attribute name="name">
120                 <xsl:value-of select="concat(@prefix,'BridgeType')"/>
121             </xsl:attribute>
122             <para>The type of bridge</para>
123         </xsl:element>
124         <xsl:element name="parameter">
125             <xsl:attribute name="name">
126                 <xsl:value-of select="concat(@prefix,'BridgeTechnology')"/>
127             </xsl:attribute>
128             <para>Technology in use by the bridge</para>
129         </xsl:element>
130         <xsl:element name="parameter">
131             <xsl:attribute name="name">
132                 <xsl:value-of select="concat(@prefix, 'BridgeCreator')"/>
133             </xsl:attribute>
134             <para>Entity that created the bridge if applicable</para>
135         </xsl:element>
136         <xsl:element name="parameter">
137             <xsl:attribute name="name">
138                 <xsl:value-of select="concat(@prefix, 'BridgeName')"/>
139             </xsl:attribute>
140             <para>Name used to refer to the bridge by its BridgeCreator if applicable</para>
141         </xsl:element>
142         <xsl:element name="parameter">
143             <xsl:attribute name="name">
144                 <xsl:value-of select="concat(@prefix,'BridgeNumChannels')"/>
145             </xsl:attribute>
146             <para>Number of channels in the bridge</para>
147         </xsl:element>
148         <xsl:element name="parameter">
149             <xsl:attribute name="name">
150                 <xsl:value-of select="concat(@prefix, 'BridgeVideoSourceMode')" />
151             </xsl:attribute>
152             <enumlist>
153                 <enum name="none"/>
154                 <enum name="talker"/>
155                 <enum name="single"/>
156             </enumlist>
157             <para>The video source mode for the bridge.</para>
158         </xsl:element>
159         <xsl:element name="parameter">
160             <xsl:attribute name="required">
161                 false
162             </xsl:attribute>
163             <xsl:attribute name="name">
164                 <xsl:value-of select="concat(@prefix, 'BridgeVideoSource')" />
165             </xsl:attribute>
166             <para>If there is a video source for the bridge, the unique ID of the channel that is the video source.</para>
167         </xsl:element>
168     </xsl:template>
169 </xsl:stylesheet>