[sr-dev] git:master:2caa05bd: tm: updates for new signature of via_builder()

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 4 16:52:39 CEST 2018


Module: kamailio
Branch: master
Commit: 2caa05bd1c3b08692833407f7405928d346aec22
URL: https://github.com/kamailio/kamailio/commit/2caa05bd1c3b08692833407f7405928d346aec22

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-04T16:47:07+02:00

tm: updates for new signature of via_builder()

---

Modified: src/modules/tm/t_msgbuilder.c

---

Diff:  https://github.com/kamailio/kamailio/commit/2caa05bd1c3b08692833407f7405928d346aec22.diff
Patch: https://github.com/kamailio/kamailio/commit/2caa05bd1c3b08692833407f7405928d346aec22.patch

---

diff --git a/src/modules/tm/t_msgbuilder.c b/src/modules/tm/t_msgbuilder.c
index feb7513bfd..aad14aa78f 100644
--- a/src/modules/tm/t_msgbuilder.c
+++ b/src/modules/tm/t_msgbuilder.c
@@ -106,7 +106,7 @@ char *build_local(struct cell *Trans,unsigned int branch,
 		}
 	}
 #endif /* USE_TCP */
-	via=via_builder(&via_len, &Trans->uac[branch].request.dst,
+	via=via_builder(&via_len, NULL, &Trans->uac[branch].request.dst,
 		&branch_str, via_id.s?&via_id:0 , &hp );
 
 	/* via_id.s not needed anylonger => free it */
@@ -1192,7 +1192,7 @@ char *build_dlg_ack(struct sip_msg* rpl, struct cell *Trans,
 	branch_str.s = branch_buf;
 	branch_str.len = branch_len;
 	set_hostport(&hp, 0);
-	via = via_builder(&via_len, dst, &branch_str, 0, &hp);
+	via = via_builder(&via_len, NULL, dst, &branch_str, 0, &hp);
 	if (!via) {
 		LM_ERR("No via header got from builder\n");
 		goto error;
@@ -1367,7 +1367,7 @@ static inline int assemble_via(str* dest, struct cell* t,
 #endif
 
 	set_hostport(&hp, 0);
-	via = via_builder(&via_len, dst, &branch_str, 0, &hp);
+	via = via_builder(&via_len, NULL, dst, &branch_str, 0, &hp);
 	if (!via) {
 		LM_ERR("via building failed\n");
 		return -2;




More information about the sr-dev mailing list