Module: kamailio
Branch: master
Commit: 631bad4f0531af0ba44e5af99841d3b6371ee63e
URL:
https://github.com/kamailio/kamailio/commit/631bad4f0531af0ba44e5af99841d3b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-12-04T15:20:51+01:00
dispatcher: convert to unsigned int pv value for oc time
---
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/631bad4f0531af0ba44e5af99841d3b…
Patch:
https://github.com/kamailio/kamailio/commit/631bad4f0531af0ba44e5af99841d3b…
---
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index d5abb6a62ac..ff7b34931fe 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -1529,9 +1529,11 @@ static int pv_get_dsg(sip_msg_t *msg, pv_param_t *param, pv_value_t
*res)
return pv_get_sintval(
msg, param, res, (int)((inactive * 100) / count));
case 5: /* octime_sec */
- return pv_get_sintval(msg, param, res, (long)ocdata.octime.tv_sec);
+ return pv_get_uintval(
+ msg, param, res, (unsigned long)ocdata.octime.tv_sec);
case 6: /* octime_usec */
- return pv_get_sintval(msg, param, res, (long)ocdata.octime.tv_usec);
+ return pv_get_uintval(
+ msg, param, res, (unsigned long)ocdata.octime.tv_usec);
case 7: /* ocseq */
return pv_get_sintval(msg, param, res, ocdata.ocseq);
case 8: /* ocrate */