diff options
author | Joshua Colp <jcolp@digium.com> | 2006-05-25 20:51:27 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2006-05-25 20:51:27 +0000 |
commit | 6b185c1bed620240e320237cbeafee5916b8700c (patch) | |
tree | 5ac581e56a5a8e0205acf238973b2f80852a4ee1 /include | |
parent | 16d0f580f90c310de0a61aa328ba9219b93bf66c (diff) |
Merge in branch which gives you the ability to set the hangup causecode using the Hangup application. (issue #7160 reported by kmilitzer branch by jcollie)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@30390 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/channel.h | 7 |
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 |