summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2008-01-25 02:52:10 +0000
committerJoshua Colp <jcolp@digium.com>2008-01-25 02:52:10 +0000
commit0b898073d1973992d5e56c4b712e402f48ad3e78 (patch)
tree4163b0ad6c4236b872a3671d3cbea81ae4b67d95 /include/asterisk
parent3d77693090e754a6d1769cba037830bc832b85ec (diff)
Add an API call that steals the answered channel so that a destruction of the dialing structure does not hang it up.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100325 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/dial.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/asterisk/dial.h b/include/asterisk/dial.h
index 9a2478070..fe4b63e93 100644
--- a/include/asterisk/dial.h
+++ b/include/asterisk/dial.h
@@ -82,6 +82,12 @@ enum ast_dial_result ast_dial_run(struct ast_dial *dial, struct ast_channel *cha
*/
struct ast_channel *ast_dial_answered(struct ast_dial *dial);
+/*! \brief Steal the channel that answered
+ * \note Returns the Asterisk channel that answered and removes it from the dialing structure
+ * \param dial Dialing structure
+ */
+struct ast_channel *ast_dial_answered_steal(struct ast_dial *dial);
+
/*! \brief Return state of dial
* \note Returns the state of the dial attempt
* \param dial Dialing structure