2007-04-27 23:02:27 +00:00
|
|
|
/*
|
|
|
|
* An implementation of Common ISDN API 2.0 for Asterisk
|
|
|
|
*
|
2009-01-17 17:35:55 +00:00
|
|
|
* Copyright (C) 2006-2009 Cytronics & Melware
|
2007-04-27 23:02:27 +00:00
|
|
|
*
|
|
|
|
* Armin Schindler <armin@melware.de>
|
|
|
|
*
|
|
|
|
* This program is free software and may be modified and
|
|
|
|
* distributed under the terms of the GNU Public License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _PBX_CAPI_CHAT_H
|
|
|
|
#define _PBX_CAPI_CHAT_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* prototypes
|
|
|
|
*/
|
2010-12-10 22:46:01 +00:00
|
|
|
extern void pbx_capi_chat_init_module(void);
|
2007-04-27 23:02:27 +00:00
|
|
|
extern int pbx_capi_chat(struct ast_channel *c, char *param);
|
2009-04-09 22:44:44 +00:00
|
|
|
extern int pbx_capi_chat_associate_resource_plci(struct ast_channel *c, char *param);
|
2009-04-10 07:23:20 +00:00
|
|
|
extern struct capi_pvt* pbx_check_resource_plci(struct ast_channel *c);
|
2008-01-19 22:24:44 +00:00
|
|
|
#ifdef CC_AST_HAS_VERSION_1_6
|
|
|
|
extern char *pbxcli_capi_chatinfo(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a);
|
|
|
|
#else
|
2007-04-30 14:02:22 +00:00
|
|
|
extern int pbxcli_capi_chatinfo(int fd, int argc, char *argv[]);
|
2008-01-19 22:24:44 +00:00
|
|
|
#endif
|
2009-07-16 14:16:13 +00:00
|
|
|
extern int pbx_capi_chat_command (struct ast_channel *c, char *param);
|
2009-05-01 10:21:14 +00:00
|
|
|
extern int pbx_capi_chat_mute(struct ast_channel *c, char *param);
|
2009-05-14 21:57:35 +00:00
|
|
|
extern int pbx_capi_chat_play(struct ast_channel *c, char *param);
|
2010-11-24 17:08:11 +00:00
|
|
|
extern int pbx_capi_chat_connect(struct ast_channel *c, char *param);
|
2010-11-02 15:44:36 +00:00
|
|
|
int pbx_capi_chat_remove_user(const char* room, const char* name);
|
2007-04-27 23:02:27 +00:00
|
|
|
|
2010-11-03 22:04:22 +00:00
|
|
|
struct capichat_s;
|
|
|
|
const struct capichat_s *pbx_capi_chat_get_room_c(const struct capichat_s * room);
|
|
|
|
const char* pbx_capi_chat_get_room_name(const struct capichat_s * room);
|
|
|
|
unsigned int pbx_capi_chat_get_room_number(const struct capichat_s * room);
|
|
|
|
unsigned int pbx_capi_chat_get_room_members(const struct capichat_s * room);
|
|
|
|
struct ast_channel *pbx_capi_chat_get_room_channel(const struct capichat_s * room);
|
2010-11-05 09:58:12 +00:00
|
|
|
const struct capi_pvt* pbx_capi_chat_get_room_interface_c(const struct capichat_s * room);
|
2010-11-03 22:04:22 +00:00
|
|
|
int pbx_capi_chat_is_member_operator(const struct capichat_s * room);
|
|
|
|
int pbx_capi_chat_is_room_muted(const struct capichat_s * room);
|
|
|
|
int pbx_capi_chat_is_member_muted(const struct capichat_s * room);
|
|
|
|
int pbx_capi_chat_is_member_listener(const struct capichat_s * room);
|
|
|
|
int pbx_capi_chat_is_most_recent_user(const struct capichat_s * room);
|
2010-12-16 23:11:31 +00:00
|
|
|
unsigned int pbx_capi_chat_get_room_group (const struct capichat_s * room);
|
|
|
|
unsigned int pbx_capi_chat_get_room_group_members (const struct capichat_s * room);
|
2010-11-03 22:04:22 +00:00
|
|
|
|
|
|
|
void pbx_capi_lock_chat_rooms(void);
|
|
|
|
void pbx_capi_unlock_chat_rooms(void);
|
|
|
|
|
2007-04-27 23:02:27 +00:00
|
|
|
#endif
|