Module: kamailio
Branch: master
Commit: d7e8ae72a0258aa6c3bcf850ea410a929da003cb
URL:
https://github.com/kamailio/kamailio/commit/d7e8ae72a0258aa6c3bcf850ea410a9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-08-26T10:15:58+02:00
core: dprint - simplified sip msg check
---
Modified: src/core/dprint.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d7e8ae72a0258aa6c3bcf850ea410a9…
Patch:
https://github.com/kamailio/kamailio/commit/d7e8ae72a0258aa6c3bcf850ea410a9…
---
diff --git a/src/core/dprint.c b/src/core/dprint.c
index f4780bb4d4..ff63fd9ff1 100644
--- a/src/core/dprint.c
+++ b/src/core/dprint.c
@@ -504,7 +504,7 @@ void log_prefix_set(sip_msg_t *msg)
log_callid_set(msg);
if(log_prefix_pvs == NULL)
return;
- if(msg==NULL || !(IS_SIP(msg) || IS_SIP_REPLY(msg))) {
+ if(msg==NULL || !IS_SIP_MSG(msg)) {
log_prefix_val = NULL;
return;
}