Commit 2407b4aa authored by Kulya's avatar Kulya 😊

Последние исправления по звонкам

parent 5045e797
......@@ -558,9 +558,11 @@ class AloVoiceActions
else{
$this->runAsteriskAction([
new \PAMI\Message\Action\DBDelAction("DND",$n),
new \PAMI\Message\Action\CommandAction("dialplan set global DEVICE_STATE(Custom:DND".$n.") UNAVAILABLE"),
new \PAMI\Message\Action\CommandAction("dialplan set global DEVICE_STATE(Custom:DND".$n.") ONHOLD"),
// new \PAMI\Message\Action\CommandAction("dialplan set global DEVICE_STATE(Custom:DND".$n.") UNAVAILABLE"),
//"dialplan set global DEVICE_STATE(Custom:DND".$n.") NOT_INUSE",
new \PAMI\Message\Action\CommandAction("dialplan set global DEVICE_STATE(Custom:DEVDND".$n.") UNAVAILABLE")
new \PAMI\Message\Action\CommandAction("dialplan set global DEVICE_STATE(Custom:DEVDND".$n.") ONHOLD")
// new \PAMI\Message\Action\CommandAction("dialplan set global DEVICE_STATE(Custom:DEVDND".$n.") UNAVAILABLE")
//"dialplan set global DEVICE_STATE(Custom:DEVDND".$n.") NOT_INUSE"
]
);
......
......@@ -1993,7 +1993,7 @@ CFU=';
$connrID = $this->TG->getCode();
$widgetUri = $this->configs["alovoice_host"];
$widgetName = 'Telegram Клиент';
//{"CONNECTOR":"tgclient998971041030","LINE":"1","STATUS":false,"ACTIVE_STATUS":true,"CONNECTION_STATUS":false,"REGISTER_STATUS":false,"ERROR_STATUS":false}
if( !empty($options['LINE']) ){
$result = BxRest::call( 'imconnector.activate', [
'CONNECTOR' => $connrID,
......@@ -2031,7 +2031,7 @@ CFU=';
if( !empty($oLine) && intval($oLine) == intval($options['LINE']) ){
//$arResult['body'] = 'successfully';
$arResult['body'] = 'Линия подключён к аккоунту Телеграм: <br> <b>'.$accInfo->print_name.'</b> ('.$accInfo->phone.') <pre>['.$accInfo->username.']</pre>';
$arResult['body'] = 'Линия подключён к акaунту Телеграм: <br> <b>'.$accInfo->print_name.'</b> ('.$accInfo->phone.') <pre>['.$accInfo->username.']</pre>';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment