Explorar el Código

update bad_URIs statistics
(cherry picked from commit feef8d66b067e34459660be78b1f6b2625eaa533)

Daniel-Constantin Mierla hace 16 años
padre
commit
1c18ae3f87
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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;
 }