瀏覽代碼

kex: count unsupported methods only for SIP requests

- reported by Juha Heinanen, FS#432
Daniel-Constantin Mierla 11 年之前
父節點
當前提交
d931ce355d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/kex/core_stats.c

+ 2 - 0
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;