Module: kamailio
Branch: master
Commit: 2d24221e3b409a13f3724267860d8f8411ae063e
URL:
https://github.com/kamailio/kamailio/commit/2d24221e3b409a13f3724267860d8f8…
Author: Dennis Yurasov <dennis-y(a)yandex-team.ru>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-16T08:00:07+02:00
siptrace: fix hardcoded PROTO_UDP in duplicate_uri module parameter
- possibility to switch to other then UDP transport protocol in diplicate_uri
---
Modified: src/modules/siptrace/siptrace_send.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2d24221e3b409a13f3724267860d8f8…
Patch:
https://github.com/kamailio/kamailio/commit/2d24221e3b409a13f3724267860d8f8…
---
diff --git a/src/modules/siptrace/siptrace_send.c b/src/modules/siptrace/siptrace_send.c
index ed05cb0b51..a2b5390838 100644
--- a/src/modules/siptrace/siptrace_send.c
+++ b/src/modules/siptrace/siptrace_send.c
@@ -305,7 +305,7 @@ int trace_send_duplicate(char *buf, int len, dest_info_t *dst2)
if(!dst2) {
/* create a temporary proxy from dst param */
- dst.proto = PROTO_UDP;
+ dst.proto = trace_dup_uri->proto;
p = mk_proxy(&trace_dup_uri->host,
(trace_dup_uri->port_no) ? trace_dup_uri->port_no : SIP_PORT, dst.proto);
if(p == 0) {