Group membership module
#include "../../parser/msg_parser.h"#include "../../pvar.h"#include "../../usr_avp.h"

Go to the source code of this file.
Definition in file group.h.
Set the username and domain depending on the value of the SIP message and the group check structure.
| msg | SIP message | |
| gcp | group check structure | |
| username | stored username | |
| domain | stored domain |
Definition at line 59 of file group.c.
References sip_uri::host, hdr_field::parsed, sip_msg::parsed_uri, and sip_uri::user.
Referenced by get_user_group(), and is_user_in().

| int group_db_bind | ( | const str * | db_url | ) |
| db_url | database URL |
Definition at line 224 of file group.c.
References db_bind_mod(), DB_CAP_QUERY, and DB_CAPABILITY.
Referenced by mod_init().


| int group_db_init | ( | const str * | db_url | ) |
| db_url | database URL |
Definition at line 202 of file group.c.
Referenced by child_init(), and mod_init().

| int is_user_in | ( | struct sip_msg * | _msg, | |
| char * | _hf, | |||
| char * | _grp | |||
| ) |
| _msg | SIP message | |
| _hf | Header field | |
| _grp | checked table |
Definition at line 144 of file group.c.
References domain_column, get_username_domain(), group_column, RES_ROW_N, table, use_domain, user_column, VAL_NULL, VAL_STR, and VAL_TYPE.

1.7.1