Я использую Laravel. Вот я ставлю звонок в очередь
Код: Выделить всё
$taskAttributes = [
'channel' => 'voice', // Specify that it's a voice call
'type' => $deptName,
'departmentId' => $department_id,
];
$enqueue->task(json_encode($taskAttributes),['timeout' => 60]);
return response($response)->header('Content-Type', 'text/xml');
Код: Выделить всё
return response()->json([
"instruction" => "dequeue",
"status_callback_events" => "initiated,ringing,answered,completed",
"record" => "record-from-answer",
"status_callback_url" => url('ivr/statuseventCallback'),
]);
Подробнее здесь: https://stackoverflow.com/questions/777 ... rence-call
Мобильная версия