Module: kamailio Branch: 4.2 Commit: c7ac6d742b2e9eb2a90747d065327612513eae6a URL: https://github.com/kamailio/kamailio/commit/c7ac6d742b2e9eb2a90747d065327612...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2015-05-19T15:16:35+02:00
core: enable log_prefix for sip responses
- reported by Klaus Darilion
(cherry picked from commit 967ed551845044123f4e93c60091d7a1fa43692f)
---
Modified: dprint.c
---
Diff: https://github.com/kamailio/kamailio/commit/c7ac6d742b2e9eb2a90747d065327612... Patch: https://github.com/kamailio/kamailio/commit/c7ac6d742b2e9eb2a90747d065327612...
---
diff --git a/dprint.c b/dprint.c index 9bc9d93..7d41562 100644 --- a/dprint.c +++ b/dprint.c @@ -396,7 +396,7 @@ void log_prefix_set(sip_msg_t *msg) { if(log_prefix_pvs == NULL) return; - if(msg==NULL || !IS_SIP(msg)) { + if(msg==NULL || !(IS_SIP(msg) || IS_SIP_REPLY(msg))) { log_prefix_val = NULL; return; }