Module: kamailio
Branch: master
Commit: 0595795c659f6af586e63837efe56b45808cd735
URL:
https://github.com/kamailio/kamailio/commit/0595795c659f6af586e63837efe56b4…
Author: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Committer: Federico Cabiddu <federico.cabiddu(a)gmail.com>
Date: 2020-04-28T16:24:24+02:00
ims_usrloc_pcscf, p_usrloc, usrloc: use KSR_STATS_NAMESEP for stats names
---
Modified: src/modules/ims_usrloc_pcscf/udomain.c
Modified: src/modules/p_usrloc/udomain.c
Modified: src/modules/usrloc/udomain.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0595795c659f6af586e63837efe56b4…
Patch:
https://github.com/kamailio/kamailio/commit/0595795c659f6af586e63837efe56b4…
---
diff --git a/src/modules/ims_usrloc_pcscf/udomain.c
b/src/modules/ims_usrloc_pcscf/udomain.c
index 7f63932e6b..bd5fabdb60 100644
--- a/src/modules/ims_usrloc_pcscf/udomain.c
+++ b/src/modules/ims_usrloc_pcscf/udomain.c
@@ -82,7 +82,7 @@ static char *build_stat_name( str* domain, char *var_name)
}
memcpy( s, domain->s, domain->len);
p = s + domain->len;
- *(p++) = '_';
+ *(p++) = KSR_STATS_NAMESEP;
memcpy( p , var_name, strlen(var_name));
p += strlen(var_name);
*(p++) = 0;
diff --git a/src/modules/p_usrloc/udomain.c b/src/modules/p_usrloc/udomain.c
index 88612e957b..91db944a0c 100644
--- a/src/modules/p_usrloc/udomain.c
+++ b/src/modules/p_usrloc/udomain.c
@@ -55,7 +55,7 @@ static char *build_stat_name( str* domain, char *var_name)
}
memcpy( s, domain->s, domain->len);
p = s + domain->len;
- *(p++) = '_';
+ *(p++) = KSR_STATS_NAMESEP;
memcpy( p , var_name, strlen(var_name));
p += strlen(var_name);
*(p++) = 0;
diff --git a/src/modules/usrloc/udomain.c b/src/modules/usrloc/udomain.c
index 321b72b64a..9f5e78cfd6 100644
--- a/src/modules/usrloc/udomain.c
+++ b/src/modules/usrloc/udomain.c
@@ -61,7 +61,7 @@ static char *build_stat_name( str* domain, char *var_name)
}
memcpy( s, domain->s, domain->len);
p = s + domain->len;
- *(p++) = '_';
+ *(p++) = KSR_STATS_NAMESEP;
memcpy( p , var_name, strlen(var_name));
p += strlen(var_name);
*(p++) = 0;