Module: kamailio
Branch: master
Commit: 7949484246f38dc284d994b148c917f16ec8b880
URL:
https://github.com/kamailio/kamailio/commit/7949484246f38dc284d994b148c917f…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2019-01-17T09:41:42+01:00
Merge pull request #1810 from kamailio/grumvalski/siptrace_src_socket
siptrace: siptrace: don't calculate message source socket if already set
---
Modified: src/modules/siptrace/siptrace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7949484246f38dc284d994b148c917f…
Patch:
https://github.com/kamailio/kamailio/commit/7949484246f38dc284d994b148c917f…
---
diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c
index 8957c22fab..05a6310f40 100644
--- a/src/modules/siptrace/siptrace.c
+++ b/src/modules/siptrace/siptrace.c
@@ -1493,7 +1493,10 @@ int siptrace_net_data_send(sr_event_param_t *evp)
return -1;
new_dst = *nd->dst;
- new_dst.send_sock = get_send_socket(0, &nd->dst->to, nd->dst->proto);
+
+ if(new_dst.send_sock == 0) {
+ new_dst.send_sock = get_send_socket(0, &nd->dst->to, nd->dst->proto);
+ }
memset(&sto, 0, sizeof(siptrace_data_t));