43 #ifndef _ASTERISK_JABBER_H
44 #define _ASTERISK_JABBER_H
48 #include <openssl/ssl.h>
49 #include <openssl/err.h>
55 #define NET_IO_BUF_SIZE 4096
57 #define IKS_NET_EXPIRED 12
73 #define AJI_MAX_JIDLEN 3071
74 #define AJI_MAX_RESJIDLEN 1023
75 #define AJI_MAX_ATTRLEN 256
77 #define MUC_NS "http://jabber.org/protocol/muc"
156 char statusmessage[256];
157 char name_space[256];
enum sip_cc_notify_state state
#define AJI_MAX_RESJIDLEN
void ast_aji_buddy_destroy(struct aji_buddy *obj)
#define AST_LIST_HEAD(name, type)
Defines a structure to be used to hold a list of specified type.
struct aji_version * next
int ast_aji_send(struct aji_client *client, iks *x)
Wraps raw sending.
int ast_aji_disconnect(struct aji_client *client)
disconnect from jabber server.
const SSL_METHOD * ssl_method
int ast_aji_join_chat(struct aji_client *client, char *room, char *nick)
join a chatroom.
#define ASTOBJ_CONTAINER_COMPONENTS(type)
Create a container for ASTOBJs (with locking support).
struct aji_capabilities * next
int ast_aji_send_chat(struct aji_client *client, const char *address, const char *message)
sends messages.
int ast_aji_check_roster(void)
int ast_aji_create_chat(struct aji_client *client, char *room, char *server, char *topic)
create a chatroom.
#define ASTOBJ_COMPONENTS(type)
Add ASTOBJ components to a struct (with locking support).
char resource[AJI_MAX_RESJIDLEN]
unsigned int stream_flags
struct aji_version * versions
int ast_aji_invite_chat(struct aji_client *client, char *user, char *room, char *message)
invite to a chatroom.
A set of macros to manage forward-linked lists.
struct aji_resource * next
A set of macros implementing objects and containers. Macros are used for maximum performance, to support multiple inheritance, and to be easily integrated into existing structures without additional malloc calls, etc.
#define ASTOBJ_COMPONENTS_FULL(type, namelen, hashes)
Add ASTOBJ components to a struct (with locking support).
int ast_aji_leave_chat(struct aji_client *client, char *room, char *nick)
leave a chatroom.
int ast_aji_send_groupchat(struct aji_client *client, const char *nick, const char *address, const char *message)
sends message to a groupchat Prior to sending messages to a groupchat, one must be connected to it...
#define AST_LIST_ENTRY(type)
Declare a forward link structure inside a list entry.
struct aji_client * ast_aji_get_client(const char *name)
grab a aji_client structure by label name or JID. Bumps the refcount. (without the resource string) ...
structure to hold users read from users.conf
Structure used to handle boolean flags.
void ast_aji_client_destroy(struct aji_client *obj)
struct aji_message::@188 list
struct aji_capabilities * parent
struct aji_resource * resources
void ast_aji_increment_mid(char *mid)
increments the mid field for messages and other events.
struct aji_client_container * ast_aji_get_clients(void)