Module: sip-router
Branch: master
Commit: 53bb79cef5eb70e98472903ef84b5585cc798e65
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=53bb79c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu May 13 11:41:06 2010 +0200
registrar(k): reset dst uri in lookup
- upon lookup, dst uri is reset if no new dst uri is set from received
or path, otherwise the coordinates of selected contact are not
effective
- reported by Andreas Granig
---
modules_k/registrar/lookup.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules_k/registrar/lookup.c b/modules_k/registrar/lookup.c
index c758c84..4a573d1 100644
--- a/modules_k/registrar/lookup.c
+++ b/modules_k/registrar/lookup.c
@@ -105,6 +105,9 @@ int lookup(struct sip_msg* _m, char* _t, char* _s)
goto done;
}
+ /* reset next hop address */
+ reset_dst_uri(_m);
+
/* If a Path is present, use first path-uri in favour of
* received-uri because in that case the last hop towards the uac
* has to handle NAT. - agranig */
No problem. It is all courtesy of my friend 'grep', which has following
options:
-H print filename
-R search recursively
-i case-insensitive matching
So, for example, one can do something like this using 'egrep', a variant
of grep that supports regular expressions:
egrep -HRi ".*bind.*db.*" .
It has been very fruitful for me and probably can be for you as well. :)
> oh yes, thank's for your help...
>
>
>
> 2010/5/12 Alex Balashov <abalashov(a)evaristesys.com>
>
>>
>> > But I'm using the kamailio 1.5.0 version and don't exist the lib
>> > directory, only in the 3.0.0 version.
>>
>> Oh, I see. In that case, it's the same function (db_bind_mod()), but in
>> db/db.c instead.
>>
>> --
>> Alex Balashov - Principal
>> Evariste Systems LLC
>> 1170 Peachtree Street
>> 12th Floor, Suite 1200
>> Atlanta, GA 30309
>> Tel: +1-678-954-0670
>> Fax: +1-404-961-1892
>> Web: http://www.evaristesys.com/
>>
>>
>
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/
> Hi people,
>
> Someone know tell me if in the kamailio the bind_dbmod() function doesn't
> exist anymore? If doesn't, exist other similar function?
It is now db_bind_mod() in lib/srdb1.
--
Alex Balashov - Principal
Evariste Systems LLC
1170 Peachtree Street
12th Floor, Suite 1200
Atlanta, GA 30309
Tel: +1-678-954-0670
Fax: +1-404-961-1892
Web: http://www.evaristesys.com/