Module: sip-router
Branch: master
Commit: 68b6d2a99475cc0fdff9093d7212e91d4227c72f
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=68b6d2a…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Tue Jun 30 14:19:52 2009 +0200
carrierroute: port from 1.5 branch, r5885
- apparently its not possible to use ID 0 with autoincrement columns, so we
should start the example domain with id '1'
---
modules/carrierroute/README | 32 +++++++++++-----------
modules/carrierroute/doc/carrierroute_admin.xml | 30 ++++++++++----------
2 files changed, 31 insertions(+), 31 deletions(-)
diff --git a/modules/carrierroute/README b/modules/carrierroute/README
index e64108b..eba27e5 100644
--- a/modules/carrierroute/README
+++ b/modules/carrierroute/README
@@ -854,17 +854,17 @@ domain register {
+----+---------+--------+-------------+-------+------+---------------+
| id | carrier | domain | scan_prefix | flags | prob | rewrite_host |
+----+---------+--------+-------------+-------+------+---------------+
-| 1 | 1 | 0 | 49 | 0 | 0.5 | de-1.carrier1 |
-| 2 | 1 | 0 | 49 | 0 | 0.5 | de-2.carrier1 |
-| 3 | 1 | 0 | 49 | 16 | 1 | de-3.carrier1 |
-| 4 | 1 | 0 | | 0 | 1 | gw.carrier1-1 |
-| 5 | 1 | 1 | 49 | 0 | 1 | gw.carrier1-1 |
-| 6 | 1 | 2 | | 0 | 1 | gw.carrier1-2 |
-| 7 | 1 | 3 | | 0 | 1 | gw.carrier1-3 |
-| 8 | 2 | 0 | 49 | 0 | 0.5 | de-1.carrier2 |
-| 9 | 2 | 0 | 49 | 0 | 0.5 | de-2.carrier2 |
-| 10 | 2 | 0 | | 0 | 1 | gw.carrier2 |
-| 11 | 2 | 1 | 49 | 0 | 1 | gw.carrier2 |
+| 1 | 1 | 1 | 49 | 0 | 0.5 | de-1.carrier1 |
+| 2 | 1 | 1 | 49 | 0 | 0.5 | de-2.carrier1 |
+| 3 | 1 | 1 | 49 | 16 | 1 | de-3.carrier1 |
+| 4 | 1 | 1 | | 0 | 1 | gw.carrier1-1 |
+| 5 | 1 | 2 | 49 | 0 | 1 | gw.carrier1-1 |
+| 6 | 1 | 3 | | 0 | 1 | gw.carrier1-2 |
+| 7 | 1 | 4 | | 0 | 1 | gw.carrier1-3 |
+| 8 | 2 | 1 | 49 | 0 | 0.5 | de-1.carrier2 |
+| 9 | 2 | 1 | 49 | 0 | 0.5 | de-2.carrier2 |
+| 10 | 2 | 1 | | 0 | 1 | gw.carrier2 |
+| 11 | 2 | 2 | 49 | 0 | 1 | gw.carrier2 |
| 12 | 3 | 8 | 49 | 0 | 1 | de-gw.default |
| 13 | 3 | 8 | | 0 | 1 | gw.default |
+----+---------+--------+-------------+-------+------+---------------+
@@ -875,9 +875,9 @@ domain register {
and carrier 1. The gateways for the default carrier will be
used for functions that don't support the user specific carrier
lookup. The routing rules for carrier 1 and carrier 2 for the
- "49" prefix contains a additional rule with the domain 1, that
- can be used for example as fallback if the gateways in domain 0
- are not reachable. Two more fallback rules (domain 2 and 3) for
+ "49" prefix contains a additional rule with the domain 2, that
+ can be used for example as fallback if the gateways in domain 1
+ are not reachable. Two more fallback rules (domain 3 and 4) for
carrier 1 are also supplied to support the functionality of the
carrierfailureroute table example that is provided in the next
section.
@@ -894,8 +894,8 @@ domain register {
+----+---------+--------+---------------+------------+-------------+
| id | carrier | domain | host_name | reply_code | next_domain |
+----+---------+--------+---------------+------------+-------------+
-| 1 | 1 | 0 | gw.carrier1-2 | ... | 3 |
-| 2 | 1 | 0 | gw.carrier1-3 | ... | 2 |
+| 1 | 1 | 1 | gw.carrier1-2 | ... | 3 |
+| 2 | 1 | 1 | gw.carrier1-3 | ... | 2 |
+----+---------+--------+---------------+------------+-------------+
...
diff --git a/modules/carrierroute/doc/carrierroute_admin.xml
b/modules/carrierroute/doc/carrierroute_admin.xml
index 0e0a5bb..d6b927f 100644
--- a/modules/carrierroute/doc/carrierroute_admin.xml
+++ b/modules/carrierroute/doc/carrierroute_admin.xml
@@ -1000,17 +1000,17 @@ domain register {
+----+---------+--------+-------------+-------+------+---------------+
| id | carrier | domain | scan_prefix | flags | prob | rewrite_host |
+----+---------+--------+-------------+-------+------+---------------+
-| 1 | 1 | 0 | 49 | 0 | 0.5 | de-1.carrier1 |
-| 2 | 1 | 0 | 49 | 0 | 0.5 | de-2.carrier1 |
-| 3 | 1 | 0 | 49 | 16 | 1 | de-3.carrier1 |
-| 4 | 1 | 0 | | 0 | 1 | gw.carrier1-1 |
-| 5 | 1 | 1 | 49 | 0 | 1 | gw.carrier1-1 |
-| 6 | 1 | 2 | | 0 | 1 | gw.carrier1-2 |
-| 7 | 1 | 3 | | 0 | 1 | gw.carrier1-3 |
-| 8 | 2 | 0 | 49 | 0 | 0.5 | de-1.carrier2 |
-| 9 | 2 | 0 | 49 | 0 | 0.5 | de-2.carrier2 |
-| 10 | 2 | 0 | | 0 | 1 | gw.carrier2 |
-| 11 | 2 | 1 | 49 | 0 | 1 | gw.carrier2 |
+| 1 | 1 | 1 | 49 | 0 | 0.5 | de-1.carrier1 |
+| 2 | 1 | 1 | 49 | 0 | 0.5 | de-2.carrier1 |
+| 3 | 1 | 1 | 49 | 16 | 1 | de-3.carrier1 |
+| 4 | 1 | 1 | | 0 | 1 | gw.carrier1-1 |
+| 5 | 1 | 2 | 49 | 0 | 1 | gw.carrier1-1 |
+| 6 | 1 | 3 | | 0 | 1 | gw.carrier1-2 |
+| 7 | 1 | 4 | | 0 | 1 | gw.carrier1-3 |
+| 8 | 2 | 1 | 49 | 0 | 0.5 | de-1.carrier2 |
+| 9 | 2 | 1 | 49 | 0 | 0.5 | de-2.carrier2 |
+| 10 | 2 | 1 | | 0 | 1 | gw.carrier2 |
+| 11 | 2 | 2 | 49 | 0 | 1 | gw.carrier2 |
| 12 | 3 | 8 | 49 | 0 | 1 | de-gw.default |
| 13 | 3 | 8 | | 0 | 1 | gw.default |
+----+---------+--------+-------------+-------+------+---------------+
@@ -1023,8 +1023,8 @@ domain register {
gateways for the default carrier will be used for functions that don't
support the user specific carrier lookup. The routing rules for carrier 1
and carrier 2 for the <quote>49</quote> prefix contains a additional rule
- with the domain 1, that can be used for example as fallback if the gateways
- in domain 0 are not reachable. Two more fallback rules (domain 2 and 3) for
+ with the domain 2, that can be used for example as fallback if the gateways
+ in domain 1 are not reachable. Two more fallback rules (domain 3 and 4) for
carrier 1 are also supplied to support the functionality of the carrierfailureroute
table example that is provided in the next section.
</para>
@@ -1041,8 +1041,8 @@ domain register {
+----+---------+--------+---------------+------------+-------------+
| id | carrier | domain | host_name | reply_code | next_domain |
+----+---------+--------+---------------+------------+-------------+
-| 1 | 1 | 0 | gw.carrier1-2 | ... | 3 |
-| 2 | 1 | 0 | gw.carrier1-3 | ... | 2 |
+| 1 | 1 | 1 | gw.carrier1-2 | ... | 3 |
+| 2 | 1 | 1 | gw.carrier1-3 | ... | 2 |
+----+---------+--------+---------------+------------+-------------+
...
</programlisting>