Black and white lists
How to setup?
Black / white lists (filtering by internal number):
$black_list = array('101', '102');
$key = $params['conversation']['type'] == 2 ? 'to' : 'from'; // 2 = incoming
if (in_array($params['conversation'][$key], $black_list)) {
$result = false;
}
return array(
'state' => 'success',
'data' => array(
'result' => $result
),
);PreviousChange phone number before sending data to CRMNextUseful customizations itgrix_bx (Bitrix24)
Last updated