Module: sip-router
Branch: master
Commit: 8806c3c19fd7a4423b651310ec1361659034e459
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8806c3c…
Author: Raul Alexis Betancor Santana <rabs(a)dimension-virtual.com>
Committer: Raul Alexis Betancor Santana <rabs(a)dimension-virtual.com>
Date: Sun Jan 3 14:46:21 2010 +0000
modules_k/drouting: Fix previous commit that comes from a broken merge
- Fixed .xml files so now they are valid ones.
---
lib/srdb1/schema/dr_gateways.xml | 40 +---------------------------
lib/srdb1/schema/dr_groups.xml | 2 +-
lib/srdb1/schema/dr_gw_lists.xml | 2 +-
lib/srdb1/schema/dr_rules.xml | 45 +-------------------------------
lib/srdb1/schema/kamailio-drouting.xml | 10 -------
5 files changed, 4 insertions(+), 95 deletions(-)
diff --git a/lib/srdb1/schema/dr_gateways.xml b/lib/srdb1/schema/dr_gateways.xml
index d1c3f4f..e595151 100644
--- a/lib/srdb1/schema/dr_gateways.xml
+++ b/lib/srdb1/schema/dr_gateways.xml
@@ -9,20 +9,12 @@
<table id="dr_gateways" xmlns:db="http://docbook.org/ns/docbook">
<name>dr_gateways</name>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<version>3</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 destinations/gateways where to route calls.
- More information can be found at: &OPENSIPS_MOD_DOC;drouting.html.
-=======
- <version>1</version>
- <type db="mysql">&MYSQL_TABLE_TYPE;</type>
- <description>
- <db:para>This table is used by the douting module - keeps the
- gateways data.
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
+ More information can be found at: &KAMAILIO_MOD_DOC;drouting.html.
</db:para>
</description>
@@ -33,12 +25,8 @@
<autoincrement/>
<primary/>
<type db="dbtext">int,auto</type>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<description>GW unique ID - used to link the GW from
the routing rules
-=======
- <description>Unique ID per gateway
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
</description>
</column>
@@ -47,22 +35,14 @@
<type>unsigned int</type>
<size>11</size>
<default>0</default>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<description>Type/class of the GW (user defined)</description>
-=======
- <description>Type of gateway</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
</column>
<column id="address">
<name>address</name>
<type>string</type>
<size>128</size>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<description>GW/destination address as name/IP[:port]</description>
-=======
- <description>Address of gateway (hostname or ip and port)</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
</column>
<column id="strip">
@@ -70,18 +50,13 @@
<type>unsigned int</type>
<size>11</size>
<default>0</default>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<description>Number of digits to be striped out for the begining
of the username when using this GW/destination</description>
-=======
- <description>Number of digits to strip from dialed number</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
</column>
<column id="pri_prefix">
<name>pri_prefix</name>
<type>string</type>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<size>16</size>
<null/>
<default><null/></default>
@@ -97,12 +72,6 @@
<default><null/></default>
<description>Generic string describing GW attributes - this string is
to be interpreted from the script</description>
-=======
- <size>64</size>
- <null/>
- <default><null/></default>
- <description>What to prefix to dialed number</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
</column>
<column id="description">
@@ -110,13 +79,6 @@
<type>string</type>
<size>128</size>
<default></default>
-<<<<<<< HEAD:lib/srdb1/schema/dr_gateways.xml
<description>Text description of the GW/destination</description>
</column>
</table>
-=======
- <description>Short description of gateway</description>
- </column>
-</table>
-
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_gateways.xml
diff --git a/lib/srdb1/schema/dr_groups.xml b/lib/srdb1/schema/dr_groups.xml
index 03549e0..fa4d6df 100644
--- a/lib/srdb1/schema/dr_groups.xml
+++ b/lib/srdb1/schema/dr_groups.xml
@@ -14,7 +14,7 @@
<description>
<db:para>This table is used by the Dynamic Routing module to store
information about the routing groups (users mapped over groups).
- More information can be found at: &OPENSIPS_MOD_DOC;drouting.html.
+ More information can be found at: &KAMAILIO_MOD_DOC;drouting.html.
</db:para>
</description>
diff --git a/lib/srdb1/schema/dr_gw_lists.xml b/lib/srdb1/schema/dr_gw_lists.xml
index e8110e7..7dd4c3e 100644
--- a/lib/srdb1/schema/dr_gw_lists.xml
+++ b/lib/srdb1/schema/dr_gw_lists.xml
@@ -14,7 +14,7 @@
<description>
<db:para>This table is used by the Dynamic Routing module to define
lists of gateways to be used in rule definitions.
- More information can be found at: &OPENSIPS_MOD_DOC;drouting.html.
+ More information can be found at: &KAMAILIO_MOD_DOC;drouting.html.
</db:para>
</description>
diff --git a/lib/srdb1/schema/dr_rules.xml b/lib/srdb1/schema/dr_rules.xml
index 2c635ce..a114ea7 100644
--- a/lib/srdb1/schema/dr_rules.xml
+++ b/lib/srdb1/schema/dr_rules.xml
@@ -9,20 +9,12 @@
<table id="dr_rules" xmlns:db="http://docbook.org/ns/docbook">
<name>dr_rules</name>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<version>3</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.
-=======
- <version>1</version>
- <type db="mysql">&MYSQL_TABLE_TYPE;</type>
- <description>
- <db:para>This table is used by the drouting module - keeps the
- routing rules data.
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
+ More information can be found at: &KAMAILIO_MOD_DOC;drouting.html.
</db:para>
</description>
@@ -41,12 +33,8 @@
<name>groupid</name>
<type>string</type>
<size>255</size>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<description>The ID(s) of the routing group(s) this rule is to be
used for - comma separeted list of numerical Ids
-=======
- <description>list of routing group IDs
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
</description>
</column>
@@ -54,22 +42,14 @@
<name>prefix</name>
<type>string</type>
<size>64</size>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<description>Numerical prefix to match this rule</description>
-=======
- <description>Destination prefix for this rule</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
</column>
<column id="timerec">
<name>timerec</name>
<type>string</type>
<size>255</size>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<description>Time recurrence used for matching this rule.</description>
-=======
- <description>Time recurrence for this rule.</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
</column>
<column id="priority">
@@ -77,39 +57,24 @@
<type>int</type>
<size>11</size>
<default>0</default>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<description>Priority of this rule (among rules with same prefix
and timerec).</description>
-=======
- <description>Priority of the rule.</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
</column>
<column id="routeid">
<name>routeid</name>
<type>string</type>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<size>255</size>
<description>Route block (from cfg script) to be called when rule
matches.</description>
-=======
- <size>64</size>
- <description>Name of route block (from cfg script) to be
- executed when matching this rule.</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
</column>
<column id="gwlist">
<name>gwlist</name>
<type>string</type>
<size>255</size>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<description>Reference to the GWs/destinations to be used when
rule matches.</description>
-=======
- <description>The list of destinations (gws) to be used when
- matching this rule.</description>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
</column>
<column id="description">
@@ -117,15 +82,7 @@
<type>string</type>
<size>128</size>
<default></default>
-<<<<<<< HEAD:lib/srdb1/schema/dr_rules.xml
<description>Text description of the rule</description>
</column>
</table>
-=======
- <description>Short description of the rule</description>
- </column>
-
-</table>
-
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/dr_rules.xml
diff --git a/lib/srdb1/schema/kamailio-drouting.xml b/lib/srdb1/schema/kamailio-drouting.xml
index 6d4f59b..d058f9b 100644
--- a/lib/srdb1/schema/kamailio-drouting.xml
+++ b/lib/srdb1/schema/kamailio-drouting.xml
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE database PUBLIC "-//kamailio.org//DTD DBSchema V1.1//EN"
-<<<<<<< HEAD:lib/srdb1/schema/kamailio-drouting.xml
"http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
-=======
- "http://kamailio.org/pub/kamailio/dbschema/dtd/1.1/dbschema.dtd" [
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/kamailio-drouting.xml
<!ENTITY % entities SYSTEM "entities.xml">
%entities;
@@ -12,15 +8,9 @@
]>
<database xmlns:xi="http://www.w3.org/2001/XInclude">
-<<<<<<< HEAD:lib/srdb1/schema/kamailio-drouting.xml
<name>Dynamic Routing</name>
<xi:include href="dr_gateways.xml"/>
<xi:include href="dr_rules.xml"/>
<xi:include href="dr_gw_lists.xml"/>
<xi:include href="dr_groups.xml"/>
-=======
- <name>DRouting</name>
- <xi:include href="dr_gateways.xml"/>
- <xi:include href="dr_rules.xml"/>
->>>>>>> 8e298ed9462ccd639d054cd7639278fdd3932ee9:lib/srdb1/schema/kamailio-drouting.xml
</database>
On 1/3/10 2:26 PM, Raúl Alexis Betancor Santana wrote:
> [...]
> It's possible to have local commit not pushed to the main repo? ... I mean to
> be able to do a selective push.
>
I haven't checked for such operation so far. Maybe someone else on the
list can answer faster. I use separate local repo for intermediary work.
Cheers,
Daniel
--
Daniel-Constantin Mierla
* http://www.asipto.com/
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#24 - Module drouting, address routeid as string
User who did this - Daniel-Constantin Mierla (miconda)
----------
I added in master and kamailio_3.0 the definition of the tables as per README. However, checking a bit the sources, seems that the modules uses a different db tables structures than in documentation. Please add/update the xml files in lib/srdb1/schema/ and then do 'make dbschema' to regenerate the sql scripts.
Also, another update I did: when the route id is '0' the module ignores it, since with integer id that was the behavior.
Thanks.
----------
More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=24#comment23
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
Module: sip-router
Branch: master
Commit: 356aa80ebc749d736dda5e861f85cbfc7aa6b1ec
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=356aa80…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 3 11:37:49 2010 +0100
Merge branch 'master' of ssh://daniel@git.sip-router.org/sip-router
* 'master' of ssh://daniel@git.sip-router.org/sip-router: (159 commits)
modules_k/drouting: Merging changes with recent OpenSIPS module
modules/privacy: Privacy module, for handling RFC3325
modules/privacy: Privacy module, for handling RFC3325
topoh: updated README
topoh: update Replaces header
topoh: code to update Refer-to URI
topoh: callid prefix can be set via param
topoh: add prefix to encoded callid
db scheme(k): update lcr tables scripts after index addition in scheme
doc: change commit requirements according the discussion on ml
core: added id to every field of gw table schema
tcp: use the forced socket ip as source
tmx: pv_t_copy_msg: copy also the send flags
textops(k): msg_apply_changes: preserve the send flags
seas: use set_force_socket()
rr(k): use set_force_socket()
registrar(k): use set_force_socket()
pv: use set_force_socket()
kex: use set_force_socket()
domainpolicy: use set_force_socket()
...
---
Module: sip-router
Branch: master
Commit: 8e298ed9462ccd639d054cd7639278fdd3932ee9
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=8e298ed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun Jan 3 12:38:48 2010 +0100
drouting: lookup route block by name
- routes are identified in 3.0 by string name
- if name is "0", do not execute the route (this is the main one) for
backward compatibility
- based on patch by Andrey 'Krieger' Utkin, FS#24
---
modules_k/drouting/dr_load.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/drouting/dr_load.c b/modules_k/drouting/dr_load.c
index a8b6f05..bea5b29 100644
--- a/modules_k/drouting/dr_load.c
+++ b/modules_k/drouting/dr_load.c
@@ -522,7 +522,7 @@ rt_data_t* dr_load_routing_info( db_func_t *dr_dbf, db1_con_t* db_hdl,
continue;
}
/* lookup for the script route ID */
- if (str_vals[3][0]) {
+ if (str_vals[3][0] && str_vals[3][0]!='0') {
int_vals[3] = route_lookup(&main_rt, str_vals[3]);
if (int_vals[3]==-1) {
LM_WARN("route <%s> does not exist\n",str_vals[3]);