Module: kamailio Branch: master Commit: 7314fbcc6fb7c211817d1660b98deaf9db1ea504 URL: https://github.com/kamailio/kamailio/commit/7314fbcc6fb7c211817d1660b98deaf9...
Author: vlitvinov litvvitya92@gmail.com Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2025-04-02T07:42:38+02:00
kex: add KDMQ to request statistic
---
Modified: src/modules/kex/core_stats.c Modified: src/modules/kex/core_stats.h
---
Diff: https://github.com/kamailio/kamailio/commit/7314fbcc6fb7c211817d1660b98deaf9... Patch: https://github.com/kamailio/kamailio/commit/7314fbcc6fb7c211817d1660b98deaf9...
---
diff --git a/src/modules/kex/core_stats.c b/src/modules/kex/core_stats.c index cded47ffc94..ac0c177bf83 100644 --- a/src/modules/kex/core_stats.c +++ b/src/modules/kex/core_stats.c @@ -70,6 +70,7 @@ stat_var *rcv_reqs_prack; stat_var *rcv_reqs_update; stat_var *rcv_reqs_refer; stat_var *rcv_reqs_publish; +stat_var *rcv_reqs_kdmq; /*! extended received replies */ stat_var *rcv_rpls_1xx; stat_var *rcv_rpls_18x; @@ -148,7 +149,8 @@ stat_export_t core_stats[] = {{"rcv_requests", 0, &rcv_reqs}, {"rcv_requests_update", 0, &rcv_reqs_update}, {"rcv_requests_refer", 0, &rcv_reqs_refer}, {"rcv_requests_publish", 0, &rcv_reqs_publish}, - {"rcv_replies", 0, &rcv_rpls}, {"rcv_replies_1xx", 0, &rcv_rpls_1xx}, + {"rcv_requests_kdmq", 0, &rcv_reqs_kdmq}, {"rcv_replies", 0, &rcv_rpls}, + {"rcv_replies_1xx", 0, &rcv_rpls_1xx}, {"rcv_replies_18x", 0, &rcv_rpls_18x}, {"rcv_replies_2xx", 0, &rcv_rpls_2xx}, {"rcv_replies_3xx", 0, &rcv_rpls_3xx}, @@ -259,6 +261,9 @@ static int km_cb_req_stats(struct sip_msg *msg, unsigned int flags, void *param) case METHOD_PUBLISH: update_stat(rcv_reqs_publish, 1); break; + case METHOD_KDMQ: + update_stat(rcv_reqs_kdmq, 1); + break; case METHOD_OTHER: update_stat(unsupported_methods, 1); break; diff --git a/src/modules/kex/core_stats.h b/src/modules/kex/core_stats.h index a1ee018ba18..433747473d0 100644 --- a/src/modules/kex/core_stats.h +++ b/src/modules/kex/core_stats.h @@ -54,6 +54,7 @@ extern stat_var *rcv_reqs_prack; extern stat_var *rcv_reqs_update; extern stat_var *rcv_reqs_refer; extern stat_var *rcv_reqs_publish; +extern stat_var *rcv_reqs_kdmq;
/*! \brief received replies */ extern stat_var *rcv_rpls;