Browse code

tm: print warn messages when failing to update r-uri and path

(cherry picked from commit 9f9e3162cd92b564323c9e77689f57c9dd0600bc)

Daniel-Constantin Mierla authored on 04/11/2016 10:57:55
Showing 2 changed files
... ...
@@ -999,7 +999,7 @@ int add_uac_dns_fallback(struct cell *t, struct sip_msg* msg,
999 999
 							"branches exceeded\n");
1000 1000
 				if (lock_replies)
1001 1001
 					UNLOCK_REPLIES(t);
1002
-					ret=ser_error=E_TOO_MANY_BRANCHES;
1002
+				ret=ser_error=E_TOO_MANY_BRANCHES;
1003 1003
 				return ret;
1004 1004
 			}
1005 1005
 			/* copy the dns handle into the new uac */
... ...
@@ -548,7 +548,9 @@ int t_next_contacts(struct sip_msg* msg, char* key, char* value)
548 548
 	}
549 549
 
550 550
 	/* Rewrite Request-URI */
551
-	rewrite_uri(msg, &uri);
551
+	if(rewrite_uri(msg, &uri)<0) {
552
+		LM_WARN("failed to rewrite r-uri\n");
553
+	}
552 554
 
553 555
 	if (dst_uri.len) {
554 556
 		set_dst_uri(msg, &dst_uri);
... ...
@@ -557,7 +559,9 @@ int t_next_contacts(struct sip_msg* msg, char* key, char* value)
557 559
 	}
558 560
 
559 561
 	if (path.len) {
560
-		set_path_vector(msg, &path);
562
+		if(set_path_vector(msg, &path)<0) {
563
+			LM_WARN("failed to set path vector\n");
564
+		}
561 565
 	} else {
562 566
 		reset_path_vector(msg);
563 567
 	}