mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-05 20:55:26 +00:00
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:
@@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user