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
00030 #ifndef DOMAINPOLICY_H
00031 #define DOMAINPOLICY_H
00032
00033
00034 #include "../../parser/msg_parser.h"
00035
00037 #define MAX_DOMAIN_SIZE 512
00038
00040 #define MAX_DDDS_RECURSIONS 5
00041
00042
00048 #define DP_DDDS_RET_DNSERROR -2
00049 #define DP_DDDS_RET_NEGATIVE -1
00050 #define DP_DDDS_RET_POSITIVE 1
00051 #define DP_DDDS_RET_NOTFOUND 2
00052
00053
00061 int dp_can_connect(struct sip_msg* _msg, char* _s1, char* _s2);
00062
00063
00076 int dp_apply_policy(struct sip_msg* _msg, char* _s1, char* _s2);
00077
00078
00084 int domainpolicy_db_bind(const str* db_url);
00085
00086
00092 int domainpolicy_db_init(const str* db_url);
00093
00097 void domainpolicy_db_close(void);
00098
00099
00106 int domainpolicy_db_ver(const str* db_url, const str* name);
00107
00108
00109 #endif