From 5ff4e02741d74c44f3a012a89874e8ef5cd79bd2 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 21 May 2015 03:05:07 +0000 Subject: [PATCH] Add category: fax, subcategory: prefix, type: text and set a value of some kind of prefix. --- app/fax/fax_send.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/fax/fax_send.php b/app/fax/fax_send.php index f2e10fb9c4..4a238afb31 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-2012 + Portions created by the Initial Developer are Copyright (C) 2008-2015 the Initial Developer. All Rights Reserved. Contributor(s): @@ -97,7 +97,6 @@ if (!$included) { } - //get the fax extension if (strlen($fax_extension) > 0) { //set the fax directories. example /usr/local/freeswitch/storage/fax/329/inbox @@ -543,7 +542,7 @@ if (!$included) { $fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']); if ($fp) { //prepare the fax command - $route_array = outbound_route_to_bridge($_SESSION['domain_uuid'], $fax_number); + $route_array = outbound_route_to_bridge($_SESSION['domain_uuid'], $_SESSION['fax']['prefix']['text'].$fax_number); $fax_file = $dir_fax_temp."/".$fax_instance_uuid.".tif"; if (count($route_array) == 0) { //send the internal call to the registered extension