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:
parent
ec3d108a59
commit
b0a7b3d027
|
|
@ -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, ",");
|
||||
|
|
|
|||
Loading…
Reference in New Issue