imc_cmd.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include "../../mem/shm_mem.h"
#include "../../mem/mem.h"
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../parser/parse_uri.h"
#include "imc.h"
#include "imc_cmd.h"

Include dependency graph for imc_cmd.c:

Go to the source code of this file.

Defines

#define IMC_BUF_SIZE   1024

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)
void imc_inv_callback (struct cell *t, int type, struct tmcb_params *ps)
int imc_parse_cmd (char *buf, int len, imc_cmd_p cmd)
int imc_room_broadcast (imc_room_p room, str *ctype, str *body)
int imc_send_message (str *src, str *dst, str *headers, str *body)

Variables

static char imc_body_buf [IMC_BUF_SIZE]
static str imc_hdr_ctype = { "Content-Type: text/plain\r\n", 26}
static str imc_msg_type = { "MESSAGE", 7 }


Define Documentation

#define IMC_BUF_SIZE   1024


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 
)

void imc_inv_callback ( struct cell t,
int  type,
struct tmcb_params ps 
)

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

int imc_room_broadcast ( imc_room_p  room,
str ctype,
str body 
)

int imc_send_message ( str src,
str dst,
str headers,
str body 
)


Variable Documentation

char imc_body_buf[IMC_BUF_SIZE] [static]

str imc_hdr_ctype = { "Content-Type: text/plain\r\n", 26} [static]

Definition at line 45 of file imc_cmd.c.

str imc_msg_type = { "MESSAGE", 7 } [static]

Definition at line 44 of file imc_cmd.c.


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