/
mikopbx
/
ModuleAutoDialer
Обзор
Документация
Войти
/
mikopbx
/
ModuleAutoDialer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
master
Models/TaskResults.php
175 строк
5 KB
boffart
feat: apply dialing windows per recipient timezone
06 авг 2026, 14:06
06 авг 2026, 14:06
f500fde
Код
Авторство
О чём код?
<?php /* * MikoPBX - free phone system for small business * Copyright © 2017-2023 Alexey Portnov and Nikolay Beketov * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along with this program. * If not, see <https://www.gnu.org/licenses/>. */ namespace Modules\ModuleAutoDialer\Models; use MikoPBX\Modules\Models\ModulesModelsBase; /** * Class ModuleCdrCallTags * * @package Modules\ModuleAutoDialer\Models * @Indexes( * [name='phoneId', columns=['phoneId'], type=''], * [name='state', columns=['state'], type=''], * [name='changeTime', columns=['changeTime'], type=''], * [name='closeTime', columns=['closeTime'], type=''], * [name='timeCallAllow', columns=['timeCallAllow'], type=''], * [name='clientId', columns=['clientId'], type=''], * [name='taskId', columns=['taskId'], type=''] * ) */ class TaskResults extends ModulesModelsBase { /** * Идентификатор записи. * @Primary * @Identity * @Column(type="integer", nullable=false) */ public $id; /** * Идентификатор задачи. * @Column(type="integer", nullable=false) */ public $taskId; /** * Индекс номера телефона. * @Column(type="string", nullable=false) */ public $phoneId; /** * Идентификатор клиента * @Column(type="string", nullable=false, default="") */ public $clientId = ''; /** * Номер телефона. * @Column(type="string", nullable=true) */ public $phone; /** * Идентификатор звонка. * @Column(type="string", nullable=true) */ public $linkedId; /** * Имя call файла * @Column(type="string", nullable=true) */ public $callFile; /** * Итоговый статус звонка * @Column(type="string", nullable=true) */ public $result = ""; /** * Статус Dial на внешний номер; * @Column(type="string", nullable=true) */ public $outDialState; /** * Статус Dial на внутренний номер; * @Column(type="string", nullable=true) */ public $inDialState; /** * Текущее состояние. * @Column(type="string", nullable=true) */ public $state; /** * Идентификатор лога для отладки. * @Column(type="string", nullable=true) */ public $verboseCallId; /** * Причина завершения вызова. * @Column(type="string", nullable=true) */ public $cause; /** * Причина завершения вызова. * @Column(type="string", nullable=true) */ public $params; /** * Время модификации. * @Column(type="integer", nullable=true) */ public $changeTime; /** * Номер попытки. * @Column(type="integer", nullable=true, default="1") */ public $attemptNumber = 1; /** * Начиная с этого timestamp вызов будет разрешен. * @Column(type="integer", nullable=true) */ public $timeCallAllow; /** * Смещение часового пояса получателя от UTC в минутах. * NULL означает использование локального времени АТС. * @Column(type="integer", nullable=true) */ public $timeOffsetMinutes; /** * Время завершения обарботки. * @Column(type="integer", nullable=true) */ public $closeTime; /** * Returns dynamic relations between module models and common models * @param $calledModelObject * * @return void */ public static function getDynamicRelations(&$calledModelObject): void { } /** * @return void */ public function initialize(): void { $this->setSource('m_TaskResults'); parent::initialize(); } }