summaryrefslogtreecommitdiff
path: root/include/asterisk/channel.h
diff options
context:
space:
mode:
authorMatthew Jordan <mjordan@digium.com>2014-12-22 14:33:24 +0000
committerMatthew Jordan <mjordan@digium.com>2014-12-22 14:33:24 +0000
commit0c38276d6e08c47bba50649e888b980df1a11f1c (patch)
tree1cfccdc6d05e9477c7d1b80ee553d75f89e07c0f /include/asterisk/channel.h
parent2afeadcc84846da9876311d461f67a0aaeddc47f (diff)
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
Diffstat (limited to 'include/asterisk/channel.h')
-rw-r--r--include/asterisk/channel.h1
1 files changed, 1 insertions, 0 deletions
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