From 421a4b8131cb422889418653b48066b8ac859dc0 Mon Sep 17 00:00:00 2001 From: trumenov Date: Mon, 4 Sep 2023 20:03:43 +0300 Subject: [PATCH] #exp_unix_timestamp added type conversion --- src/mod/endpoints/mod_sofia/mod_sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index d4753fb716..b9c7371d53 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2793,8 +2793,8 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam if (argv[6]) { time_t now = switch_epoch_time_now(NULL); - switch_time_t etime = atoi(argv[6]); - exp_unix = (int)etime; + switch_time_t etime = atoi(argv[6]); + exp_unix = (int)(atoi(argv[6])); switch_size_t retsize; exp_secs = (int)(etime - now);