[Asterisk-cvs] asterisk/include/asterisk channel.h,1.102,1.103
kpfleming
kpfleming
Tue Oct 4 19:33:10 CDT 2005
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv1835/include/asterisk
Modified Files:
channel.h
Log Message:
support call duration limits on inbound OSP calls (issue #5346)
Index: channel.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/channel.h,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- channel.h 26 Sep 2005 17:17:56 -0000 1.102
+++ channel.h 4 Oct 2005 23:28:57 -0000 1.103
@@ -562,6 +562,18 @@
*/
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
More information about the svn-commits
mailing list