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
This commit is contained in:
Joshua Colp
2008-01-25 02:52:10 +00:00
parent 3d77693090
commit 0b898073d1
2 changed files with 25 additions and 0 deletions

View File

@@ -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