Ticket #3684: callmonitor.module.patch
| File callmonitor.module.patch, 1.5 kB (added by ip-rob, 3 years ago) |
|---|
-
callmonitor.module.old
old new 125 125 126 126 $displayname = $_SESSION['ari_user']['displayname']; 127 127 $extension = $_SESSION['ari_user']['extension']; 128 $outboundCID = $_SESSION['ari_user']['outboundCID']; 128 129 129 130 // get data 130 131 $record_count = $this->getCdrCount($q,$duration_filter); … … 513 514 514 515 foreach($files as $key => $path) { 515 516 $parts = split("-", $path); 516 if (strlen($st)>1 && 517 if ((strpos($path,$extension)!==FALSE || strpos($path,$outboundCID)!==FALSE) && 518 (strlen($st)!==FALSE && 517 519 (strpos($path,$st)!==FALSE) || 518 (strpos($path,"auto")!==FALSE && $parts[1] >= $st && $parts[1] <= $et)) {520 (strpos($path,"auto")!==FALSE && $parts[1] >= $st && $parts[1] <= $et))) { 519 521 $recording = $path; 520 522 $files[$key] = ''; // remove it from the recording files so it will not be matched twice 521 523 break; … … 534 536 foreach($files as $key => $path) { 535 537 $split = explode("-", $path); 536 538 if (strlen($st)>1 539 && (strpos($path,$extension)>1 || 540 strpos($path,$outboundCID)>1) 537 541 && ((strpos($path,$st_1)!==FALSE) || 538 542 (strpos($path,$st_2)!==FALSE) || 539 543 (strpos($path,"auto")!==FALSE && $parts[1] >= $st_1 && $parts[1] <= $et_1) ||
