Module: sip-router
Branch: 4.2
Commit: d80dfcc179af4cb45552722887a35cfe8efcc435
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d80dfcc179af4cb45552722887a35cfe8efcc435

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date:   Thu Dec 11 23:37:24 2014 +0100

core: set log prefix only for sip messages

(cherry picked from commit 79a23a4fc154ad1ff174c3a8c2a14c3c5f85f402)

---

 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;
        }


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to