mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 00:30:20 +00:00
Transition app_page to using app_confbridge internally for the conference bridge portion of paging. This also adds a new 'announcement' option to ConfBridge user profiles.
Review: https://reviewboard.asterisk.org/r/1754/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@358730 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
11
main/dial.c
11
main/dial.c
@@ -47,6 +47,7 @@ struct ast_dial {
|
||||
enum ast_dial_result state; /*!< Status of dial */
|
||||
void *options[AST_DIAL_OPTION_MAX]; /*!< Global options */
|
||||
ast_dial_state_callback state_callback; /*!< Status callback */
|
||||
void *user_data; /*!< Attached user data */
|
||||
AST_LIST_HEAD(, ast_dial_channel) channels; /*!< Channels being dialed */
|
||||
pthread_t thread; /*!< Thread (if running in async) */
|
||||
ast_mutex_t lock; /*! Lock to protect the thread information above */
|
||||
@@ -1049,6 +1050,16 @@ void ast_dial_set_state_callback(struct ast_dial *dial, ast_dial_state_callback
|
||||
dial->state_callback = callback;
|
||||
}
|
||||
|
||||
void ast_dial_set_user_data(struct ast_dial *dial, void *user_data)
|
||||
{
|
||||
dial->user_data = user_data;
|
||||
}
|
||||
|
||||
void *ast_dial_get_user_data(struct ast_dial *dial)
|
||||
{
|
||||
return dial->user_data;
|
||||
}
|
||||
|
||||
/*! \brief Set the maximum time (globally) allowed for trying to ring phones
|
||||
* \param dial The dial structure to apply the time limit to
|
||||
* \param timeout Maximum time allowed
|
||||
|
||||
Reference in New Issue
Block a user