Module: sip-router
Branch: kamailio_3.0
Commit: f4b64fc173c4ecc470346f05514af43adbda294a
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f4b64fc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Oct 23 16:48:16 2009 +0200
update drp_reqs statistics
---
forward.c | 2 ++
receive.c | 3 +++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/forward.c b/forward.c
index eae80ed..3a4fbf4 100644
--- a/forward.c
+++ b/forward.c
@@ -584,6 +584,8 @@ end:
/* received_buf & line_buf will be freed in receive_msg by free_lump_list*/
if(ret==0)
sr_event_exec(SREV_CORE_STATS, (void*)1);
+ else
+ sr_event_exec(SREV_CORE_STATS, (void*)3);
return ret;
}
diff --git a/receive.c b/receive.c
index 92f6bb0..b6e6f6e 100644
--- a/receive.c
+++ b/receive.c
@@ -182,7 +182,10 @@ int receive_msg(char* buf, unsigned int len, struct receive_info*
rcv_info)
on via1 being parsed in a pre-script callback --andrei
*/
if (exec_pre_script_cb(msg, REQUEST_CB_TYPE)==0 )
+ {
+ sr_event_exec(SREV_CORE_STATS, (void*)3);
goto end; /* drop the request */
+ }
set_route_type(REQUEST_ROUTE);
/* exec the routing script */