mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
support call duration limits on inbound OSP calls (issue #5346)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6721 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user