Module: kamailio
Branch: master
Commit: 10b86323cc47f29b41c21fd601d5b309cca050e6
URL: 
https://github.com/kamailio/kamailio/commit/10b86323cc47f29b41c21fd601d5b309cca050e6

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@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/10b86323cc47f29b41c21fd601d5b309cca050e6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/10b86323cc47f29b41c21fd601d5b309cca050e6.patch

---

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;

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to