route_rule Struct Reference

#include <cr_rule.h>

Collaboration diagram for route_rule:

Collaboration graph
[legend]

Data Fields

struct route_rule_p_listbacked_up
struct route_rule_p_listbackup
str comment
int dice_to
int hash_index
str host
str local_prefix
str local_suffix
struct route_rulenext
double orig_prob
str prefix
double prob
int status
int strip

Detailed Description

Second stage of processing: Try to map the end of the user part of the URI to a given suffix. Then rewrite with given parameters.

Definition at line 44 of file cr_rule.h.


Field Documentation

struct route_rule_p_list* backed_up [read]

struct route_rule_p_list* backup [read]

if not NULL, it points to a route rule which shall be used instead (only used if status is 0)

Definition at line 56 of file cr_rule.h.

Referenced by add_backup_rule(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), fixup_rule_backup(), get_rule_by_hash(), remove_backed_up(), rewrite_on_rule(), save_route_data_recursor(), and update_route_data_recursor().

A comment for the route rule

Definition at line 52 of file cr_rule.h.

Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), and save_route_data_recursor().

int dice_to

prob * DICE_MAX

Definition at line 45 of file cr_rule.h.

Referenced by rewrite_on_rule(), and rule_fixup_recursor().

The hash index of the route rule, only useful when using prime number hashing

Definition at line 57 of file cr_rule.h.

Referenced by add_backup_rule(), add_route_rule(), find_auto_backup(), find_rule_by_hash(), get_rule_by_hash(), remove_backed_up(), rule_fixup_recursor(), and save_route_data_recursor().

the pefix to be attached to the new destination

Definition at line 50 of file cr_rule.h.

Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), and save_route_data_recursor().

the suffix to be appended to the localpart of the new destination

Definition at line 51 of file cr_rule.h.

Referenced by actually_rewrite(), add_route_rule(), destroy_route_rule(), dump_tree_recursor(), and save_route_data_recursor().

struct route_rule* next [read]

double orig_prob

The original probability for that rule, only useful when using crc32 hashing

Definition at line 47 of file cr_rule.h.

Referenced by add_route_rule(), and save_route_data_recursor().

The prefix for which the route is valid

Definition at line 53 of file cr_rule.h.

Referenced by add_route_rule(), destroy_route_rule(), save_route_data_recursor(), and update_route_data_recursor().

double prob

The probability for that rule, only useful when using crc32 hashing

Definition at line 46 of file cr_rule.h.

Referenced by add_route_rule(), dump_tree_recursor(), rewrite_on_rule(), rule_fixup_recursor(), and update_route_data_recursor().

int status

The status of the route rule, only useful when using prime number hashing

Definition at line 54 of file cr_rule.h.

Referenced by add_backup_rule(), add_route_rule(), dump_tree_recursor(), find_auto_backup(), fixup_rule_backup(), get_rule_by_hash(), rewrite_on_rule(), save_route_data_recursor(), and update_route_data_recursor().

int strip

the number of digits to be stripped off from uri befor prepending prefix

Definition at line 49 of file cr_rule.h.

Referenced by actually_rewrite(), add_route_rule(), dump_tree_recursor(), and save_route_data_recursor().


The documentation for this struct was generated from the following file:

Generated on Thu May 24 18:00:48 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6