git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368712
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
/*!
* \brief Lock the given channel, then request softhangup on the channel with the given causecode
/*!
* \brief Lock the given channel, then request softhangup on the channel with the given causecode
- * \param obj channel on which to hang up
- * \param causecode cause code to use
- * \return 0
+ * \param chan channel on which to hang up
+ * \param causecode cause code to use (Zero if don't use cause code)
+ * \return Nothing
-int ast_channel_softhangup_withcause_locked(void *obj, int causecode);
+void ast_channel_softhangup_withcause_locked(struct ast_channel *chan, int causecode);
/*!
* \brief Compare a offset with the settings of when to hang a channel up
/*!
* \brief Compare a offset with the settings of when to hang a channel up
-int ast_channel_softhangup_withcause_locked(void *obj, int causecode)
+void ast_channel_softhangup_withcause_locked(struct ast_channel *chan, int causecode)
- struct ast_channel *chan = obj;
-
ast_channel_lock(chan);
if (causecode > 0) {
ast_channel_lock(chan);
if (causecode > 0) {
ast_softhangup_nolock(chan, AST_SOFTHANGUP_EXPLICIT);
ast_channel_unlock(chan);
ast_softhangup_nolock(chan, AST_SOFTHANGUP_EXPLICIT);
ast_channel_unlock(chan);
}
static int ast_channel_softhangup_cb(void *obj, void *arg, int flags)
}
static int ast_channel_softhangup_cb(void *obj, void *arg, int flags)