Browse code

core: print src address details if initial message parsing fails

- reported by Juha Heinanen

Daniel-Constantin Mierla authored on 21/08/2013 22:14:53
Showing 1 changed files
... ...
@@ -143,7 +143,9 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
143 143
 
144 144
 	if (parse_msg(buf,len, msg)!=0){
145 145
 		LOG(cfg_get(core, core_cfg, corelog),
146
-				"ERROR: receive_msg: parse_msg failed\n");
146
+				"core parsing of SIP message failed (%s:%d/%d)\n",
147
+				ip_addr2a(&msg->rcv.src_ip), (int)msg->rcv.src_port,
148
+				(int)msg->rcv.proto);
147 149
 		goto error02;
148 150
 	}
149 151
 	DBG("After parse_msg...\n");