Module: sip-router
Branch: master
Commit: 79a23a4fc154ad1ff174c3a8c2a14c3c5f85f402
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=79a23a4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Dec 11 23:37:24 2014 +0100
core: set log prefix only for sip messages
---
dprint.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dprint.c b/dprint.c
index caf39c3..9bc9d93 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) {
+ if(msg==NULL || !IS_SIP(msg)) {
log_prefix_val = NULL;
return;
}