From 8d464b72110c9ff2320b1b8f6ef536fad8e031e5 Mon Sep 17 00:00:00 2001 From: "Eliel C. Sardanons" Date: Mon, 1 Jun 2009 16:09:42 +0000 Subject: [PATCH] Move JabberSend manager action from static docs to the AstXML form. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@198565 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_jabber.c | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/res/res_jabber.c b/res/res_jabber.c index 735d7b5959..46610fe203 100644 --- a/res/res_jabber.c +++ b/res/res_jabber.c @@ -166,6 +166,26 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") + + + Sends a message to a Jabber Client. + + + + + Client or transport Asterisk uses to connect to JABBER. + + + XMPP/Jabber JID (Name) of recipient. + + + Message to be sent to the buddy. + + + + Sends a message to a Jabber Client. + + ***/ /*! \todo This should really be renamed to xmpp.conf. For backwards compatibility, we @@ -2980,13 +3000,6 @@ struct aji_client_container *ast_aji_get_clients(void) 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 @@ static int load_module(void) 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));