aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-15 17:06:23 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-15 17:06:23 +0000
commit1e5fadf04d0a542f347bafee1a401a84684f9cec (patch)
tree0ee2cba4b60b7843bf03b5cea55baa3ffd4d4a73 /include
parent3285486390c9652b274d41fb62d57541965a62e4 (diff)
Add distributed devicestate via the XMPP protocol.
(closes issue #15757) Reported by: Marquis Patches: distributed_devstate-XMPP.txt uploaded by lmadsen (license 10) Tested by: Marquis, lmadsen, marcelloceschia Review: https://reviewboard.asterisk.org/r/351/ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@270519 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/jabber.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/include/asterisk/jabber.h b/include/asterisk/jabber.h
index a3ee0b2fa..5f5dd14f3 100644
--- a/include/asterisk/jabber.h
+++ b/include/asterisk/jabber.h
@@ -1,7 +1,7 @@
/*
* Asterisk -- An open source telephony toolkit.
*
- * Copyright (C) 1999 - 2005, Digium, Inc.
+ * Copyright (C) 1999 - 2010, Digium, Inc.
*
* Matt O'Gorman <mogorman@digium.com>
*
@@ -85,13 +85,19 @@ enum aji_state {
enum {
AJI_AUTOPRUNE = (1 << 0),
AJI_AUTOREGISTER = (1 << 1),
- AJI_AUTOACCEPT = (1 << 2)
+ AJI_AUTOACCEPT = (1 << 2),
+};
+
+enum {
+ AJI_XEP0248 = (1 << 0),
+ AJI_PUBSUB = (1 << 1),
+ AJI_PUBSUB_AUTOCREATE = (1 << 2),
};
enum aji_btype {
- AJI_USER=0,
- AJI_TRANS=1,
- AJI_UTRANS=2
+ AJI_USER = 0,
+ AJI_TRANS = 1,
+ AJI_UTRANS = 2,
};
struct aji_version {
@@ -145,6 +151,7 @@ struct aji_client {
char password[160];
char user[AJI_MAX_JIDLEN];
char serverhost[AJI_MAX_RESJIDLEN];
+ char pubsub_node[AJI_MAX_RESJIDLEN];
char statusmessage[256];
char name_space[256];
char sid[10]; /* Session ID */
@@ -170,6 +177,7 @@ struct aji_client {
int timeout;
int message_timeout;
int authorized;
+ int distribute_events;
struct ast_flags flags;
int component; /* 0 client, 1 component */
struct aji_buddy_container buddies;