From f5fda0eb74e4653282a2f5b25aa187c3ad16fe47 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Sat, 10 Mar 2012 20:06:46 +0000 Subject: 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 --- main/dial.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'main/dial.c') 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 -- cgit v1.2.3