[asterisk-commits] eliel: branch group/appdocsxml r147139 - /team/group/appdocsxml/funcs/func_cdr.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Oct 7 10:33:07 CDT 2008


Author: eliel
Date: Tue Oct  7 10:33:07 2008
New Revision: 147139

URL: http://svn.digium.com/view/asterisk?view=rev&rev=147139
Log:
Move CDR() function to the new <enumlist> schema.

Modified:
    team/group/appdocsxml/funcs/func_cdr.c

Modified: team/group/appdocsxml/funcs/func_cdr.c
URL: http://svn.digium.com/view/asterisk/team/group/appdocsxml/funcs/func_cdr.c?view=diff&rev=147139&r1=147138&r2=147139
==============================================================================
--- team/group/appdocsxml/funcs/func_cdr.c (original)
+++ team/group/appdocsxml/funcs/func_cdr.c Tue Oct  7 10:33:07 2008
@@ -44,24 +44,62 @@
 		<syntax>
 			<parameter name="name" required="true">
 				<para>CDR field name:</para>
-				<para><literal>clid</literal>: Caller ID.</para>
-				<para><literal>lastdata</literal>: Last application arguments.</para>
-				<para><literal>disposition</literal>: ANSWERED, NO ANSWER, BUSY.</para>
-				<para><literal>src</literal>: Source.</para>
-				<para><literal>start</literal>:Time the call started.</para>
-				<para><literal>amaflags</literal>: DOCUMENTATION, BILL, IGNORE, etc.</para>
-				<para><literal>dst</literal>: Destination.</para>
-				<para><literal>answer</literal>: Time the call was answered.</para>
-				<para><literal>accountcode</literal>: The channel's account code.</para>
-				<para><literal>dcontext</literal>: Destination context.</para>
-				<para><literal>end</literal>: Time the call ended.</para>
-				<para><literal>uniqueid</literal>: The channel's unique id.</para>
-				<para><literal>dstchannel</literal>: Destination channel.</para>
-				<para><literal>duration</literal>: Duration of the call.</para>
-				<para><literal>userfield</literal>: The channel's user specified field.</para>
-				<para><literal>lastapp</literal>: Last application.</para>
-				<para><literal>billsec</literal>: Duration of the call once it was answered.</para>
-				<para><literal>channel</literal>: Channel name.</para>
+				<enumlist>
+					<enum name="clid">
+						<para>Caller ID.</para>
+					</enum>
+					<enum name="lastdata">
+						<para>Last application arguments.</para>
+					</enum>
+					<enum name="disposition">
+						<para>ANSWERED, NO ANSWER, BUSY.</para>
+					</enum>
+					<enum name="src">
+						<para>Source.</para>
+					</enum>
+					<enum name="start">
+						<para>Time the call started.</para>
+					</enum>
+					<enum name="amaflags">
+						<para>DOCUMENTATION, BILL, IGNORE, etc.</para>
+					</enum>
+					<enum name="dst">
+						<para>Destination.</para>
+					</enum>
+					<enum name="answer">
+						<para>Time the call was answered.</para>
+					</enum>
+					<enum name="accountcode">
+						<para>The channel's account code.</para>
+					</enum>
+					<enum name="dcontext">
+						<para>Destination context.</para>
+					</enum>
+					<enum name="end">
+						<para>Time the call ended.</para>
+					</enum>
+					<enum name="uniqueid">
+						<para>The channel's unique id.</para>
+					</enum>
+					<enum name="dstchannel">
+						<para>Destination channel.</para>
+					</enum>
+					<enum name="duration">
+						<para>Duration of the call.</para>
+					</enum>
+					<enum name="userfield">
+						<para>The channel's user specified field.</para>
+					</enum>
+					<enum name="lastapp">
+						<para>Last application.</para>
+					</enum>
+					<enum name="billsec">
+						<para>Duration of the call once it was answered.</para>
+					</enum>
+					<enum name="channel">
+						<para>Channel name.</para>
+					</enum>
+				</enumlist>
 			</parameter>
 			<parameter name="options" required="false">
 				<optionlist>
@@ -94,14 +132,32 @@
 			setting the <literal>accountcode</literal>, <literal>userfield</literal>, or
 			<literal>amaflags</literal>.</para></note>
 			<para>Raw values for <literal>disposition</literal>:</para>
-			<para>1 = NO ANSWER</para>
-			<para>2 = BUSY</para>
-			<para>3 = FAILED</para>
-			<para>4 = ANSWERED</para>
+			<enumlist>
+				<enum name="1">
+					<para>NO ANSWER</para>
+				</enum>
+				<enum name="2">
+					<para>BUSY</para>
+				</enum>
+				<enum name="3">
+					<para>FAILED</para>
+				</enum>
+				<enum name="4">
+					<para>ANSWERED</para>
+				</enum>
+			</enumlist>
 			<para>Raw values for <literal>amaflags</literal>:</para>
-			<para>1 = OMIT</para>
-			<para>2 = BILLING</para>
-			<para>3 = DOCUMENTATION</para>
+			<enumlist>
+				<enum name="1">
+					<para>OMIT</para>
+				</enum>
+				<enum name="2">
+					<para>BILLING</para>
+				</enum>
+				<enum name="3">
+					<para>DOCUMENTATION</para>
+				</enum>
+			</enumlist>
 			<para>Example: exten => 1,1,Set(CDR(userfield)=test)</para>
 		</description>
 	</function>




More information about the asterisk-commits mailing list