Update channel_variables

This commit is contained in:
FusionPBX
2025-10-30 20:11:33 -06:00
committed by GitHub
parent cf81cca8d1
commit 1b96e24713

View File

@@ -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) {