PJSIP вместо chan_sip у избранных пользователей
itgrix_bx (Битрикс24)
itgrix_amo (amoCRM)
itgrix_bx (Битрикс24) ДО версии 3.4.0
itgrix_amo (amoCRM) ДО версии 2.6.0
$channel = &$params['channel'];
list($channel_type, $peer) = explode("/", $channel);
$pjsipPeerList = array(101, 102, 103);
if (in_array($peer, $pjsipPeerList)) {
$channel_type = "PJSIP";
};
$channel = $channel_type . '/' . $peer;
return array(
'state' => 'success',
'data' => $params
);Last updated