Change the number / context for calling to asterisk
Contact us instead of reading the instructions
Initializing a call from CRM may not work for the following reasons:
//parameters names as in the config
$phone = &$params['extension'];
//We get the last 10 digits of the number in $match
if(preg_match('~(\d{10})$~', $phone, $match)){
//Adding a prefix to the found one
$phone = '8' . $match[1];
}
return array(
'state' => 'success',
'data' => $params
);Last updated