Data Structures | Functions | Variables

re_group.c File Reference

Group membership module

More...

#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"
Include dependency graph for re_group.c:

Go to the source code of this file.

Data Structures

Functions

Variables


Detailed Description

Definition in file re_group.c.


Function Documentation

static int add_re ( const char *  re,
int  gid 
) [static]
Parameters:
re regular expression string
gid group ID
Returns:
0 on success, -1 on failure

Definition at line 62 of file re_group.c.

Referenced by load_re().

Here is the caller graph for this function:

int get_user_group ( struct sip_msg req,
char *  user,
char *  avp 
)
Parameters:
req SIP message
user user string
avp AVP value
Returns:
number of all matches (positive), -1 on errors or when not found

Definition at line 155 of file re_group.c.

References get_username_domain(), _str::len, MAX_URI_SIZE, and _str::s.

Here is the call graph for this function:

int load_re ( str table  ) 
Parameters:
table DB table
Returns:
0 on success, -1 on failure

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().

Here is the call graph for this function:

Here is the caller graph for this function: