Browse code

core: enable log_prefix for sip responses

- reported by Klaus Darilion

(cherry picked from commit 967ed551845044123f4e93c60091d7a1fa43692f)

Daniel-Constantin Mierla authored on 19/05/2015 13:13:49
Showing 1 changed files
... ...
@@ -396,7 +396,7 @@ void log_prefix_set(sip_msg_t *msg)
396 396
 {
397 397
 	if(log_prefix_pvs == NULL)
398 398
 		return;
399
-	if(msg==NULL || !IS_SIP(msg)) {
399
+	if(msg==NULL || !(IS_SIP(msg) || IS_SIP_REPLY(msg))) {
400 400
 		log_prefix_val = NULL;
401 401
 		return;
402 402
 	}