[asterisk-commits] eliel: trunk r198565 - /trunk/res/res_jabber.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jun 1 11:09:45 CDT 2009


Author: eliel
Date: Mon Jun  1 11:09:42 2009
New Revision: 198565

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=198565
Log:
Move JabberSend manager action from static docs to the AstXML form.

Modified:
    trunk/res/res_jabber.c

Modified: trunk/res/res_jabber.c
URL: http://svn.asterisk.org/svn-view/asterisk/trunk/res/res_jabber.c?view=diff&rev=198565&r1=198564&r2=198565
==============================================================================
--- trunk/res/res_jabber.c (original)
+++ trunk/res/res_jabber.c Mon Jun  1 11:09:42 2009
@@ -166,6 +166,26 @@
 			</enumlist>
 		</description>
 	</function>
+	<manager name="JabberSend" language="en_US">
+		<synopsis>
+			Sends a message to a Jabber Client.
+		</synopsis>
+		<syntax>
+			<xi:include xpointer="xpointer(/docs/manager[@name='Login']/syntax/parameter[@name='ActionID'])" />
+			<parameter name="Jabber" required="true">
+				<para>Client or transport Asterisk uses to connect to JABBER.</para>
+			</parameter>
+			<parameter name="JID" required="true">
+				<para>XMPP/Jabber JID (Name) of recipient.</para>
+			</parameter>
+			<parameter name="Message" required="true">
+				<para>Message to be sent to the buddy.</para>
+			</parameter>
+		</syntax>
+		<description>
+			<para>Sends a message to a Jabber Client.</para>
+		</description>
+	</manager>
  ***/
 
 /*! \todo This should really be renamed to xmpp.conf. For backwards compatibility, we
@@ -2980,13 +3000,6 @@
 	return &clients;
 }
 
-static const char mandescr_jabber_send[] =
-"Description: Sends a message to a Jabber Client.\n"
-"Variables: \n"
-"  Jabber:    Client or transport Asterisk uses to connect to JABBER\n"
-"  JID:       XMPP/Jabber JID (Name) of recipient\n" 
-"  Message:   Message to be sent to the buddy\n";
-
 /*! 
  * \brief  Send a Jabber Message via call from the Manager 
  * \param s mansession Manager session
@@ -3089,8 +3102,7 @@
 	ASTOBJ_CONTAINER_INIT(&clients);
 	if(!aji_reload(0))
 		return AST_MODULE_LOAD_DECLINE;
-	ast_manager_register2("JabberSend", EVENT_FLAG_SYSTEM, manager_jabber_send,
-			"Sends a message to a Jabber Client", mandescr_jabber_send);
+	ast_manager_register_xml("JabberSend", EVENT_FLAG_SYSTEM, manager_jabber_send);
 	ast_register_application_xml(app_ajisend, aji_send_exec);
 	ast_register_application_xml(app_ajistatus, aji_status_exec);
 	ast_cli_register_multiple(aji_cli, ARRAY_LEN(aji_cli));




More information about the asterisk-commits mailing list