9namespace Bitrix\Sender\Integration\VoxImplant;
11use Bitrix\Main\Localization\Loc;
12use Bitrix\Main\Web\HttpClient;
14use Bitrix\Sender\Message;
15use Bitrix\Sender\Transport;
16use Bitrix\Sender\Recipient;
18Loc::loadMessages(__FILE__);
26 const CODE = self::CODE_CALL;
49 return Loc::getMessage(
'SENDER_INTEGRATION_CALL_TRANSPORT_NAME');
97 $clientOptions =
array(
98 'waitResponse' =>
false,
101 $this->httpClient =
new HttpClient($clientOptions);
102 $this->httpClient->setTimeout(1);
114 $outputNumber =
$message->getConfiguration()->get(
'OUTPUT_NUMBER');
118 $voiceLanguage =
$message->getConfiguration()->get(
'VOICE_LANGUAGE');
119 $voiceSpeed =
$message->getConfiguration()->get(
'VOICE_SPEED');
120 $voiceVolume =
$message->getConfiguration()->get(
'VOICE_VOLUME');
131 if ($callId &&
$message->getRecipientId())
133 CallLogTable::add(
array(
134 'CALL_ID' => $callId,
135 'RECIPIENT_ID' =>
$message->getRecipientId()
160 $messageText =
$message->getConfiguration()->get(
'MESSAGE_TEXT');
161 $voiceSpeed =
$message->getConfiguration()->get(
'VOICE_SPEED');
163 ->withSpeed($voiceSpeed)
164 ->withText($messageText)
167 $length = $length ?: 20;
171 return round(($length + $magic) / $limit);
191 if ($this->limiter ===
null)
193 $this->limiter =
new Limiter();
static send($outputNumber, $number, $text, $voiceLanguage='', $voiceSpeed='', $voiceVolume='')
getDuration(Message\Adapter $message=null)
getSupportedRecipientTypes()
send(Message\Adapter $message)
getLimiters(Message\iBase $message=null)
saveConfiguration(Message\Configuration $configuration)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)