-
Notifications
You must be signed in to change notification settings - Fork 564
/
dr_rules.xml
129 lines (115 loc) · 3.31 KB
/
dr_rules.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE table PUBLIC "-//opensips.org//DTD DBSchema V1.1//EN"
"https://opensips.org/pub/opensips/dbschema/dtd/1.1/dbschema.dtd" [
<!ENTITY % entities SYSTEM "entities.xml">
%entities;
]>
<table id="dr_rules" xmlns:db="http://docbook.org/ns/docbook">
<name>dr_rules</name>
<version>4</version>
<type db="mysql">&MYSQL_TABLE_TYPE;</type>
<description>
<db:para>This table is used by the Dynamic Routing module to store
information about the routing rules.
More information can be found at: &OPENSIPS_MOD_DOC;drouting.html.
</db:para>
</description>
<column id="ruleid">
<name>ruleid</name>
<type>unsigned int</type>
<size>&table_id_len;</size>
<autoincrement/>
<natural/>
<primary/>
<type db="dbtext">int,auto</type>
<description>Rule unique ID
</description>
</column>
<column id="groupid">
<name>groupid</name>
<type>string</type>
<size>255</size>
<description>The ID(s) of the routing group(s) this rule is to be
used for - comma separeted list of numerical Ids
</description>
</column>
<column id="prefix">
<name>prefix</name>
<type>string</type>
<size>64</size>
<description>Numerical prefix to match this rule</description>
</column>
<column id="timerec">
<name>timerec</name>
<type>string</type>
<size>255</size>
<null/>
<default><null/></default>
<description>Time recurrence used for matching this rule.</description>
</column>
<column id="priority">
<name>priority</name>
<type>int</type>
<size>11</size>
<default>0</default>
<description>Priority of this rule (among rules with same prefix
and timerec).</description>
</column>
<column id="routeid">
<name>routeid</name>
<type>string</type>
<size>255</size>
<null/>
<default><null/></default>
<description>Route block (from cfg script) to be called when rule
matches.</description>
</column>
<column id="gwlist">
<name>gwlist</name>
<type>string</type>
<size>255</size>
<null/>
<description>A comma-separated list of GW unique IDs (e.g. GW-5)
and/or hash-prefixed ("#") Carrier unique IDs (e.g. #CR-2).</description>
</column>
<column id="sorting_alg">
<name>sort_alg</name>
<type>string</type>
<default>N</default>
<size>1</size>
<description>The sorting algorithm to be employed for the rule's
destinations when do_routing() is called. Possible values:
'N' (default; no sorting, preserve given order),
'W' (weight based sorting),
'Q' (quality-based sorting, provided by the qrouting module)
</description>
</column>
<column id="sorting_profile">
<name>sort_profile</name>
<type>unsigned int</type>
<size>10</size>
<null/>
<default><null/></default>
<description>Whenever the 'Q' (quality-based routing) sorting algorithm
is provided, this column must hold a profile id belonging to the
"qr_profiles" table.
</description>
</column>
<column id="attrs">
<name>attrs</name>
<type>string</type>
<size>255</size>
<null/>
<default><null/></default>
<description>Generic string describing RULE attributes - this string is
to be interpreted from the script</description>
</column>
<column id="description">
<name>description</name>
<type>string</type>
<size>128</size>
<null/>
<default><null/></default>
<description>Text description of the rule</description>
</column>
</table>