summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/manager.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/manager.h b/include/asterisk/manager.h
index 35fea8e02..0506c246e 100644
--- a/include/asterisk/manager.h
+++ b/include/asterisk/manager.h
@@ -57,6 +57,13 @@
#define AMI_VERSION "1.1"
#define DEFAULT_MANAGER_PORT 5038 /* Default port for Asterisk management via TCP */
+/*! \name Constant return values
+ *\note Currently, returning anything other than zero causes the session to terminate.
+ */
+/*@{ */
+#define AMI_SUCCESS (0)
+#define AMI_DESTROY (-1)
+
/*! \name Manager event classes */
/*@{ */
#define EVENT_FLAG_SYSTEM (1 << 0) /* System events such as module load/unload */