Module: sip-router
Branch: daniel/pv
Commit: 46ab082aab5971e8511460df0107709bd6aedb0d
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=46ab082…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Feb 13 00:21:44 2009 +0200
- sync transformations add/lookup with kamailio
---
pvapi.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/pvapi.c b/pvapi.c
index 2e34412..fa304a5 100644
--- a/pvapi.c
+++ b/pvapi.c
@@ -1362,15 +1362,9 @@ int tr_table_add(tr_export_t *e)
tri = _tr_table[trid%TR_TABLE_SIZE];
while(tri)
{
- if(tri->trid > trid)
- break;
- if(tri->tre.tclass.len > e->tclass.len)
- break;
if(tri->tre.tclass.len==e->tclass.len)
{
found = strncmp(tri->tre.tclass.s, e->tclass.s, e->tclass.len);
- if(found>0)
- break;
if(found==0)
{
LM_ERR("TR class [%.*s] already exists\n", e->tclass.len,
@@ -1470,11 +1464,6 @@ tr_export_t* tr_lookup_class(str *tclass)
tri = _tr_table[trid%TR_TABLE_SIZE];
while(tri)
{
- if(tri->trid > trid)
- break;
- if(tri->tre.tclass.len > tclass->len)
- break;
-
if(tri->trid==trid && tri->tre.tclass.len==tclass->len
&& memcmp(tri->tre.tclass.s, tclass->s, tclass->len)==0)
return &(tri->tre);