Module: kamailio Branch: master Commit: 929a24f08aeef6b72999ac9b188ffeded40759a9 URL: https://github.com/kamailio/kamailio/commit/929a24f08aeef6b72999ac9b188ffeded40759a9
Author: Federico Cabiddu <fcabi...@libon.com> Committer: Federico Cabiddu <fcabi...@libon.com> Date: 2019-01-16T18:09:42+01:00 siptrace: don't calculate message source socket if already set --- Modified: src/modules/siptrace/siptrace.c --- Diff: https://github.com/kamailio/kamailio/commit/929a24f08aeef6b72999ac9b188ffeded40759a9.diff Patch: https://github.com/kamailio/kamailio/commit/929a24f08aeef6b72999ac9b188ffeded40759a9.patch --- 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)); _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev