Update follow_me.php

This commit is contained in:
FusionPBX 2019-02-19 11:26:44 -07:00 committed by GitHub
parent bcbda3feff
commit 01b9cdff3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -343,10 +343,12 @@ include "root.php";
$variables[] = "domain=".$_SESSION['domain_name'];
$variables[] = "extension_uuid=".$this->extension_uuid;
$variables[] = "leg_delay_start=".$row["follow_me_delay"];
$variables[] = "originate_delay_start=".$row["follow_me_delay"];
$variables[] = "leg_timeout=".$row["follow_me_timeout"];
//$dial_string .= "\${sofia_contact(".$row["follow_me_destination"]."@".$_SESSION['domain_name'].")}";
$dial_string .= "[".implode(",", $variables)."]user/".$row["follow_me_destination"]."@".$_SESSION['domain_name'];
$dial_string .= "[".implode(",", $variables)."]\${sofia_contact(".$row["follow_me_destination"]."@".$_SESSION['domain_name'].")}";
//$dial_string .= "[".implode(",", $variables)."]user/".$row["follow_me_destination"]."@".$_SESSION['domain_name'];
//$dial_string .= "loopback/export:".implode("\,export:", $variables)."\,transfer:".$row["follow_me_destination"]."/".$_SESSION['domain_name']."/inline";
unset($variables);
}
else {
@ -470,6 +472,7 @@ include "root.php";
$sql = "update v_extensions set ";
$sql .= "dial_domain = '".$_SESSION['domain_name']."', ";
$sql .= "dial_string = '".$this->follow_me_destinations."', ";
$sql .= "follow_me_destinations = '".$this->follow_me_destinations."', ";
$sql .= "follow_me_enabled = '".$this->follow_me_enabled."' ";
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";