core: print src address details if initial message parsing fails
authorDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 21 Aug 2013 22:14:53 +0000 (00:14 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Wed, 21 Aug 2013 22:14:53 +0000 (00:14 +0200)
- reported by Juha Heinanen

receive.c

index a4018ff..6b5740f 100644 (file)
--- a/receive.c
+++ b/receive.c
@@ -143,7 +143,9 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
 
        if (parse_msg(buf,len, msg)!=0){
                LOG(cfg_get(core, core_cfg, corelog),
-                               "ERROR: receive_msg: parse_msg failed\n");
+                               "core parsing of SIP message failed (%s:%d/%d)\n",
+                               ip_addr2a(&msg->rcv.src_ip), (int)msg->rcv.src_port,
+                               (int)msg->rcv.proto);
                goto error02;
        }
        DBG("After parse_msg...\n");