summaryrefslogtreecommitdiff
path: root/main/dial.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2012-03-10 20:06:46 +0000
committerJoshua Colp <jcolp@digium.com>2012-03-10 20:06:46 +0000
commitf5fda0eb74e4653282a2f5b25aa187c3ad16fe47 (patch)
tree213b917ef9945475139d4a407f3f454568930b7a /main/dial.c
parent4657b016ad8250c999f3fad110edf0a1f8c74acd (diff)
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
Diffstat (limited to 'main/dial.c')
-rw-r--r--main/dial.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/main/dial.c b/main/dial.c
index 24dbf2841..538471719 100644
--- a/main/dial.c
+++ b/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