imc_cmd.h File Reference

#include "../../parser/parse_uri.h"
#include "../../str.h"
#include "imc_mng.h"

Include dependency graph for imc_cmd.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  _imc_cmd

Defines

#define IMC_CMD_ACCEPT   "accept"
#define IMC_CMD_CREATE   "create"
#define IMC_CMD_DENY   "deny"
#define IMC_CMD_DESTROY   "destroy"
#define IMC_CMD_EXIT   "exit"
#define IMC_CMD_INVITE   "invite"
#define IMC_CMD_JOIN   "join"
#define IMC_CMD_LIST   "list"
#define IMC_CMD_MAX_PARAM   5
#define IMC_CMD_REMOVE   "remove"
#define IMC_CMD_START   '#'
#define IMC_CMD_START_STR   "#"
#define IMC_CMDID_ACCEPT   5
#define IMC_CMDID_CREATE   1
#define IMC_CMDID_DENY   6
#define IMC_CMDID_DESTROY   8
#define IMC_CMDID_EXIT   4
#define IMC_CMDID_HELP   9
#define IMC_CMDID_INVITE   2
#define IMC_CMDID_JOIN   3
#define IMC_CMDID_LIST   10
#define IMC_CMDID_REMOVE   7
#define IMC_CMDID_UNKNOWN   11
#define IMC_HELP_MSG   "\r\n"IMC_CMD_START_STR IMC_CMD_CREATE" <room_name> - \create new connference room\r\n\"IMC_CMD_START_STR IMC_CMD_JOIN" [<room_name>] - \join the conference room\r\n\"IMC_CMD_START_STR IMC_CMD_INVITE" <user_name> [<room_name>] - \invite a user to join a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_ACCEPT" - \accept invitation to join a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_DENY" - \deny invitation to join a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_REMOVE" <user_name> [<room_name>] - \remove an user from the conference room\r\n\"IMC_CMD_START_STR IMC_CMD_LIST" - \list members is a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_EXIT" [<room_name>] - \exit from a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_DESTROY" [<room_name>] - \destroy conference room\r\n"
#define IMC_HELP_MSG_LEN   (sizeof(IMC_HELP_MSG)-1)
#define IMC_ROOM_PRIVATE   "private"
#define IMC_ROOM_PRIVATE_LEN   (sizeof(IMC_ROOM_PRIVATE)-1)

Typedefs

typedef struct _imc_cmdimc_cmd_p
typedef struct _imc_cmd imc_cmd_t

Functions

int imc_handle_accept (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_create (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_deny (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_destroy (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_exit (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_help (struct sip_msg *msg, imc_cmd_t *cmd, str *src, str *dst)
int imc_handle_invite (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_join (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_list (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_message (struct sip_msg *msg, str *msgbody, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_remove (struct sip_msg *msg, imc_cmd_t *cmd, struct sip_uri *src, struct sip_uri *dst)
int imc_handle_unknown (struct sip_msg *msg, imc_cmd_t *cmd, str *src, str *dst)
int imc_parse_cmd (char *buf, int len, imc_cmd_p cmd)


Define Documentation

#define IMC_CMD_ACCEPT   "accept"

Definition at line 57 of file imc_cmd.h.

#define IMC_CMD_CREATE   "create"

Definition at line 53 of file imc_cmd.h.

#define IMC_CMD_DENY   "deny"

Definition at line 58 of file imc_cmd.h.

#define IMC_CMD_DESTROY   "destroy"

Definition at line 60 of file imc_cmd.h.

#define IMC_CMD_EXIT   "exit"

Definition at line 56 of file imc_cmd.h.

#define IMC_CMD_INVITE   "invite"

Definition at line 54 of file imc_cmd.h.

#define IMC_CMD_JOIN   "join"

Definition at line 55 of file imc_cmd.h.

#define IMC_CMD_LIST   "list"

Definition at line 61 of file imc_cmd.h.

#define IMC_CMD_MAX_PARAM   5

Definition at line 88 of file imc_cmd.h.

Referenced by imc_parse_cmd().

#define IMC_CMD_REMOVE   "remove"

Definition at line 59 of file imc_cmd.h.

#define IMC_CMD_START   '#'

Definition at line 38 of file imc_cmd.h.

#define IMC_CMD_START_STR   "#"

Definition at line 39 of file imc_cmd.h.

#define IMC_CMDID_ACCEPT   5

Definition at line 45 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_CREATE   1

Definition at line 41 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_DENY   6

Definition at line 46 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_DESTROY   8

Definition at line 48 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_EXIT   4

Definition at line 44 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_HELP   9

Definition at line 49 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_INVITE   2

Definition at line 42 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_JOIN   3

Definition at line 43 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_LIST   10

Definition at line 50 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_REMOVE   7

Definition at line 47 of file imc_cmd.h.

Referenced by imc_manager(), and imc_parse_cmd().

#define IMC_CMDID_UNKNOWN   11

Definition at line 51 of file imc_cmd.h.

Referenced by imc_parse_cmd().

#define IMC_HELP_MSG   "\r\n"IMC_CMD_START_STR IMC_CMD_CREATE" <room_name> - \create new connference room\r\n\"IMC_CMD_START_STR IMC_CMD_JOIN" [<room_name>] - \join the conference room\r\n\"IMC_CMD_START_STR IMC_CMD_INVITE" <user_name> [<room_name>] - \invite a user to join a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_ACCEPT" - \accept invitation to join a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_DENY" - \deny invitation to join a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_REMOVE" <user_name> [<room_name>] - \remove an user from the conference room\r\n\"IMC_CMD_START_STR IMC_CMD_LIST" - \list members is a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_EXIT" [<room_name>] - \exit from a conference room\r\n\"IMC_CMD_START_STR IMC_CMD_DESTROY" [<room_name>] - \destroy conference room\r\n"

Definition at line 66 of file imc_cmd.h.

Referenced by imc_handle_help().

#define IMC_HELP_MSG_LEN   (sizeof(IMC_HELP_MSG)-1)

Definition at line 85 of file imc_cmd.h.

Referenced by imc_handle_help().

#define IMC_ROOM_PRIVATE   "private"

Definition at line 63 of file imc_cmd.h.

Referenced by imc_handle_create().

#define IMC_ROOM_PRIVATE_LEN   (sizeof(IMC_ROOM_PRIVATE)-1)

Definition at line 64 of file imc_cmd.h.

Referenced by imc_handle_create().


Typedef Documentation

typedef struct _imc_cmd * imc_cmd_p

typedef struct _imc_cmd imc_cmd_t


Function Documentation

int imc_handle_accept ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_create ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_deny ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_destroy ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_exit ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_help ( struct sip_msg msg,
imc_cmd_t cmd,
str src,
str dst 
)

Definition at line 979 of file imc_cmd.c.

References IMC_HELP_MSG, IMC_HELP_MSG_LEN, _str::len, LM_DBG, NULL, outbound_proxy, _str::s, tm_binds::t_request, and tmb.

Referenced by imc_manager().

int imc_handle_invite ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_join ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_list ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_message ( struct sip_msg msg,
str msgbody,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_remove ( struct sip_msg msg,
imc_cmd_t cmd,
struct sip_uri src,
struct sip_uri dst 
)

int imc_handle_unknown ( struct sip_msg msg,
imc_cmd_t cmd,
str src,
str dst 
)

int imc_parse_cmd ( char *  buf,
int  len,
imc_cmd_p  cmd 
)


Generated on Wed May 23 06:01:04 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6