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]);