#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"

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_extra * | leg_info |
| static str | log_attrs [ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] |
| struct acc_extra * | log_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] |
Module: ACC :: The Kamailio accounting Module
Definition in file acc.c.
| #define get_ft_body | ( | _ft_hdr | ) | ((struct to_body*)_ft_hdr->parsed) |
| #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 | ) |
| 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 | ) |
Definition at line 218 of file acc.c.
References A_EQ_CHR, A_SEPARATOR_CHR, acc_env, core2strar(), extra2strar(), int_arr, legs2strar(), _str::len, len, LM_GEN2, LM_WARN, log_facility, log_level, MAX_SYSLOG_SIZE, _str::s, s, acc_enviroment::text, acc_enviroment::ts, and type_arr.
Referenced by acc_onack(), acc_onreply(), on_missed(), and w_acc_log_request().
| static int core2strar | ( | struct sip_msg * | req, | |
| str * | c_vals, | |||
| int * | i_vals, | |||
| char * | t_vals | |||
| ) | [inline, static] |
Definition at line 120 of file acc.c.
References ACC_CORE_LEN, acc_env, hdr_field::body, sip_msg::callid, acc_enviroment::code, acc_enviroment::code_s, sip_msg::first_line, FL_REQ_UPSTREAM, sip_msg::from, get_ft_body, _str::len, LM_DBG, sip_msg::msg_flags, NULL, acc_enviroment::reason, msg_start::request, SET_EMPTY_VAL, to_body::tag_value, acc_enviroment::to, acc_enviroment::ts, TYPE_INT, TYPE_NULL, TYPE_STR, and msg_start::u.
Referenced by acc_log_request().
| struct acc_enviroment acc_env |
Definition at line 53 of file acc_logic.c.
Referenced by acc_log_request(), core2strar(), env_set_code_status(), env_set_comment(), env_set_text(), and env_set_to().
int int_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] [static] |
char type_arr[ACC_CORE_LEN+MAX_ACC_EXTRA+MAX_ACC_LEG] [static] |
1.5.6