imc.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/ipc.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h>
#include "../../db/db.h"
#include "../../db/db_res.h"
#include "../../sr_module.h"
#include "../../dprint.h"
#include "../../ut.h"
#include "../../timer.h"
#include "../../str.h"
#include "../../mem/shm_mem.h"
#include "../../parser/parse_from.h"
#include "../../parser/parse_content.h"
#include "../../parser/contact/parse_contact.h"
#include "../../resolve.h"
#include "../../hash_func.h"
#include "../../mi/mi.h"
#include "../tm/tm_load.h"
#include "imc_mng.h"
#include "imc_cmd.h"

Include dependency graph for imc.c:

Go to the source code of this file.

Functions

int add_from_db (void)
static int child_init (int)
void destroy (void)
 Module destroy function.
static int imc_manager (struct sip_msg *, char *, char *)
static struct mi_rootimc_mi_list_members (struct mi_root *cmd, void *param)
static struct mi_rootimc_mi_list_rooms (struct mi_root *cmd, void *param)
void inv_callback (struct cell *t, int type, struct tmcb_params *ps)
static int mod_init (void)

Variables

imc_hentry_p _imc_htable = NULL
static cmd_export_t cmds []
static str db_url = str_init(DEFAULT_DB_URL)
struct module_exports exports
char imc_cmd_start_char
str imc_cmd_start_str = str_init(IMC_CMD_START_STR)
static str imc_col_domain = str_init("domain")
static str imc_col_flag = str_init("flag")
static str imc_col_name = str_init("name")
static str imc_col_room = str_init("room")
static str imc_col_username = str_init("username")
MODULE_VERSION db_con_timc_db = NULL
db_func_t imc_dbf
int imc_hash_size = 4
static str members_table = str_init("imc_members")
static mi_export_t mi_cmds []
str outbound_proxy = {NULL, 0}
static param_export_t params []
static str rooms_table = str_init("imc_rooms")
struct tm_binds tmb


Function Documentation

int add_from_db ( void   ) 

static int child_init ( int  rank  )  [static]

child init

Definition at line 402 of file imc.c.

References db_func::init, _str::len, LM_DBG, LM_ERR, _str::s, and db_func::use_table.

void destroy ( void   ) 

static int imc_manager ( struct sip_msg msg,
char *  str1,
char *  str2 
) [static]

static struct mi_root * imc_mi_list_members ( struct mi_root cmd,
void *  param 
) [static, read]

static struct mi_root * imc_mi_list_rooms ( struct mi_root cmd,
void *  param 
) [static, read]

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

TM callback function

static int mod_init ( void   )  [static]


Variable Documentation

Definition at line 77 of file imc.c.

cmd_export_t cmds[] [static]

Initial value:

{
   {"imc_manager",  (cmd_function)imc_manager, 0, 0, 0, REQUEST_ROUTE},
   {0,0,0,0,0,0}
}

Definition at line 99 of file imc.c.

str db_url = str_init(DEFAULT_DB_URL) [static]

Definition at line 65 of file imc.c.

module exports

Definition at line 136 of file imc.c.

Definition at line 80 of file imc.c.

Referenced by imc_manager(), imc_parse_cmd(), and mod_init().

str imc_cmd_start_str = str_init(IMC_CMD_START_STR)

Definition at line 79 of file imc.c.

Referenced by imc_handle_unknown().

str imc_col_domain = str_init("domain") [static]

Definition at line 72 of file imc.c.

str imc_col_flag = str_init("flag") [static]

Definition at line 73 of file imc.c.

str imc_col_name = str_init("name") [static]

Definition at line 75 of file imc.c.

str imc_col_room = str_init("room") [static]

Definition at line 74 of file imc.c.

str imc_col_username = str_init("username") [static]

Definition at line 71 of file imc.c.

MODULE_VERSION db_con_t* imc_db = NULL

parameters

Definition at line 63 of file imc.c.

Definition at line 64 of file imc.c.

int imc_hash_size = 4

str members_table = str_init("imc_members") [static]

Definition at line 69 of file imc.c.

mi_export_t mi_cmds[] [static]

Initial value:

 {
   { "imc_list_rooms",    imc_mi_list_rooms,    MI_NO_INPUT_FLAG,  0,  0 },
   { "imc_list_members",  imc_mi_list_members,  0,                 0,  0 },
   { 0, 0, 0, 0, 0}
}

Definition at line 127 of file imc.c.

str outbound_proxy = {NULL, 0}

param_export_t params[] [static]

Definition at line 105 of file imc.c.

str rooms_table = str_init("imc_rooms") [static]

Definition at line 68 of file imc.c.

struct tm_binds tmb

TM bind

Definition at line 94 of file imc.c.


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