Asterisk - The Open Source Telephony Project GIT-master-2de1a68
res_pjsip_body_generator_types.h
Go to the documentation of this file.
1/*
2 * Asterisk -- An open source telephony toolkit.
3 *
4 * Copyright (C) 2014, Digium, Inc.
5 *
6 * Mark Michelson <mmichelson@digium.com>
7 *
8 * See http://www.asterisk.org for more information about
9 * the Asterisk project. Please do not directly contact
10 * any of the maintainers of this project for assistance;
11 * the project provides a web site, mailing lists and IRC
12 * channels for your use.
13 *
14 * This program is free software, distributed under the terms of
15 * the GNU General Public License Version 2. See the LICENSE file
16 * at the top of the source tree.
17 */
18
19#ifndef _RES_PJSIP_BODY_GENERATOR_TYPES_H
20#define _RES_PJSIP_BODY_GENERATOR_TYPES_H
21
22#include "asterisk/pbx.h"
23
24/*! \brief Forward declaration for ao2_container so full astobj2.h is not required */
25struct ao2_container;
26
27/*!
28 * \brief structure used for presence XML bodies
29 *
30 * This is used for the following body types:
31 * \li application/pidf+xml
32 * \li application/xpidf+xml
33 * \li application/cpim-pidf+xml
34 * \li application/dialog-info+xml
35 */
37 /*! The extension of the current state change */
38 const char *exten;
39 /*! The extension state of the change */
41 /*! The presence state of the change */
43 /*! The presence subtype of the change */
45 /*! The presence message of the change */
47 /*! Subscriber user agent */
49 /*! Current device state information */
51 /*! Local dialog URI */
52 char local[PJSIP_MAX_URL_SIZE];
53 /*! Remote dialog URI */
54 char remote[PJSIP_MAX_URL_SIZE];
55 /*! Optional subscription */
57 /*! A datastores container to persist datastores */
59 /*! Allocation pool */
60 pj_pool_t *pool;
61};
62
63/*!
64 * \brief Message counter used for message-summary XML bodies
65 *
66 * This is used for application/simple-message-summary bodies.
67 */
69 /*! Number of old messages */
71 /*! Number of new messages */
73 /*! Message-Account */
74 char message_account[PJSIP_MAX_URL_SIZE];
75};
76
77#endif /* _RES_PJSIP_BODY_GENERATOR_TYPES_H */
Core PBX routines and definitions.
ast_extension_states
Extension states.
Definition: pbx.h:61
ast_presence_state
Definition: presencestate.h:26
Generic container type.
structure used for presence XML bodies
struct ast_sip_subscription * sub
enum ast_extension_states exten_state
struct ao2_container * device_state_info
enum ast_presence_state presence_state
Message counter used for message-summary XML bodies.
Structure representing a "virtual" SIP subscription.