[sr-dev] git:tmp/k3.0_sr_backports: core: update fwd_reqs stat

Andrei Pelinescu-Onciul andrei at iptel.org
Mon Feb 1 18:25:56 CET 2010


Module: sip-router
Branch: tmp/k3.0_sr_backports
Commit: 878d2c6bf05eb2d81f00df2618b3b4f216e16bb0
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=878d2c6bf05eb2d81f00df2618b3b4f216e16bb0

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Oct 13 21:40:04 2009 +0200

core: update fwd_reqs stat
(cherry picked from commit 6a84eeebc2575d90d5795abb95af33ab37407aef)

---

 forward.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/forward.c b/forward.c
index d7fb827..a9cfc7f 100644
--- a/forward.c
+++ b/forward.c
@@ -72,6 +72,7 @@
 #include "config.h"
 #include "parser/msg_parser.h"
 #include "route.h"
+#include "events.h"
 #include "dprint.h"
 #include "globals.h"
 #include "cfg_core.h"
@@ -581,6 +582,8 @@ end:
 #endif
 	if (buf) pkg_free(buf);
 	/* 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);
 	return ret;
 }
 




More information about the sr-dev mailing list