Makefile.defs: version set 3.4.0-dev2
[sip-router] / receive.c
index 7f49fdc..a4018ff 100644 (file)
--- a/receive.c
+++ b/receive.c
@@ -135,11 +135,15 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
        /* buf[len]=0; */ /* WARNING: zero term removed! */
        msg->rcv=*rcv_info;
        msg->id=msg_no;
+       msg->pid=my_pid();
        msg->set_global_address=default_global_address;
        msg->set_global_port=default_global_port;
        
+       if(likely(sr_msg_time==1)) msg_set_time(msg);
+
        if (parse_msg(buf,len, msg)!=0){
-               LOG(L_ERR, "ERROR: receive_msg: parse_msg failed\n");
+               LOG(cfg_get(core, core_cfg, corelog),
+                               "ERROR: receive_msg: parse_msg failed\n");
                goto error02;
        }
        DBG("After parse_msg...\n");
@@ -181,7 +185,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
                        }
                }
 #endif
-                       
+
        /*      skip: */
                DBG("preparing to run routing scripts...\n");
 #ifdef  STATS