Merge "app_queue: Only remove queue member from pending when state changes."
[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:apply-templates select="node()|@*"/>
10         </xsl:copy>
11     </xsl:template>
12
13     <xsl:template match="configOptionToEnum">
14         <xsl:for-each select="configOption">
15             <xsl:element name="enum">
16                 <xsl:attribute name="name">
17                     <xsl:value-of select="@name"/>
18                 </xsl:attribute>
19                 <xsl:element name="para">
20                     <xsl:value-of select="synopsis"/>
21                 </xsl:element>
22             </xsl:element>
23         </xsl:for-each>
24     </xsl:template>
25
26     <xsl:template match="channel_snapshot">
27         <xsl:element name="parameter">
28             <xsl:attribute name="name">
29                 <xsl:value-of select="concat(@prefix,'Channel')"/>
30             </xsl:attribute>
31         </xsl:element>
32         <xsl:element name="parameter">
33             <xsl:attribute name="name">
34                 <xsl:value-of select="concat(@prefix,'ChannelState')"/>
35             </xsl:attribute>
36             <para>A numeric code for the channel's current state, related to <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/></para>
37         </xsl:element>
38         <xsl:element name="parameter">
39             <xsl:attribute name="name">
40                 <xsl:value-of select="concat(@prefix,'ChannelStateDesc')"/>
41             </xsl:attribute>
42             <enumlist>
43                 <enum name="Down"/>
44                 <enum name="Rsrvd"/>
45                 <enum name="OffHook"/>
46                 <enum name="Dialing"/>
47                 <enum name="Ring"/>
48                 <enum name="Ringing"/>
49                 <enum name="Up"/>
50                 <enum name="Busy"/>
51                 <enum name="Dialing Offhook"/>
52                 <enum name="Pre-ring"/>
53                 <enum name="Unknown"/>
54             </enumlist>
55         </xsl:element>
56         <xsl:element name="parameter">
57             <xsl:attribute name="name">
58                 <xsl:value-of select="concat(@prefix,'CallerIDNum')"/>
59             </xsl:attribute>
60         </xsl:element>
61         <xsl:element name="parameter">
62             <xsl:attribute name="name">
63                 <xsl:value-of select="concat(@prefix,'CallerIDName')"/>
64             </xsl:attribute>
65         </xsl:element>
66         <xsl:element name="parameter">
67             <xsl:attribute name="name">
68                 <xsl:value-of select="concat(@prefix,'ConnectedLineNum')"/>
69             </xsl:attribute>
70         </xsl:element>
71         <xsl:element name="parameter">
72             <xsl:attribute name="name">
73                 <xsl:value-of select="concat(@prefix,'ConnectedLineName')"/>
74             </xsl:attribute>
75         </xsl:element>
76         <xsl:element name="parameter">
77             <xsl:attribute name="name">
78                 <xsl:value-of select="concat(@prefix,'AccountCode')"/>
79             </xsl:attribute>
80         </xsl:element>
81         <xsl:element name="parameter">
82             <xsl:attribute name="name">
83                 <xsl:value-of select="concat(@prefix,'Context')"/>
84             </xsl:attribute>
85         </xsl:element>
86         <xsl:element name="parameter">
87             <xsl:attribute name="name">
88                 <xsl:value-of select="concat(@prefix,'Exten')"/>
89             </xsl:attribute>
90         </xsl:element>
91         <xsl:element name="parameter">
92             <xsl:attribute name="name">
93                 <xsl:value-of select="concat(@prefix,'Priority')"/>
94             </xsl:attribute>
95         </xsl:element>
96         <xsl:element name="parameter">
97             <xsl:attribute name="name">
98                 <xsl:value-of select="concat(@prefix,'Uniqueid')"/>
99             </xsl:attribute>
100         </xsl:element>
101         <xsl:element name="parameter">
102             <xsl:attribute name="name">
103                 <xsl:value-of select="concat(@prefix,'Linkedid')"/>
104             </xsl:attribute>
105             <para>Uniqueid of the oldest channel associated with this channel.</para>
106         </xsl:element>
107     </xsl:template>
108
109     <xsl:template match="bridge_snapshot">
110         <xsl:element name="parameter">
111             <xsl:attribute name="name">
112                 <xsl:value-of select="concat(@prefix,'BridgeUniqueid')"/>
113             </xsl:attribute>
114         </xsl:element>
115         <xsl:element name="parameter">
116             <xsl:attribute name="name">
117                 <xsl:value-of select="concat(@prefix,'BridgeType')"/>
118             </xsl:attribute>
119             <para>The type of bridge</para>
120         </xsl:element>
121         <xsl:element name="parameter">
122             <xsl:attribute name="name">
123                 <xsl:value-of select="concat(@prefix,'BridgeTechnology')"/>
124             </xsl:attribute>
125             <para>Technology in use by the bridge</para>
126         </xsl:element>
127         <xsl:element name="parameter">
128             <xsl:attribute name="name">
129                 <xsl:value-of select="concat(@prefix, 'BridgeCreator')"/>
130             </xsl:attribute>
131             <para>Entity that created the bridge if applicable</para>
132         </xsl:element>
133         <xsl:element name="parameter">
134             <xsl:attribute name="name">
135                 <xsl:value-of select="concat(@prefix, 'BridgeName')"/>
136             </xsl:attribute>
137             <para>Name used to refer to the bridge by its BridgeCreator if applicable</para>
138         </xsl:element>
139         <xsl:element name="parameter">
140             <xsl:attribute name="name">
141                 <xsl:value-of select="concat(@prefix,'BridgeNumChannels')"/>
142             </xsl:attribute>
143             <para>Number of channels in the bridge</para>
144         </xsl:element>
145     </xsl:template>
146 </xsl:stylesheet>