Module: kamailio
Branch: master
Commit: b81204e213a7ca14b95dda8a9191e622f78661dd
URL:
https://github.com/kamailio/kamailio/commit/b81204e213a7ca14b95dda8a9191e62…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-07-27T09:13:42+02:00
call_obj: fix convertion from uint32 to uint64
---
Modified: src/modules/call_obj/call_obj_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b81204e213a7ca14b95dda8a9191e62…
Patch:
https://github.com/kamailio/kamailio/commit/b81204e213a7ca14b95dda8a9191e62…
---
diff --git a/src/modules/call_obj/call_obj_mod.c b/src/modules/call_obj/call_obj_mod.c
index 31bc1dade6..3e27245917 100644
--- a/src/modules/call_obj/call_obj_mod.c
+++ b/src/modules/call_obj/call_obj_mod.c
@@ -121,7 +121,8 @@ static void rpc_call_obj_list(rpc_t *rpc, void *ctx)
}
uint64_t current_ts;
- uint64_t dur_ms = duration*1000; /* duration in milliseconds */
+ uint64_t dur_ms = duration;
+ dur_ms *= 1000; /* duration in milliseconds */
if (get_timestamp(¤t_ts)) {
LM_ERR("error getting timestamp");
rpc->fault(ctx, 500, "error getting timestamp");