aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/channel.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h
index 17b6dd159..29e909e3a 100644
--- a/include/asterisk/channel.h
+++ b/include/asterisk/channel.h
@@ -1011,6 +1011,13 @@ int ast_channel_masquerade(struct ast_channel *original, struct ast_channel *clo
*/
const char *ast_cause2str(int state);
+/*! Convert the string form of a cause code to a number */
+/*!
+ * \param name string form of the cause
+ * Returns the cause code
+ */
+int ast_str2cause(const char *name);
+
/*! Gives the string form of a given channel state */
/*!
* \param state state to get the name of