From: Jeff Lenk Date: Wed, 18 Jul 2012 03:40:13 +0000 (-0500) Subject: FS-4442 try this X-Git-Tag: v1.2.0~119^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ef3050f3a99c9b1dd6bb474f3c21d2c79e2c3368;p=thirdparty%2Ffreeswitch.git FS-4442 try this --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index b4b1977100..5c1f2d2442 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3732,7 +3732,7 @@ 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',%ld,%ld,'%q')", + "values ('%q','%q','%q','seized','%q',%"SWITCH_TIME_T_FMT",%ld,'%q')", to_user, to_host, switch_str_nil(p), mod_sofia_globals.hostname, switch_epoch_time_now(NULL) + exp_delta, (long)now, profile->name);