Module: sip-router Branch: master Commit: 53bb79cef5eb70e98472903ef84b5585cc798e65 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=53bb79ce...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@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 */