Changeset 12473

Show
Ignore:
Timestamp:
08/31/11 16:29:39 (2 years ago)
Author:
mickecarlsson
Message:

Re #1426, add more time to csv export

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.10/cdr/functions.inc.php

    r12436 r12473  
    175175function cdr_export_csv($csvdata) { 
    176176  global $db; 
    177  
     177  // Searching for more than 10,000 records take more than 30 seconds. 
     178  // php default timeout is 30 seconds, hard code it to 3000 seconds for now (which is WAY overkill). 
     179  // TODO: make this value a setting in Advanced Settings 
     180  set_time_limit(3000); 
    178181  $fname    = "cdr__" .  (string) time() . $_SERVER["SERVER_NAME"] . ".csv"; 
    179182  $csv_header ="calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,accountcode,uniqueid,userfield\n";