ARI: Implement channel dial.

This creates a new outbound channel, and bridges it to a channel already in
the Stasis application.

(closes issue ASTERISK-21620)

Review: https://reviewboard.asterisk.org/r/2634/


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393326 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jason Parker
2013-07-01 18:19:15 +00:00
parent f306dbd841
commit f41faf0b7d
6 changed files with 119 additions and 1 deletions

View File

@@ -136,6 +136,20 @@ struct stasis_app_control *stasis_app_control_find_by_channel_id(
const char *stasis_app_control_get_channel_id(
const struct stasis_app_control *control);
/*!
* \brief Dial an endpoint and bridge it to a channel in \c res_stasis
*
* If the channel is no longer in \c res_stasis, this function does nothing.
*
* \param control Control for \c res_stasis
* \param endpoint The endpoint to dial.
* \param timeout The amount of time to wait for answer, before giving up.
*
* \return 0 for success
* \return -1 for error.
*/
int stasis_app_control_dial(struct stasis_app_control *control, const char *endpoint, int timeout);
/*!
* \brief Exit \c res_stasis and continue execution in the dialplan.
*