cr_db.c File Reference

Functions for loading routing data from a database.

More...

#include "../../dprint.h"
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "carrierroute.h"
#include "cr_db.h"
#include "cr_carrier.h"
#include <stdio.h>
#include <stdlib.h>

Include dependency graph for cr_db.c:

Go to the source code of this file.

Defines

#define QUERY_LEN   2048

Functions

static int load_carrier_map (struct route_data_t *rd)
static int load_domain_map (struct route_data_t *rd)
int load_route_data_db (struct route_data_t *rd)
int load_user_carrier (str *user, str *domain)

Variables

strcarrier_name_columns [CARRIER_NAME_COLUMN_NUM]
strcolumns [COLUMN_NUM]
strdomain_name_columns [DOMAIN_NAME_COLUMN_NUM]
strfailure_columns [FAILURE_COLUMN_NUM]
static char query [QUERY_LEN]


Detailed Description

Functions for loading routing data from a database.

Definition in file cr_db.c.


Define Documentation

#define QUERY_LEN   2048

Definition at line 39 of file cr_db.c.

Referenced by load_route_data_db().


Function Documentation

static int load_carrier_map ( struct route_data_t rd  )  [static]

static int load_domain_map ( struct route_data_t rd  )  [static]

int load_route_data_db ( struct route_data_t rd  ) 

int load_user_carrier ( str user,
str domain 
)


Variable Documentation

str* carrier_name_columns[CARRIER_NAME_COLUMN_NUM]

Initial value:

Definition at line 56 of file cr_db.c.

str* columns[COLUMN_NUM]

str* domain_name_columns[DOMAIN_NAME_COLUMN_NUM]

Initial value:

Definition at line 61 of file cr_db.c.

str* failure_columns[FAILURE_COLUMN_NUM]

Definition at line 66 of file cr_db.c.

char query[QUERY_LEN] [static]

Definition at line 41 of file cr_db.c.

Referenced by load_route_data_db(), and RequestRead().


Generated on Mon May 21 18:00:38 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6