FollowMe external number timeout fix (#4438)

This commit is contained in:
Igor Olhovskiy 2019-08-19 18:12:17 +03:00 committed by FusionPBX
parent f3d93171da
commit 8361016fa5
1 changed files with 4 additions and 2 deletions

View File

@ -442,15 +442,17 @@ include "root.php";
}
elseif ($_SESSION['domain']['bridge']['text'] == "loopback") {
$variables[] = "is_follow_me_loopback=true";
$sleep_time = "sleep:".($row["follow_me_delay"] * 1000);
//$dial_string .= "loopback/".$row["follow_me_destination"]."/".$this->domain_name;
$dial_string .= "loopback/export:".implode("\,export:", $variables)."\,transfer:".$row["follow_me_destination"]."/".$this->domain_name."/inline";
$dial_string .= "loopback/".$sleep_time."\,export:".implode("\,export:", $variables)."\,transfer:".$row["follow_me_destination"]."/".$this->domain_name."/inline";
}
elseif ($_SESSION['domain']['bridge']['text'] == "lcr") {
$dial_string .= "[".implode(",", $variables)."]lcr/".$_SESSION['lcr']['profile']['text']."/".$this->domain_name."/".$row["follow_me_destination"];
}
else {
//$dial_string .= "loopback/".$row["follow_me_destination"]."/".$this->domain_name;
$dial_string .= "loopback/export:".implode("\,export:", $variables)."\,transfer:".$row["follow_me_destination"]."/".$this->domain_name."/inline";
$sleep_time = "sleep:".($row["follow_me_delay"] * 1000);
$dial_string .= "loopback/".$sleep_time."\,export:".implode("\,export:", $variables)."\,transfer:".$row["follow_me_destination"]."/".$this->domain_name."/inline";
}
}
else {