mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
After adding ringback to the dialplan add the loopback to call forward and follow me. Doing this resolves issue with outbound caller id, multiple conditions on outbound routes, fail over and more.
This commit is contained in:
@@ -48,12 +48,12 @@ include "root.php";
|
||||
}
|
||||
else {
|
||||
$bridge = outbound_route_to_bridge ($_SESSION['domain_uuid'], $this->forward_all_destination);
|
||||
if (strlen($bridge[0]) > 0) {
|
||||
$dial_string .= $bridge[0];
|
||||
}
|
||||
else {
|
||||
//if (strlen($bridge[0]) > 0) {
|
||||
// $dial_string .= $bridge[0];
|
||||
//}
|
||||
//else {
|
||||
$dial_string .= "loopback/".$this->forward_all_destination;
|
||||
}
|
||||
//}
|
||||
}
|
||||
$this->dial_string = $dial_string;
|
||||
}
|
||||
|
||||
@@ -300,12 +300,12 @@ include "root.php";
|
||||
}
|
||||
else {
|
||||
$bridge = outbound_route_to_bridge ($_SESSION['domain_uuid'], $row["follow_me_destination"]);
|
||||
if (strlen($bridge[0]) > 0) {
|
||||
$dial_string .= "".$bridge[0].",";
|
||||
}
|
||||
else {
|
||||
//if (strlen($bridge[0]) > 0) {
|
||||
// $dial_string .= "".$bridge[0].",";
|
||||
//}
|
||||
//else {
|
||||
$dial_string .= "loopback/".$row["follow_me_destination"].",";
|
||||
}
|
||||
//}
|
||||
}
|
||||
}
|
||||
$this->dial_string = trim($dial_string, ",");
|
||||
|
||||
Reference in New Issue
Block a user