Module: kamailio Branch: master Commit: 3ace6416387bcb487843f33bd45ec8f2344f60eb URL: https://github.com/kamailio/kamailio/commit/3ace6416387bcb487843f33bd45ec8f2344f60eb
Author: iionita <ionut-razvan.ion...@1and1.ro> Committer: iionita <ionut-razvan.ion...@1and1.ro> Date: 2019-05-14T11:22:22+03:00 siptrace: fix tracing messages to database when destination uri not set New additions to siptrace module broke previous functionality. If sip_trace was used with no param and destination uri was not set then the current message would not have been traced to database. The current fix traces always the current message if siptrace function was called. --- Modified: src/modules/siptrace/siptrace.c --- Diff: https://github.com/kamailio/kamailio/commit/3ace6416387bcb487843f33bd45ec8f2344f60eb.diff Patch: https://github.com/kamailio/kamailio/commit/3ace6416387bcb487843f33bd45ec8f2344f60eb.patch --- diff --git a/src/modules/siptrace/siptrace.c b/src/modules/siptrace/siptrace.c index fc97290285..92e2019917 100644 --- a/src/modules/siptrace/siptrace.c +++ b/src/modules/siptrace/siptrace.c @@ -1011,7 +1011,7 @@ static int w_sip_trace3(sip_msg_t *msg, char *dest, char *correlation_id, char * } } - if(trace_is_off(msg)) { + if(trace_type != SIPTRACE_MESSAGE && trace_is_off(msg)) { LM_DBG("trace off...\n"); return 1; } _______________________________________________ Kamailio (SER) - Development Mailing List sr-dev@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev