Group membership module
#include <sys/types.h>#include <regex.h>#include "../../str.h"#include "../../mem/mem.h"#include "../../route_struct.h"#include "../../lvalue.h"#include "group_mod.h"#include "re_group.h"#include "group.h"
Go to the source code of this file.
Definition in file re_group.c.
| static int add_re | ( | const char * | re, | |
| int | gid | |||
| ) | [static] |
| re | regular expression string | |
| gid | group ID |
Definition at line 62 of file re_group.c.
Referenced by load_re().

| int get_user_group | ( | struct sip_msg * | req, | |
| char * | user, | |||
| char * | avp | |||
| ) |
| req | SIP message | |
| user | user string | |
| avp | AVP value |
Definition at line 155 of file re_group.c.
References get_username_domain(), _str::len, MAX_URI_SIZE, and _str::s.

| int load_re | ( | str * | table | ) |
| table | DB table |
Definition at line 97 of file re_group.c.
References add_re(), DB1_INT, DB1_STRING, db_val_t::int_val, db_val_t::nul, RES_ROW_N, db1_res::rows, _str::s, db_val_t::string_val, db_val_t::type, db_val_t::val, and db_row::values.
Referenced by mod_init().


1.7.1