Skip to content

Commit

Permalink
Правка оформления кода.
Browse files Browse the repository at this point in the history
  • Loading branch information
boffart committed Jul 23, 2024
1 parent c5655c8 commit 728f79c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/Core/Workers/Libs/WorkerCallEvents/ActionDialAnswer.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,15 @@ private static function fillPickUpCdr($worker, $data): void
$new_data = $m_row_data->toArray();

// Update certain fields in the new data.
$new_data['start'] = $data['answer'];
$new_data['answer'] = $data['answer'];
$new_data['endtime'] = '';
$new_data['start'] = $data['answer'];
$new_data['answer'] = $data['answer'];
$new_data['endtime'] = '';
$new_data['dst_chan'] = $data['agi_channel'];
$new_data['dst_num'] = $data['dst_num'];
$new_data['dst_num'] = $data['dst_num'];
$new_data['UNIQUEID'] = $data['id'];

// Check if call recording is enabled for this source and destination numbers.
if ($worker->enableMonitor($new_data['src_num'] ?? '', $new_data['dst_num'] ?? '')) {

// If it is, start recording the call.
$new_data['recordingfile'] = $worker->MixMonitor($new_data['dst_chan'], 'pickup_' . $new_data['UNIQUEID'], '', '', 'fillPickUpCdr');
}
Expand Down

0 comments on commit 728f79c

Please sign in to comment.