diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-25 20:51:27 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-25 20:51:27 +0000 |
commit | 08fc2908d3a3edc75807a73189c78761a8bae7d7 (patch) | |
tree | 5ac581e56a5a8e0205acf238973b2f80852a4ee1 /include | |
parent | 2aa960bb03bb82858b18123a180a9524880bea39 (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: http://svn.digium.com/svn/asterisk/trunk@30390 f38db490-d61c-443f-a65b-d21fe96a405b
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 |