From 7f980640943b2e6783308e7b84d158fcc205dcb6 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 11 Nov 2016 13:19:52 -0700 Subject: [PATCH] Update fax_send.php Get fax variables from default settings and use them for sending. --- app/fax/fax_send.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/fax/fax_send.php b/app/fax/fax_send.php index d4a7661cfa..e23ac2033b 100644 --- a/app/fax/fax_send.php +++ b/app/fax/fax_send.php @@ -17,7 +17,7 @@ The Initial Developer of the Original Code is Mark J Crane - Portions created by the Initial Developer are Copyright (C) 2008-2015 + Portions created by the Initial Developer are Copyright (C) 2008-2016 the Initial Developer. All Rights Reserved. Contributor(s): @@ -714,16 +714,19 @@ function fax_split_dtmf(&$fax_number, &$fax_dtmf){ if (count($route_array) == 0) { //send the internal call to the registered extension $fax_uri = "user/".$fax_number."@".$_SESSION['domain_name']; - $t38 = ""; + $fax_variables = ""; } else { //send the external call $fax_uri = $route_array[0]; - $t38 = "fax_enable_t38=true,fax_enable_t38_request=true,"; + $fax_variables = ""; + foreach($_SESSION['fax']['variable'] as $variable) { + $fax_variables .= $variable.","; + } } if ($fax_send_mode != 'queue') { - $dial_string .= $t38; + $dial_string .= $fax_variables; $dial_string .= "mailto_address='" . $mailto_address . "',"; $dial_string .= "mailfrom_address='" . $mailfrom_address . "',"; $dial_string .= "fax_uri=" . $fax_uri . ",";