From ec0f3d75b38dc89c2d5c7c247eed38cd8f15c950 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Mon, 13 Jan 2025 14:14:29 +0800 Subject: [PATCH] [mod_sofia] use SWITCH_TIME_T_FMT --- src/mod/endpoints/mod_sofia/sofia_presence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 48ad579411..1b7695bd0e 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -4195,9 +4195,9 @@ void sofia_presence_handle_sip_i_subscribe(int status, now = switch_epoch_time_now(NULL); sql = switch_mprintf("insert into sip_dialogs (sip_from_user,sip_from_host,call_info,call_info_state,hostname,expires,rcd,profile_name) " - "values ('%q','%q','%q','seized','%q',%"TIME_T_FMT",%ld,'%q')", + "values ('%q','%q','%q','seized','%q',%"SWITCH_TIME_T_FMT",%"SWITCH_TIME_T_FMT",'%q')", to_user, to_host, switch_str_nil(p), mod_sofia_globals.hostname, - switch_epoch_time_now(NULL) + exp_delta, (long)now, profile->name); + switch_epoch_time_now(NULL) + exp_delta, now, profile->name); if (mod_sofia_globals.debug_sla > 1) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SEIZE SQL %s\n", sql);