Data Structures | Functions | Variables

pdb.c File Reference

Contains the functions exported by the module. More...

#include "../../sr_module.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../lib/kmi/mi.h"
#include <sys/time.h>
#include <poll.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
Include dependency graph for pdb.c:

Go to the source code of this file.

Data Structures

Functions

Variables


Detailed Description

Definition in file pdb.c.


Function Documentation

static int add_server ( char *  host,
char *  port 
) [static]
Returns:
0 on success -1 otherwise

Definition at line 422 of file pdb.c.

Referenced by prepare_server().

Here is the caller graph for this function:

static int avp_name_fixup ( void **  param  )  [static]
Parameters:
param the parameter
Returns:
0 on success, -1 on failure

Definition at line 364 of file pdb.c.

References _str::len, pv_get_avp_name(), and _str::s.

Here is the call graph for this function:

static int init_server_list ( void   )  [static]
Returns:
0 on success, -1 otherwise

Definition at line 521 of file pdb.c.

References prepare_server().

Here is the call graph for this function:

static int init_server_socket ( void   )  [static]
Returns:
0 on success, -1 otherwise

Definition at line 543 of file pdb.c.

static int mp_fixup ( void **  param  )  [static]

supports string, pseudo-variables and AVPs.

Parameters:
param the parameter
Returns:
0 on success, -1 on failure

Definition at line 308 of file pdb.c.

References _str::len, pv_get_avp_name(), and _str::s.

Here is the call graph for this function:

static int pdb_query ( struct sip_msg _msg,
struct multiparam_t _number,
struct multiparam_t _dstavp 
) [static]
Returns:
1 if query for the number succeded and the avp with the corresponding carrier id was set, -1 otherwise

Definition at line 157 of file pdb.c.

References _str::len, _str::s, timeout, and timeoutlogs.

static int prepare_server ( void   )  [static]
Returns:
0 on success, -1 otherwise

Definition at line 460 of file pdb.c.

References add_server(), and modp_server.

Referenced by init_server_list().

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

char* modp_server = NULL [static]

Definition at line 47 of file pdb.c.

Referenced by prepare_server().