mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-15 22:08:33 +00:00
make mod cdr work on windows, and make it segfault less.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2279 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
eaa28d3ea9
commit
c0be28d911
3 files changed
+40
-34
No files matched your search
@@ -65,7 +65,7 @@ CsvCDR::CsvCDR(switch_mod_cdr_newchannel_t *newchannel) : BaseCDR(newchannel)
|
||||
|
||||
// Format the times
|
||||
apr_size_t retsizecsd, retsizecad, retsizeced; //csd == callstartdate, cad == callanswerdate, ced == callenddate, ceff == callenddate_forfile
|
||||
char format[] = "%F %T";
|
||||
char format[] = "%Y-%m-%d-%H-%M-%S";
|
||||
switch_strftime(formattedcallstartdate,&retsizecsd,sizeof(formattedcallstartdate),format,&tempcallstart);
|
||||
switch_strftime(formattedcallanswerdate,&retsizecad,sizeof(formattedcallanswerdate),format,&tempcallanswer);
|
||||
switch_strftime(formattedcallenddate,&retsizeced,sizeof(formattedcallenddate),format,&tempcallend);
|
||||
@@ -193,7 +193,7 @@ void CsvCDR::open_file()
|
||||
switch_time_exp_lt(&now_converted,now);
|
||||
|
||||
apr_size_t retsize;
|
||||
char format[] = "%F %T";
|
||||
char format[] = "%Y-%m-%d-%H-%M-%S";
|
||||
char formatteddate[100];
|
||||
memset(formatteddate,0,100);
|
||||
switch_strftime(formatteddate,&retsize,100,format,&now_converted);
|
||||
|
||||
Reference in new issue
Block a user