Module: sip-router
Branch: kamailio_3.0
Commit: 0c7926f1a854aed5af4541518bc0cacdf4fce7e7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=0c7926f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Oct 23 15:51:39 2009 +0200
update bad_msg_hdr statistics
---
parser/msg_parser.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/parser/msg_parser.c b/parser/msg_parser.c
index 0388bd4..d218b0b 100644
--- a/parser/msg_parser.c
+++ b/parser/msg_parser.c
@@ -54,6 +54,7 @@
#include "../data_lump_rpl.h"
#include "../mem/mem.h"
#include "../error.h"
+#include "../events.h"
#include "../globals.h"
#include "parse_hname2.h"
#include "parse_uri.h"
@@ -276,6 +277,7 @@ char* get_hdr_field(char* buf, char* end, struct hdr_field* hdr)
return tmp;
error:
DBG("get_hdr_field: error exit\n");
+ sr_event_exec(SREV_CORE_STATS, (void*)8);
hdr->type=HDR_ERROR_T;
hdr->len=tmp-hdr->name.s;
return tmp;