Merge "ARI: Re-implement the ARI dial command, allowing for early bridging."

This commit is contained in:
zuul
2016-05-31 12:39:53 -05:00
committed by Gerrit Code Review
4 changed files with 480 additions and 106 deletions

View File

@@ -672,6 +672,18 @@ int stasis_app_control_queue_control(struct stasis_app_control *control,
*/
struct ast_bridge *stasis_app_bridge_create(const char *type, const char *name, const char *id);
/*!
* \brief Create an invisible bridge of the specified type.
*
* \param type The type of bridge to be created
* \param name Optional name to give to the bridge
* \param id Optional Unique ID to give to the bridge
*
* \return New bridge.
* \return \c NULL on error.
*/
struct ast_bridge *stasis_app_bridge_create_invisible(const char *type, const char *name, const char *id);
/*!
* \brief Returns the bridge with the given id.
* \param bridge_id Uniqueid of the bridge.
@@ -855,20 +867,23 @@ 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
* \param dialstring The dialstring to pass to the channel driver
* \param timeout Optional timeout in milliseconds
*/
int stasis_app_control_dial(struct stasis_app_control *control, struct ast_dial *dial);
int stasis_app_control_dial(struct stasis_app_control *control,
const char *dialstring, unsigned int timeout);
/*!
* \brief Get dial structure on a control
* \brief Let Stasis app internals shut down
*
* This is called when res_stasis is unloaded. It ensures that
* the Stasis app internals can free any resources they may have
* allocated during the time that res_stasis was loaded.
*/
struct ast_dial *stasis_app_get_dial(struct stasis_app_control *control);
void stasis_app_control_shutdown(void);
/*! @} */
#endif /* _ASTERISK_STASIS_APP_H */