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
00034 #ifndef GROUP_H
00035 #define GROUP_H
00036
00037 #include "../../parser/msg_parser.h"
00038 #include "../../pvar.h"
00039 #include "../../usr_avp.h"
00040
00041
00042 typedef struct _group_check
00043 {
00044 int id;
00045 pv_spec_t sp;
00046 } group_check_t, *group_check_p;
00047
00048
00060 int get_username_domain(struct sip_msg *msg, group_check_p gcp,
00061 str *username, str *domain);
00062
00063
00071 int is_user_in(struct sip_msg* _msg, char* _hf, char* _grp);
00072
00073
00079 int group_db_init(const str* db_url);
00080
00081
00087 int group_db_bind(const str* db_url);
00088
00089
00093 void group_db_close(void);
00094
00095 #endif