From 1e5fadf04d0a542f347bafee1a401a84684f9cec Mon Sep 17 00:00:00 2001 From: tilghman Date: Tue, 15 Jun 2010 17:06:23 +0000 Subject: 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 --- include/asterisk/jabber.h | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'include') 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 * @@ -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; -- cgit v1.2.3