Skip to content

Commit ec0f3d7

Browse files
committed
[mod_sofia] use SWITCH_TIME_T_FMT
1 parent e343b47 commit ec0f3d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mod/endpoints/mod_sofia/sofia_presence.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -4195,9 +4195,9 @@ void sofia_presence_handle_sip_i_subscribe(int status,
41954195

41964196
now = switch_epoch_time_now(NULL);
41974197
sql = switch_mprintf("insert into sip_dialogs (sip_from_user,sip_from_host,call_info,call_info_state,hostname,expires,rcd,profile_name) "
4198-
"values ('%q','%q','%q','seized','%q',%"TIME_T_FMT",%ld,'%q')",
4198+
"values ('%q','%q','%q','seized','%q',%"SWITCH_TIME_T_FMT",%"SWITCH_TIME_T_FMT",'%q')",
41994199
to_user, to_host, switch_str_nil(p), mod_sofia_globals.hostname,
4200-
switch_epoch_time_now(NULL) + exp_delta, (long)now, profile->name);
4200+
switch_epoch_time_now(NULL) + exp_delta, now, profile->name);
42014201

42024202
if (mod_sofia_globals.debug_sla > 1) {
42034203
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "SEIZE SQL %s\n", sql);

0 commit comments

Comments
 (0)