acc_logic.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef _ACC_ACC_LOGIC_H
00038 #define _ACC_ACC_LOGIC_H
00039
00040 #include "../../str.h"
00041 #include "../tm/t_hooks.h"
00042
00043
00044
00045 struct acc_enviroment {
00046 unsigned int code;
00047 str code_s;
00048 str reason;
00049 struct hdr_field *to;
00050 str text;
00051 time_t ts;
00052 };
00053
00054
00055 struct acc_param {
00056 int code;
00057 str code_s;
00058 str reason;
00059 };
00060
00061
00062 void acc_onreq( struct cell* t, int type, struct tmcb_params *ps );
00063
00064 int w_acc_log_request(struct sip_msg *rq, char *comment, char *foo);
00065
00066 #ifdef SQL_ACC
00067 int w_acc_db_request(struct sip_msg *rq, char *comment, char *table);
00068 #endif
00069
00070 #ifdef RAD_ACC
00071 int w_acc_rad_request(struct sip_msg *rq, char *comment, char *foo);
00072 #endif
00073
00074 #ifdef DIAM_ACC
00075 int w_acc_diam_request(struct sip_msg *rq, char *comment, char *foo);
00076 #endif
00077
00078
00079 #endif