acc.c File Reference

Acc:: Core accounting. More...

#include <stdio.h>
#include <time.h>
#include "../../dprint.h"
#include "../../error.h"
#include "../../mem/mem.h"
#include "../../usr_avp.h"
#include "../../db/db.h"
#include "../../parser/hf.h"
#include "../../parser/msg_parser.h"
#include "../../parser/parse_from.h"
#include "../../parser/digest/digest.h"
#include "../tm/t_funcs.h"
#include "acc_mod.h"
#include "acc.h"
#include "acc_extra.h"
#include "acc_logic.h"

Include dependency graph for acc.c:

Go to the source code of this file.

Defines

#define get_ft_body(_ft_hdr)   ((struct to_body*)_ft_hdr->parsed)
#define SET_EMPTY_VAL(_i)
#define SET_LOG_ATTR(_n, _atr)

Functions

void acc_log_init (void)
int acc_log_request (struct sip_msg *rq)
static int core2strar (struct sip_msg *req, str *c_vals, int *i_vals, char *t_vals)

Variables

struct acc_enviroment acc_env
static int int_arr [ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG]
struct acc_extraleg_info
static str log_attrs [ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG]
struct acc_extralog_extra
static char type_arr [ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG]
static str val_arr [ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG]


Detailed Description

Acc:: Core accounting.

Module: ACC :: The Kamailio accounting Module

Definition in file acc.c.


Define Documentation

#define get_ft_body ( _ft_hdr   )     ((struct to_body*)_ft_hdr->parsed)

Definition at line 103 of file acc.c.

Referenced by core2strar().

#define SET_EMPTY_VAL ( _i   ) 

Value:

do { \
      c_vals[_i].s = 0; \
      c_vals[_i].len = 0; \
   } while(0)

Definition at line 106 of file acc.c.

Referenced by core2strar().

#define SET_LOG_ATTR ( _n,
_atr   ) 

Value:

do { \
      log_attrs[_n].s=A_##_atr; \
      log_attrs[_n].len=A_##_atr##_LEN; \
      n++; \
   } while(0)

Definition at line 186 of file acc.c.

Referenced by acc_log_init().


Function Documentation

void acc_log_init ( void   ) 

Definition at line 193 of file acc.c.

References CALLID, FROMTAG, acc_extra::name, acc_extra::next, SET_LOG_ATTR, and TOTAG.

Referenced by mod_init().

int acc_log_request ( struct sip_msg rq  ) 

static int core2strar ( struct sip_msg req,
str c_vals,
int *  i_vals,
char *  t_vals 
) [inline, static]


Variable Documentation

int int_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] [static]

Definition at line 97 of file acc.c.

Referenced by acc_log_request().

Definition at line 105 of file acc_mod.c.

str log_attrs[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] [static]

Definition at line 184 of file acc.c.

Log extra attributes

Definition at line 118 of file acc_mod.c.

char type_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] [static]

Definition at line 98 of file acc.c.

Referenced by acc_log_request().

str val_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] [static]

Definition at line 96 of file acc.c.


Generated on Thu May 17 12:00:34 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6