Module: kamailio
Branch: master
Commit: 10b86323cc47f29b41c21fd601d5b309cca050e6
URL:
https://github.com/kamailio/kamailio/commit/10b86323cc47f29b41c21fd601d5b30…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-02-05T16:19:20+01:00
influxdbc: convert string value to double
---
Modified: src/modules/influxdbc/influxdbc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/10b86323cc47f29b41c21fd601d5b30…
Patch:
https://github.com/kamailio/kamailio/commit/10b86323cc47f29b41c21fd601d5b30…
---
diff --git a/src/modules/influxdbc/influxdbc_mod.c
b/src/modules/influxdbc/influxdbc_mod.c
index b1c79b4b494..2c2f8804bb4 100644
--- a/src/modules/influxdbc/influxdbc_mod.c
+++ b/src/modules/influxdbc/influxdbc_mod.c
@@ -242,6 +242,8 @@ static int w_influxdbc_double(sip_msg_t *msg, char *pname, char
*pvalue)
return -1;
}
+ dval = strtod(sval.s, NULL);
+
ic_double(sname.s, dval);
return 1;