- Модуль: sender
- Путь к файлу: ~/bitrix/modules/sender/lib/integration/voximplant/transportaudiocall.php
- Класс: Bitrix\Sender\Integration\VoxImplant\TransportAudioCall
- Вызов: TransportAudioCall::send
public function send(Message\Adapter $message) { $outputNumber = $message->getConfiguration()->get('OUTPUT_NUMBER'); $number = $message->getTo(); $fileJson = $message->getConfiguration()->get('AUDIO_FILE'); $audio = (new Audio()) ->withJsonString($fileJson) ->withMessageCode($message->getCode()); $callId = Service::sendFile( $outputNumber, $number, $audio->getFileUrl(true) ); if ($callId && $message->getRecipientId()) { CallLogTable::add(array( 'CALL_ID' => $callId, 'RECIPIENT_ID' => $message->getRecipientId() )); } return !!$callId; }