[asterisk-commits] dlee: branch dlee/stasis-http r382374 - in /team/dlee/stasis-http: ./ include...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Mar 4 10:22:42 CST 2013


Author: dlee
Date: Mon Mar  4 10:22:39 2013
New Revision: 382374

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=382374
Log:
Comments
........

Merged revisions 382373 from http://svn.asterisk.org/svn/asterisk/team/dlee/stasis-app

Modified:
    team/dlee/stasis-http/   (props changed)
    team/dlee/stasis-http/include/asterisk/app_stasis.h

Propchange: team/dlee/stasis-http/
------------------------------------------------------------------------------
--- svnmerge-integrated (original)
+++ svnmerge-integrated Mon Mar  4 10:22:39 2013
@@ -1,1 +1,1 @@
-/team/dlee/stasis-app:1-382354
+/team/dlee/stasis-app:1-382373

Modified: team/dlee/stasis-http/include/asterisk/app_stasis.h
URL: http://svnview.digium.com/svn/asterisk/team/dlee/stasis-http/include/asterisk/app_stasis.h?view=diff&rev=382374&r1=382373&r2=382374
==============================================================================
--- team/dlee/stasis-http/include/asterisk/app_stasis.h (original)
+++ team/dlee/stasis-http/include/asterisk/app_stasis.h Mon Mar  4 10:22:39 2013
@@ -21,34 +21,35 @@
 
 /*! \file
  *
- * \brief Stasis Application API.
+ * \brief Stasis Application API. See \ref app_stasis "Stasis Application API"
+ * for detailed documentation.
+ *
+ * \author David M. Lee, II <dlee at digium.com>
+ * \since 12
+ *
+ * \page app_stasis Stasis Application API
  *
  * This is the API that binds the Stasis dialplan application to external
- * Stasis applications.
+ * Stasis applications, such as \c res_stasis_websocket.
  *
- * \author David M. Lee, II <dlee at digium.com>
+ * This module registers a dialplan function named \c Stasis, which is used to
+ * put a channel into the named Stasis app. As a channel enters and leaves the
+ * Stasis diaplan applcation, the Stasis app receives a \c 'stasis-start' and \c
+ * 'stasis-end' events.
+ *
+ * Stasis apps register themselves using the \ref stasis_app_register and
+ * stasis_app_unregister functions. Messages are sent to an appliction using
+ * \ref stasis_app_send.
+ *
+ * Finally, Stasis apps control channels through the use of the \ref
+ * stasis_app_control object, and the family of \c stasis_app_control_*
+ * functions.
  */
 
 #include "asterisk/channel.h"
 #include "asterisk/json.h"
 
 /*! @{ */
-
-/*! \brief Handler for a registered Stasis applicatoin. */
-struct stasis_app;
-
-/*!
- * \brief Send a message to the given Stasis application.
- *
- * The message given to the handler is a borrowed copy. If you want to keep a
- * reference to it, you should use \c ast_ref() to keep it around.
- *
- * \param app_name Name of the application to invoke.
- * \param message Message to send (borrowed reference)
- * \return 0 for success.
- * \return -1 for error.
- */
-int stasis_app_send(const char *app_name, struct ast_json *message);
 
 /*!
  * \brief Callback for Stasis application handler.
@@ -79,6 +80,19 @@
  * \param app_name Name of the application to unregister.
  */
 void stasis_app_unregister(const char *app_name);
+
+/*!
+ * \brief Send a message to the given Stasis application.
+ *
+ * The message given to the handler is a borrowed copy. If you want to keep a
+ * reference to it, you should use \c ast_ref() to keep it around.
+ *
+ * \param app_name Name of the application to invoke.
+ * \param message Message to send (borrowed reference)
+ * \return 0 for success.
+ * \return -1 for error.
+ */
+int stasis_app_send(const char *app_name, struct ast_json *message);
 
 /*! @} */
 




More information about the asterisk-commits mailing list