Место вашей рекламы.

Заявка

 

 

SuiteCRM карточка звонка Callinize — community Edition при одновременном вызове с Asterisk

 

Меняем в файле

/var/www/html/crm/custom/modules/Asterisk/include/callinize_db.php

со строки 399 до 409

if (count($availableExtensionsArray) == 1) {
        $query .= " user_extension = '$current_users_ext'";
    } else {
        foreach ($availableExtensionsArray as $singleExtension) {
            array_push($queryExtensionsArray, " user_extension = '$singleExtension'");
        }
        $query .= implode(' OR ', $queryExtensionsArray);
    }
    $query .=") AND (uistate IS NULL OR uistate !=
\"Closed\"))" ;

    $query .= ")";

 

Меняем  на

 

    if (count($availableExtensionsArray) == 1) {
        $query .= " user_extension = '$current_users_ext' OR channel LIKE 'SIP/$current_users_ext%'";
    } else {
        foreach ($availableExtensionsArray as $singleExtension) {
            array_push($queryExtensionsArray, " user_extension = '$singleExtension'");
        }
        $query .= implode(' OR ', $queryExtensionsArray);
    }
    //$query .=") AND (
яuistate IS NULL OR uistate != \"Closed\"))" ;

 


    $query .=") )" ;

    $query .= ")";

my(@)iskop.ru   

© Copyright 2022. All rights reserved.