diff options
author | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-04 23:28:57 +0000 |
---|---|---|
committer | kpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-10-04 23:28:57 +0000 |
commit | 01e127d11225f757af4ae92d59c68e58752f9727 (patch) | |
tree | 80c6dd781f33a51a5d3e19044bcd1c2d866bf681 /include/asterisk/channel.h | |
parent | 024f2617d8262e60fa1ee1a6496b079557fe72be (diff) |
support call duration limits on inbound OSP calls (issue #5346)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6721 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/channel.h')
-rwxr-xr-x | include/asterisk/channel.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 67b32b1b8..0d7cb6b05 100755 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -562,6 +562,18 @@ int ast_softhangup_nolock(struct ast_channel *chan, int cause); */ int ast_check_hangup(struct ast_channel *chan); +/*! Compare a offset with the settings of when to hang a channel up */ +/*! + * \param chan channel on which to check for hang up + * \param offset offset in seconds from current time + * \return 1, 0, or -1 + * This function compares a offset from current time with the absolute time + * out on a channel (when to hang up). If the absolute time out on a channel + * is earlier than current time plus the offset, it returns 1, if the two + * time values are equal, it return 0, otherwise, it retturn -1. + */ +int ast_channel_cmpwhentohangup(struct ast_channel *chan, time_t offset); + /*! Set when to hang a channel up */ /*! * \param chan channel on which to check for hang up |