Browse code

tm: updates for new signature of via_builder()

Daniel-Constantin Mierla authored on 04/10/2018 14:47:07
Showing 1 changed files
... ...
@@ -106,7 +106,7 @@ char *build_local(struct cell *Trans,unsigned int branch,
106 106
 		}
107 107
 	}
108 108
 #endif /* USE_TCP */
109
-	via=via_builder(&via_len, &Trans->uac[branch].request.dst,
109
+	via=via_builder(&via_len, NULL, &Trans->uac[branch].request.dst,
110 110
 		&branch_str, via_id.s?&via_id:0 , &hp );
111 111
 
112 112
 	/* via_id.s not needed anylonger => free it */
... ...
@@ -1192,7 +1192,7 @@ char *build_dlg_ack(struct sip_msg* rpl, struct cell *Trans,
1192 1192
 	branch_str.s = branch_buf;
1193 1193
 	branch_str.len = branch_len;
1194 1194
 	set_hostport(&hp, 0);
1195
-	via = via_builder(&via_len, dst, &branch_str, 0, &hp);
1195
+	via = via_builder(&via_len, NULL, dst, &branch_str, 0, &hp);
1196 1196
 	if (!via) {
1197 1197
 		LM_ERR("No via header got from builder\n");
1198 1198
 		goto error;
... ...
@@ -1367,7 +1367,7 @@ static inline int assemble_via(str* dest, struct cell* t,
1367 1367
 #endif
1368 1368
 
1369 1369
 	set_hostport(&hp, 0);
1370
-	via = via_builder(&via_len, dst, &branch_str, 0, &hp);
1370
+	via = via_builder(&via_len, NULL, dst, &branch_str, 0, &hp);
1371 1371
 	if (!via) {
1372 1372
 		LM_ERR("via building failed\n");
1373 1373
 		return -2;