diff options
author | Joshua Colp <jcolp@digium.com> | 2016-04-06 05:43:47 -0500 |
---|---|---|
committer | Gerrit Code Review <gerrit2@gerrit.digium.api> | 2016-04-06 05:43:47 -0500 |
commit | 72ef79dc2de8f7e5df194654071988299ed5cabd (patch) | |
tree | c19a330cabb21079ab68447a2e34341bbdca4678 /include/asterisk/stasis_app.h | |
parent | 3b71f09bb7778ee48b2af13960a251a4b9934530 (diff) | |
parent | abbb2edd4c897fc3ac8a3589c5b799ff53ed10d2 (diff) |
Merge "ARI: Add method to Dial a created channel."
Diffstat (limited to 'include/asterisk/stasis_app.h')
-rw-r--r-- | include/asterisk/stasis_app.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/include/asterisk/stasis_app.h b/include/asterisk/stasis_app.h index 90ef82ebf..0863f9f98 100644 --- a/include/asterisk/stasis_app.h +++ b/include/asterisk/stasis_app.h @@ -461,23 +461,6 @@ 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 exten Extension to dial if no endpoint specified. - * \param context Context to use with extension. - * \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, const char *exten, - const char *context, int timeout); - -/*! * \brief Apply a bridge role to a channel controlled by a stasis app control * * \param control Control for \c res_stasis @@ -872,6 +855,20 @@ int stasis_app_channel_unreal_set_internal(struct ast_channel *chan); */ int stasis_app_channel_set_internal(struct ast_channel *chan); +struct ast_dial; + +/*! + * \brief Dial a channel + * \param control Control for \c res_stasis. + * \param dial The ast_dial for the outbound channel + */ +int stasis_app_control_dial(struct stasis_app_control *control, struct ast_dial *dial); + +/*! + * \brief Get dial structure on a control + */ +struct ast_dial *stasis_app_get_dial(struct stasis_app_control *control); + /*! @} */ #endif /* _ASTERISK_STASIS_APP_H */ |