From 0c38276d6e08c47bba50649e888b980df1a11f1c Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Mon, 22 Dec 2014 14:33:24 +0000 Subject: presencestate: Allow channel drivers to provide presence state information This patch adds the ability for channel drivers to supply presence information in a similar manner to device state. The patch does not provide any channel driver implementations, but it does provide the core infrastructure necessary for channel drivers to provide such information. The core handles multiple providers of presence state information. Ordering of presence state is as follows: INVALID < NOT_SET < AVAILABLE < UNAVAILABLE < CHAT < AWAY < XA < DND Each provider can trump the previous if it provides a presence state that supercedes a previous one. Review: https://reviewboard.asterisk.org/r/4050 ASTERISK-24363 #close Reported by: Gareth Palmer patches: chan_presencestate-428146.patch uploaded by Gareth Palmer (License 5169) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@429967 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/channel.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/asterisk/channel.h') diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 45e94ce29..40d87c993 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -631,6 +631,7 @@ struct ast_channel_tech { struct ast_channel *(* const requester)(const char *type, struct ast_format_cap *cap, const struct ast_assigned_ids *assignedids, const struct ast_channel *requestor, const char *addr, int *cause); int (* const devicestate)(const char *device_number); /*!< Devicestate call back */ + int (* const presencestate)(const char *presence_provider, char **subtype, char **message); /*!< Presencestate callback */ /*! * \brief Start sending a literal DTMF digit -- cgit v1.2.3