Merge "bridge_builtin_features.c: Set auto(mix)mon variables on both channels"
[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,'Language')"/>
82             </xsl:attribute>
83         </xsl:element>
84         <xsl:element name="parameter">
85             <xsl:attribute name="name">
86                 <xsl:value-of select="concat(@prefix,'AccountCode')"/>
87             </xsl:attribute>
88         </xsl:element>
89         <xsl:element name="parameter">
90             <xsl:attribute name="name">
91                 <xsl:value-of select="concat(@prefix,'Context')"/>
92             </xsl:attribute>
93         </xsl:element>
94         <xsl:element name="parameter">
95             <xsl:attribute name="name">
96                 <xsl:value-of select="concat(@prefix,'Exten')"/>
97             </xsl:attribute>
98         </xsl:element>
99         <xsl:element name="parameter">
100             <xsl:attribute name="name">
101                 <xsl:value-of select="concat(@prefix,'Priority')"/>
102             </xsl:attribute>
103         </xsl:element>
104         <xsl:element name="parameter">
105             <xsl:attribute name="name">
106                 <xsl:value-of select="concat(@prefix,'Uniqueid')"/>
107             </xsl:attribute>
108         </xsl:element>
109         <xsl:element name="parameter">
110             <xsl:attribute name="name">
111                 <xsl:value-of select="concat(@prefix,'Linkedid')"/>
112             </xsl:attribute>
113             <para>Uniqueid of the oldest channel associated with this channel.</para>
114         </xsl:element>
115     </xsl:template>
116
117     <xsl:template match="bridge_snapshot">
118         <xsl:element name="parameter">
119             <xsl:attribute name="name">
120                 <xsl:value-of select="concat(@prefix,'BridgeUniqueid')"/>
121             </xsl:attribute>
122         </xsl:element>
123         <xsl:element name="parameter">
124             <xsl:attribute name="name">
125                 <xsl:value-of select="concat(@prefix,'BridgeType')"/>
126             </xsl:attribute>
127             <para>The type of bridge</para>
128         </xsl:element>
129         <xsl:element name="parameter">
130             <xsl:attribute name="name">
131                 <xsl:value-of select="concat(@prefix,'BridgeTechnology')"/>
132             </xsl:attribute>
133             <para>Technology in use by the bridge</para>
134         </xsl:element>
135         <xsl:element name="parameter">
136             <xsl:attribute name="name">
137                 <xsl:value-of select="concat(@prefix, 'BridgeCreator')"/>
138             </xsl:attribute>
139             <para>Entity that created the bridge if applicable</para>
140         </xsl:element>
141         <xsl:element name="parameter">
142             <xsl:attribute name="name">
143                 <xsl:value-of select="concat(@prefix, 'BridgeName')"/>
144             </xsl:attribute>
145             <para>Name used to refer to the bridge by its BridgeCreator if applicable</para>
146         </xsl:element>
147         <xsl:element name="parameter">
148             <xsl:attribute name="name">
149                 <xsl:value-of select="concat(@prefix,'BridgeNumChannels')"/>
150             </xsl:attribute>
151             <para>Number of channels in the bridge</para>
152         </xsl:element>
153         <xsl:element name="parameter">
154             <xsl:attribute name="name">
155                 <xsl:value-of select="concat(@prefix, 'BridgeVideoSourceMode')" />
156             </xsl:attribute>
157             <enumlist>
158                 <enum name="none"/>
159                 <enum name="talker"/>
160                 <enum name="single"/>
161             </enumlist>
162             <para>The video source mode for the bridge.</para>
163         </xsl:element>
164         <xsl:element name="parameter">
165             <xsl:attribute name="required">
166                 false
167             </xsl:attribute>
168             <xsl:attribute name="name">
169                 <xsl:value-of select="concat(@prefix, 'BridgeVideoSource')" />
170             </xsl:attribute>
171             <para>If there is a video source for the bridge, the unique ID of the channel that is the video source.</para>
172         </xsl:element>
173     </xsl:template>
174 </xsl:stylesheet>