Browse Source

update bad_URIs statistics

Daniel-Constantin Mierla 16 years ago
parent
commit
feef8d66b0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      parser/parse_uri.c

+ 2 - 0
parser/parse_uri.c

@@ -50,6 +50,7 @@
 #include "../ut.h"   /* q_memchr */
 /* #endif */
 #include "../error.h"
+#include "../events.h"
 
 /* buf= pointer to begining of uri (sip:[email protected]:5060;a=b?h=i)
  * len= len of uri
@@ -1223,6 +1224,7 @@ error_bug:
 error_exit:
 	ser_error=E_BAD_URI;
 	uri->type=ERROR_URI_T;
+	sr_event_exec(SREV_CORE_STATS, (void*)7);
 	return E_BAD_URI;
 }