Module: kamailio
Branch: master
Commit: 5436e1fe824dee419f0ceb5db836ad3d523c7313
URL:
https://github.com/kamailio/kamailio/commit/5436e1fe824dee419f0ceb5db836ad3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: GitHub <noreply(a)github.com>
Date: 2019-05-14T10:38:09+02:00
Merge pull request #1951 from ionutionita92/siptrace-bugfix
siptrace: fix tracing messages to database when destination uri not set
---
Modified: src/modules/siptrace/doc/siptrace_admin.xml
Modified: src/modules/siptrace/siptrace.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5436e1fe824dee419f0ceb5db836ad3…
Patch:
https://github.com/kamailio/kamailio/commit/5436e1fe824dee419f0ceb5db836ad3…
---
diff --git a/src/modules/siptrace/doc/siptrace_admin.xml
b/src/modules/siptrace/doc/siptrace_admin.xml
index 288824ba93..b3cb739130 100644
--- a/src/modules/siptrace/doc/siptrace_admin.xml
+++ b/src/modules/siptrace/doc/siptrace_admin.xml
@@ -556,6 +556,9 @@ sip_trace("sip:10.1.1.2:5085");
...
sip_trace("sip:10.1.1.2:5085", "$ci-abc");
...
+/* trace current dialog; needs to be done on initial INVITE and dialog has to be loaded
*/
+sip_trace("sip:10.1.1.2:5085", "$ci-abc", "d");
+...
</programlisting>
</example>
</section>
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;
}