From f15444af650eff28361fc99c1a0b644d37d308f5 Mon Sep 17 00:00:00 2001 From: trumenov Date: Mon, 4 Sep 2023 20:38:03 +0300 Subject: [PATCH] #exp_unix_timestamp seitched to original str --- src/mod/endpoints/mod_sofia/mod_sofia.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/mod_sofia.c b/src/mod/endpoints/mod_sofia/mod_sofia.c index e73d081c87..ab5f706c61 100644 --- a/src/mod/endpoints/mod_sofia/mod_sofia.c +++ b/src/mod/endpoints/mod_sofia/mod_sofia.c @@ -2786,7 +2786,6 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam struct cb_helper *cb = (struct cb_helper *) pArg; char exp_buf[128] = ""; int exp_secs = 0; - int exp_unix = 0; switch_time_exp_t tm; cb->row_process++; @@ -2794,7 +2793,6 @@ 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 = atoi(argv[6]); switch_size_t retsize; exp_secs = (int)(etime - now); @@ -2807,7 +2805,7 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam "User: \t%s@%s\n" "Contact: \t%s\n" "Agent: \t%s\n" - "Status: \t%s(%s) EXP(%s) EXPSECS(%d) EXPUNIX(%d)\n" + "Status: \t%s(%s) EXP(%s) EXPSECS(%d) EXPUNIX(%s)\n" "Ping-Status:\t%s\n" "Ping-Time:\t%0.2f\n" "Host: \t%s\n" @@ -2817,7 +2815,7 @@ static int show_reg_callback(void *pArg, int argc, char **argv, char **columnNam "Auth-Realm: \t%s\n" "MWI-Account:\t%s@%s\n\n", switch_str_nil(argv[0]), switch_str_nil(argv[1]), switch_str_nil(argv[2]), switch_str_nil(argv[3]), - switch_str_nil(argv[7]), switch_str_nil(argv[4]), switch_str_nil(argv[5]), exp_buf, exp_secs, exp_unix, switch_str_nil(argv[18]), + switch_str_nil(argv[7]), switch_str_nil(argv[4]), switch_str_nil(argv[5]), exp_buf, exp_secs, switch_str_nil(argv[6]), switch_str_nil(argv[18]), (float)atoll(switch_str_nil(argv[19]))/1000, switch_str_nil(argv[11]), switch_str_nil(argv[12]), switch_str_nil(argv[13]), switch_str_nil(argv[14]), switch_str_nil(argv[15]), switch_str_nil(argv[16]), switch_str_nil(argv[17]));