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:
Mark Crane
2013-02-03 06:47:19 +00:00
parent ec3d108a59
commit b0a7b3d027
2 changed files with 10 additions and 10 deletions

View File

@@ -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;
}

View File

@@ -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, ",");