mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Make the path more dynamic for the fax queue service
This commit is contained in:
@@ -135,6 +135,9 @@
|
|||||||
$debug = $_SESSION['fax_queue']['debug']['boolean'];
|
$debug = $_SESSION['fax_queue']['debug']['boolean'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//change the working directory
|
||||||
|
chdir($document_root);
|
||||||
|
|
||||||
//get the messages waiting in the email queue
|
//get the messages waiting in the email queue
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
||||||
@@ -176,7 +179,7 @@
|
|||||||
//process the messages
|
//process the messages
|
||||||
if (is_array($fax_queue) && @sizeof($fax_queue) != 0) {
|
if (is_array($fax_queue) && @sizeof($fax_queue) != 0) {
|
||||||
foreach($fax_queue as $row) {
|
foreach($fax_queue as $row) {
|
||||||
$command = "cd /var/www/fusionpbx && /usr/bin/php /var/www/fusionpbx/app/fax_queue/resources/job/fax_send.php ";
|
$command = exec('which php')." ".$document_root."/app/fax_queue/resources/job/fax_send.php ";
|
||||||
$command .= "'action=send&fax_queue_uuid=".$row["fax_queue_uuid"]."&hostname=".$hostname."'";
|
$command .= "'action=send&fax_queue_uuid=".$row["fax_queue_uuid"]."&hostname=".$hostname."'";
|
||||||
if (isset($debug)) {
|
if (isset($debug)) {
|
||||||
//run process inline to see debug info
|
//run process inline to see debug info
|
||||||
|
|||||||
Reference in New Issue
Block a user