[sr-dev] git:kamailio_3.0: registrar(k): reset dst uri in lookup

Daniel-Constantin Mierla miconda at gmail.com
Thu May 27 10:20:52 CEST 2010


Module: sip-router
Branch: kamailio_3.0
Commit: 6dc77aa8801808211b42184c15712e6adf9b443d
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6dc77aa8801808211b42184c15712e6adf9b443d

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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
(cherry picked from commit 53bb79cef5eb70e98472903ef84b5585cc798e65)

---

 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 67accc7..944d410 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 */




More information about the sr-dev mailing list