Browse code

siptrace: fix hardcoded PROTO_UDP in duplicate_uri module parameter

- possibility to switch to other then UDP transport protocol in diplicate_uri

(cherry picked from commit 2d24221e3b409a13f3724267860d8f8411ae063e)

Dennis Yurasov authored on 15/05/2022 18:49:18 • Daniel-Constantin Mierla committed on 16/05/2022 08:27:56
Showing 1 changed files
... ...
@@ -305,7 +305,7 @@ int trace_send_duplicate(char *buf, int len, dest_info_t *dst2)
305 305
 
306 306
 	if(!dst2) {
307 307
 		/* create a temporary proxy from dst param */
308
-		dst.proto = PROTO_UDP;
308
+		dst.proto = trace_dup_uri->proto;
309 309
 		p = mk_proxy(&trace_dup_uri->host,
310 310
 				(trace_dup_uri->port_no) ? trace_dup_uri->port_no : SIP_PORT, dst.proto);
311 311
 		if(p == 0) {