Module: kamailio
Branch: master
Commit: 3ace6416387bcb487843f33bd45ec8f2344f60eb
URL:
https://github.com/kamailio/kamailio/commit/3ace6416387bcb487843f33bd45ec8f…
Author: iionita <ionut-razvan.ionita(a)1and1.ro>
Committer: iionita <ionut-razvan.ionita(a)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/3ace6416387bcb487843f33bd45ec8f…
Patch:
https://github.com/kamailio/kamailio/commit/3ace6416387bcb487843f33bd45ec8f…
---
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;
}