Browse code

ruri select now returns the most recent version of the ruri

Nils Ohlmeier authored on 12/05/2006 08:31:01
Showing 1 changed files
... ...
@@ -56,7 +56,12 @@
56 56
 int select_ruri(str* res, select_t* s, struct sip_msg* msg)
57 57
 {
58 58
 	if (msg->first_line.type==SIP_REQUEST) {
59
-		RETURN0_res(msg->first_line.u.request.uri);
59
+		if(msg->new_uri.s) {
60
+			RETURN0_res(msg->new_uri);
61
+		}
62
+		else {
63
+			RETURN0_res(msg->first_line.u.request.uri);
64
+		}
60 65
 	}
61 66
 	return 1;
62 67
 }