浏览代码

update bad_URIs statistics

Daniel-Constantin Mierla 16 年之前
父节点
当前提交
feef8d66b0
共有 1 个文件被更改,包括 2 次插入0 次删除
  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;
 }