cr_db.h File Reference

Functions for loading routing data from a database.

More...

#include "../../db/db.h"
#include "db_carrierroute.h"
#include "cr_data.h"

Include dependency graph for cr_db.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define CARRIER_NAME_COLUMN_NUM   2
#define CARRIER_NAME_ID_COL   0
#define CARRIER_NAME_NAME_COL   1
#define COL_CARRIER   1
#define COL_COMMENT   11
#define COL_DOMAIN   2
#define COL_FLAGS   4
#define COL_ID   0
#define COL_MASK   5
#define COL_PROB   6
#define COL_REWRITE_HOST   7
#define COL_REWRITE_PREFIX   9
#define COL_REWRITE_SUFFIX   10
#define COL_SCAN_PREFIX   3
#define COL_STRIP   8
#define COLUMN_NUM   12
#define DOMAIN_NAME_COLUMN_NUM   2
#define DOMAIN_NAME_ID_COL   0
#define DOMAIN_NAME_NAME_COL   1
#define FAILURE_COLUMN_NUM   10
#define FCOL_CARRIER   1
#define FCOL_COMMENT   9
#define FCOL_DOMAIN   2
#define FCOL_FLAGS   6
#define FCOL_HOST_NAME   4
#define FCOL_ID   0
#define FCOL_MASK   7
#define FCOL_NEXT_DOMAIN   8
#define FCOL_REPLY_CODE   5
#define FCOL_SCAN_PREFIX   3

Functions

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

Variables

strcarrier_columns []
strcolumns []
strfailure_columns []


Detailed Description

Functions for loading routing data from a database.

Definition in file cr_db.h.


Define Documentation

#define CARRIER_NAME_COLUMN_NUM   2

Definition at line 64 of file cr_db.h.

Referenced by load_carrier_map().

#define CARRIER_NAME_ID_COL   0

Definition at line 65 of file cr_db.h.

Referenced by load_carrier_map().

#define CARRIER_NAME_NAME_COL   1

Definition at line 66 of file cr_db.h.

Referenced by load_carrier_map().

#define COL_CARRIER   1

Definition at line 40 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_COMMENT   11

Definition at line 50 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_DOMAIN   2

Definition at line 41 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_FLAGS   4

Definition at line 43 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_ID   0

Definition at line 39 of file cr_db.h.

#define COL_MASK   5

Definition at line 44 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_PROB   6

Definition at line 45 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_REWRITE_HOST   7

Definition at line 46 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_REWRITE_PREFIX   9

Definition at line 48 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_REWRITE_SUFFIX   10

Definition at line 49 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_SCAN_PREFIX   3

Definition at line 42 of file cr_db.h.

Referenced by load_route_data_db().

#define COL_STRIP   8

Definition at line 47 of file cr_db.h.

Referenced by load_route_data_db().

#define COLUMN_NUM   12

Definition at line 38 of file cr_db.h.

Referenced by load_route_data_db().

#define DOMAIN_NAME_COLUMN_NUM   2

Definition at line 68 of file cr_db.h.

Referenced by load_domain_map().

#define DOMAIN_NAME_ID_COL   0

Definition at line 69 of file cr_db.h.

Referenced by load_domain_map().

#define DOMAIN_NAME_NAME_COL   1

Definition at line 70 of file cr_db.h.

Referenced by load_domain_map().

#define FAILURE_COLUMN_NUM   10

Definition at line 52 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_CARRIER   1

Definition at line 54 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_COMMENT   9

Definition at line 62 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_DOMAIN   2

Definition at line 55 of file cr_db.h.

#define FCOL_FLAGS   6

Definition at line 59 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_HOST_NAME   4

Definition at line 57 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_ID   0

Definition at line 53 of file cr_db.h.

#define FCOL_MASK   7

Definition at line 60 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_NEXT_DOMAIN   8

Definition at line 61 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_REPLY_CODE   5

Definition at line 58 of file cr_db.h.

Referenced by load_route_data_db().

#define FCOL_SCAN_PREFIX   3

Definition at line 56 of file cr_db.h.

Referenced by load_route_data_db().


Function Documentation

int load_route_data_db ( struct route_data_t rd  ) 

int load_user_carrier ( str user,
str domain 
)


Variable Documentation

Definition at line 66 of file cr_db.c.


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