Module: sip-router
Branch: master
Commit: d931ce355d994fbd12c7c60d766ff0d12c4829d0
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d931ce3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue May 20 16:14:32 2014 +0200
kex: count unsupported methods only for SIP requests
- reported by Juha Heinanen, FS#432
---
modules/kex/core_stats.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules/kex/core_stats.c b/modules/kex/core_stats.c
index 55118db..8fcba9d 100644
--- a/modules/kex/core_stats.c
+++ b/modules/kex/core_stats.c
@@ -122,6 +122,8 @@ static int km_cb_req_stats(struct sip_msg *msg,
unsigned int flags, void *param)
{
update_stat(rcv_reqs, 1);
+ if(!IS_SIP(msg))
+ return 1;
if(msg->first_line.u.request.method_value==METHOD_OTHER)
update_stat(unsupported_methods, 1);
return 1;