diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-15 17:06:23 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2010-06-15 17:06:23 +0000 |
commit | 81c15adfa28fbda4005aa59944493c03e46ade56 (patch) | |
tree | 0ee2cba4b60b7843bf03b5cea55baa3ffd4d4a73 /include | |
parent | be0249427eb15a0e737f60dee7a1dfc71d3d4a36 (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: https://origsvn.digium.com/svn/asterisk/trunk@270519 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/jabber.h | 18 |
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; |