Problem : Using "*1" on demand recording to record calls. After 2nd recorded calls, the ARI call monitor page doesn't show the 'Play' link properly. All rows in the first page has a 'Play' link with the last recorded call. I cannot retrieve any previous recorded call from the call monitor page anymore.
Proposed fix : This problem was because of the $unique_file_key variable didn't initialize properly key within the matching loop.
Fixed by initialize $unique_file_key variable in /var/www/html/recordings/modules/callmonitor.module getRecordings function.
// unique file key
$unique_file_key=""; <--- added line to initialize $unique_file_key
if ($uniqueid) {
$buf = preg_replace('/\-|\:/', '', $calldate);
$calldate_key = preg_replace('/\s+/', '-', $buf);
$unique_file_key = $calldate_key . "-" . $uniqueid;
}