Functions

conf.h File Reference

SIP-router utils ::Module: utils. More...

#include "../../lib/kmi/mi.h"
#include "../../parser/msg_parser.h"
#include "../../proxy.h"
Include dependency graph for conf.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 conf.h.


Function Documentation

int conf_init ( int  max_id  ) 
Parameters:
max_id number of configuration statements
Returns:
0 on success, -1 on failure

Definition at line 548 of file conf.c.

struct proxy_l* conf_needs_forward ( struct sip_msg msg,
int  id 
) [read]
Parameters:
msg the SIP message to be forwarded
id use configuration with this ID when checking
Returns:
pointer to proxy structure of destination if forwarding is needed, NULL otherwise

Definition at line 517 of file conf.c.

References filter_methods_contains_request(), sip_msg::first_line, and sfilter_mask.

Referenced by utils_forward().

Here is the call graph for this function:

Here is the caller graph for this function:

int conf_parse_filter ( char *  settings  ) 
Parameters:
settings The configuration string in the following form:

 *              <id>=<filter>[:<filter>]...[,<id>=<filter>[:<filter>]...]...
Returns:
1 on success, -1 otherwise

Definition at line 405 of file conf.c.

References conf_str2id(), remove_spaces(), and update_filter().

Referenced by forward_fifo_filter().

Here is the call graph for this function:

Here is the caller graph for this function:

int conf_parse_proxy ( char *  settings  ) 
Parameters:
settings,: The configuration string in the following form:

 *              <id>=<host>:<port>[,<id>=<host>:<port>]...
Returns:
: 1 on success, -1 otherwise

Definition at line 450 of file conf.c.

References conf_str2id(), remove_spaces(), and update_proxy().

Referenced by forward_fifo_proxy().

Here is the call graph for this function:

Here is the caller graph for this function:

int conf_parse_switch ( char *  settings  ) 
Parameters:
settings the configuration string in the following form:

 *              <id>=<switch>[,<id>=<switch>]...
Returns:
1 on success, -1 otherwise

Definition at line 303 of file conf.c.

References conf_str2id(), remove_spaces(), and update_switch().

Referenced by forward_fifo_switch().

Here is the call graph for this function:

Here is the caller graph for this function:

int conf_show ( struct mi_root *  rpl_tree  ) 
Parameters:
rpl_tree FIFO root
Returns:
0 on success, -1 on failure

Definition at line 345 of file conf.c.

References sfilter_mask, and sfilter_str.

Referenced by forward_fifo_list().

Here is the caller graph for this function:

int conf_str2id ( char *  id_str  ) 
Todo:
check if we can use the functions from ut.h params: id_str: ID as string to be converted to int. returns: >=0 on success -1 otherwise

Definition at line 124 of file conf.c.

References conf_str2int().

Referenced by conf_parse_filter(), conf_parse_proxy(), and conf_parse_switch().

Here is the call graph for this function:

Here is the caller graph for this function: