Functions

re_group.h File Reference

Group membership module

More...

#include "../../str.h"
#include "../../parser/msg_parser.h"
Include dependency graph for re_group.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions


Detailed Description

Definition in file re_group.h.


Function Documentation

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: