Module: kamailio
Branch: master
Commit: d90101e1a50ef0c958e8e8a2f361198a28ea336a
URL:
https://github.com/kamailio/kamailio/commit/d90101e1a50ef0c958e8e8a2f361198…
Author: Tyler Moore <tmoore(a)goflyball.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-08-01T08:02:09+02:00
lib/srdb1: add uint support for db->pv conversions
- add support for converting unsigned integers into PVs.
---
Modified: src/lib/srdb1/db_ut.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d90101e1a50ef0c958e8e8a2f361198…
Patch:
https://github.com/kamailio/kamailio/commit/d90101e1a50ef0c958e8e8a2f361198…
---
diff --git a/src/lib/srdb1/db_ut.c b/src/lib/srdb1/db_ut.c
index 9975672aeea..76210d5691e 100644
--- a/src/lib/srdb1/db_ut.c
+++ b/src/lib/srdb1/db_ut.c
@@ -596,6 +596,10 @@ int db_val2pv_spec(struct sip_msg *msg, db_val_t *dbval, pv_spec_t
*pvs)
pv.flags = PV_VAL_INT | PV_TYPE_INT;
pv.ri = (long)dbval->val.int_val;
break;
+ case DB1_UINT:
+ pv.flags = PV_VAL_INT | PV_TYPE_INT;
+ pv.ri = (long)dbval->val.uint_val;
+ break;
case DB1_DATETIME:
pv.flags = PV_VAL_INT | PV_TYPE_INT;
pv.ri = (long)dbval->val.time_val;