-
Notifications
You must be signed in to change notification settings - Fork 564
/
dr_carriers.xml
107 lines (93 loc) · 2.64 KB
/
dr_carriers.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
<?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_carriers" xmlns:db="http://docbook.org/ns/docbook">
<name>dr_carriers</name>
<version>3</version>
<type db="mysql">&MYSQL_TABLE_TYPE;</type>
<description>
<db:para>This table is used by the Dynamic Routing module to define
carriers (a carrier is defined by a list of gateways and an ordering
rule).
More information can be found at: &OPENSIPS_MOD_DOC;drouting.html.
</db:para>
</description>
<column id="id">
<name>id</name>
<type>unsigned int</type>
<size>&table_id_len;</size>
<autoincrement/>
<natural/>
<primary/>
<type db="dbtext">int,auto</type>
<description>Table key, not used by module</description>
</column>
<column id="carrierid">
<name>carrierid</name>
<type>string</type>
<size>64</size>
<description>Unique ID of the carrier</description>
</column>
<column id="gwlist">
<name>gwlist</name>
<type>string</type>
<size>255</size>
<description>A comma-separated list of GW unique IDs (e.g. GW-5).
</description>
</column>
<column id="flags">
<name>flags</name>
<type>unsigned int</type>
<size>&flag_len;</size>
<default>0</default>
<description>Flags of the carriers (for different purposes:
use only first gw from cr (set the first bit of the flag);
disable gateway (set the second bit of the flag);
</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 carriers'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="state">
<name>state</name>
<type>unsigned int</type>
<size>&flag_len;</size>
<default>0</default>
<description>The state of the carrier (on / off).
</description>
</column>
<column id="attrs">
<name>attrs</name>
<type>string</type>
<size>255</size>
<null/>
<default><null/></default>
<description>Attributes string for the carrier
</description>
</column>
<column id="description">
<name>description</name>
<type>string</type>
<size>128</size>
<null/>
<default><null/></default>
<description>Text description of the GW list</description>
</column>
<index>
<name>dr_carrier_idx</name>
<colref linkend="carrierid"/>
<unique/>
</index>
</table>