Skip to content

Commit b5849b5

Browse files
Alexey PortnovAlexey Portnov
authored andcommitted
Исправлен краш WorkerAmoCrmAMI: Undefined array key recordingfile
Добавлен null coalescing для $data['recordingfile'] в actionCompleteCdr(). Поле может отсутствовать в данных AMI-события, что приводило к краху воркера и цепочке перезапусков с повторной обработкой CDR.
1 parent fe4252e commit b5849b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/WorkerAmoCrmAMI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ private function actionCompleteCdr($data):void
632632
'dst' => $data['dst_num'],
633633
'g-missed' => $data['GLOBAL_STATUS'] !== 'ANSWERED',
634634
'missed' => $data['disposition'] !== 'ANSWERED',
635-
'filename' => $data['recordingfile'],
635+
'filename' => $data['recordingfile']??'',
636636
'action' => 'end-call',
637637
];
638638
ClientHTTP::sendHttpPostRequest(self::getChannelUrl(), $call);

0 commit comments

Comments
 (0)