[asterisk-commits] eliel: branch eliel/manager-xmldoc r196226 - /team/eliel/manager-xmldoc/apps/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 22 11:08:03 CDT 2009


Author: eliel
Date: Fri May 22 11:08:00 2009
New Revision: 196226

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=196226
Log:
Move PlayDTMF manager action documentation to XML docs.

Modified:
    team/eliel/manager-xmldoc/apps/app_senddtmf.c

Modified: team/eliel/manager-xmldoc/apps/app_senddtmf.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/eliel/manager-xmldoc/apps/app_senddtmf.c?view=diff&rev=196226&r1=196225&r2=196226
==============================================================================
--- team/eliel/manager-xmldoc/apps/app_senddtmf.c (original)
+++ team/eliel/manager-xmldoc/apps/app_senddtmf.c Fri May 22 11:08:00 2009
@@ -59,6 +59,23 @@
 			<ref type="application">Read</ref>
 		</see-also>
 	</application>
+	<manager name="PlayDTMF" language="en_US">
+		<synopsis>
+			Play DTMF signal on a specific channel.
+		</synopsis>
+		<syntax>
+			<xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
+			<parameter name="Channel" required="true">
+				<para>Channel name to send digit to.</para>
+			</parameter>
+			<parameter name="Digit" required="true">
+				<para>The DTMF digit to play.</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Plays a dtmf digit on the specified channel.</para>
+		</description>
+	</manager>
  ***/
 static char *app = "SendDTMF";
 
@@ -89,12 +106,6 @@
 
 	return res;
 }
-
-static const char mandescr_playdtmf[] =
-"Description: Plays a dtmf digit on the specified channel.\n"
-"Variables: (all are required)\n"
-"	Channel: Channel name to send digit to\n"
-"	Digit: The dtmf digit to play\n";
 
 static int manager_play_dtmf(struct mansession *s, const struct message *m)
 {
@@ -136,7 +147,7 @@
 {
 	int res;
 
-	res = ast_manager_register2( "PlayDTMF", EVENT_FLAG_CALL, manager_play_dtmf, "Play DTMF signal on a specific channel.", mandescr_playdtmf );
+	res = ast_manager_register_xml("PlayDTMF", EVENT_FLAG_CALL, manager_play_dtmf);
 	res |= ast_register_application_xml(app, senddtmf_exec);
 
 	return res;




More information about the asterisk-commits mailing list