Browse Source

modules/sipcapture: a sip message must be stored after bad parsing also.

Alexandr Dubovikov 12 years ago
parent
commit
3823001dd8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/sipcapture/sipcapture.c

+ 1 - 1
modules/sipcapture/sipcapture.c

@@ -721,7 +721,7 @@ static int sip_capture_prepare(sip_msg_t *msg)
         /* We need parse all headers */
         if (parse_headers(msg, HDR_CALLID_F|HDR_EOH_F, 0) != 0) {
                 LM_ERR("cannot parse headers\n");
-                return -1;
+                return 0;
         }
 
         return 0;