2 * Asterisk -- An open source telephony toolkit.
4 * Copyright (C) 2014, Digium, Inc.
6 * Mark Michelson <mmichelson@digium.com>
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.
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.
19 #ifndef _RES_PJSIP_BODY_GENERATOR_TYPES_H
20 #define _RES_PJSIP_BODY_GENERATOR_TYPES_H
22 #include "asterisk/pbx.h"
25 * \brief structure used for presence XML bodies
27 * This is used for the following body types:
28 * \li application/pidf+xml
29 * \li application/xpidf+xml
30 * \li application/cpim-pidf+xml
32 struct ast_sip_exten_state_data {
33 /*! The extension of the current state change */
35 /*! The extension state of the change */
36 enum ast_extension_states exten_state;
37 /*! The presence state of the change */
38 enum ast_presence_state presence_state;
39 /*! Current device state information */
40 struct ao2_container *device_state_info;
41 /*! Local dialog URI */
42 char local[PJSIP_MAX_URL_SIZE];
43 /*! Remote dialog URI */
44 char remote[PJSIP_MAX_URL_SIZE];
45 /*! Allocation pool */
50 * \brief Message counter used for message-summary XML bodies
52 * This is used for application/simple-message-summary bodies.
54 struct ast_sip_message_accumulator {
55 /*! Number of old messages */
57 /*! Number of new messages */
61 #endif /* _RES_PJSIP_BODY_GENERATOR_TYPES_H */