mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Update channel_variables
This commit is contained in:
@@ -346,11 +346,16 @@
|
||||
$common_variables .= "sip_req_user=".$fax_number.",";
|
||||
}
|
||||
|
||||
//prepare the channel variables
|
||||
$channel_variables = [];
|
||||
if (!empty($fax_toll_allow)) {
|
||||
$channel_variables["toll_allow"] = $fax_toll_allow;
|
||||
}
|
||||
|
||||
//prepare the fax command
|
||||
$channel_variables["toll_allow"] = !empty($fax_toll_allow) ? $fax_toll_allow : null;
|
||||
//get the outbound route array
|
||||
$route_array = outbound_route_to_bridge($domain_uuid, $fax_prefix . $fax_number, $channel_variables);
|
||||
|
||||
//prepare the fax_uri
|
||||
if (empty($route_array)) {
|
||||
//send the internal call to the registered extension
|
||||
if (count($route_array) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user