[sr-dev] git:master:0965c904: core: from/to/callid/cseq headers are parsed before logging prefix is used

Daniel-Constantin Mierla miconda at gmail.com
Wed Sep 28 16:42:43 CEST 2016


Module: kamailio
Branch: master
Commit: 0965c90471932936a8e66c1ebd9299ca7be02721
URL: https://github.com/kamailio/kamailio/commit/0965c90471932936a8e66c1ebd9299ca7be02721

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-09-28T16:42:22+02:00

core: from/to/callid/cseq headers are parsed before logging prefix is used

---

Modified: receive.c

---

Diff:  https://github.com/kamailio/kamailio/commit/0965c90471932936a8e66c1ebd9299ca7be02721.diff
Patch: https://github.com/kamailio/kamailio/commit/0965c90471932936a8e66c1ebd9299ca7be02721.patch

---

diff --git a/receive.c b/receive.c
index fc938e5..11918ed 100644
--- a/receive.c
+++ b/receive.c
@@ -181,6 +181,8 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
 		}
 		else if(ret == NONSIP_MSG_DROP) goto error02;
 	}
+
+	parse_headers(msg, HDR_FROM_F|HDR_TO_F|HDR_CALLID_F|HDR_CSEQ_F, 0);
 	LM_DBG("--- received sip message - %s - call-id: [%.*s] - cseq: [%.*s]\n",
 			(msg->first_line.type==SIP_REQUEST)?"request":"reply",
 			(msg->callid && msg->callid->body.s)?msg->callid->body.len:0,




More information about the sr-dev mailing list