Browse code

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)

Daniel-Constantin Mierla authored on 13/05/2010 09:41:06 • Andrei Pelinescu-Onciul committed on 28/05/2010 18:47:44
Showing 1 changed files
... ...
@@ -105,6 +105,9 @@ int lookup(struct sip_msg* _m, char* _t, char* _s)
105 105
 			goto done;
106 106
 		}
107 107
 
108
+		/* reset next hop address */
109
+		reset_dst_uri(_m);
110
+
108 111
 		/* If a Path is present, use first path-uri in favour of
109 112
 		 * received-uri because in that case the last hop towards the uac
110 113
 		 * has to handle NAT. - agranig */