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)
(cherry picked from commit 43a8f66903ce11f9017a6c7e2bdfe2225fc4b06f)
(cherry picked from commit 211562121faae5c1c2aacb06c15d203ccb3efd14)

Dennis Yurasov authored on 15/05/2022 18:49:18 • Daniel-Constantin Mierla committed on 15/09/2022 11:26:34
Showing 1 changed files
... ...
@@ -301,7 +301,7 @@ int trace_send_duplicate(char *buf, int len, dest_info_t *dst2)
301 301
 
302 302
 	if(!dst2) {
303 303
 		/* create a temporary proxy from dst param */
304
-		dst.proto = PROTO_UDP;
304
+		dst.proto = trace_dup_uri->proto;
305 305
 		p = mk_proxy(&trace_dup_uri->host,
306 306
 				(trace_dup_uri->port_no) ? trace_dup_uri->port_no : SIP_PORT, dst.proto);
307 307
 		if(p == 0) {