소스 검색

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;