summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2016-10-20 07:27:21 -0500
committerMark Michelson <mmichelson@digium.com>2016-11-01 09:43:46 -0500
commitc30d677333028f9768a3913bb73f49936805adc9 (patch)
treef4f160cc668f006dda96658201be7d2b4a06b33b /include/asterisk
parent3ad4719917c106a79546676ffec22af9a0921eb4 (diff)
res/stasis: Add CLI commands for displaying/debugging ARI apps
This patch adds three new CLI commands: - ari show apps: list the registered ARI applications - ari show app: show detailed information about an ARI application - ari set debug: dump events being sent to an ARI application Note that while these CLI commands live in the res_stasis module, we use the 'ari' family for these commands. This was done as most users of Asterisk aren't aware of the semantic differences between ARI and res_stasis, and some 'ari' CLI commands already exist. ASTERISK-26488 #close Change-Id: I51ad6ff0cabee0d69db06858c13f18b1c513c9f5
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/stasis_app.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h
index 3497bf437..137cbb945 100644
--- a/include/asterisk/stasis_app.h
+++ b/include/asterisk/stasis_app.h
@@ -77,6 +77,16 @@ typedef void (*stasis_app_cb)(void *data, const char *app_name,
struct ao2_container *stasis_app_get_all(void);
/*!
+ * \brief Retrieve a handle to a Stasis application by its name
+ *
+ * \param name The name of the registered Stasis application
+ *
+ * \return \c stasis_app on success.
+ * \return \c NULL on error.
+ */
+struct stasis_app *stasis_app_get_by_name(const char *name);
+
+/*!
* \brief Register a new Stasis application.
*
* If an application is already registered with the given name, the old