follow me and forward now have balancing support

This commit is contained in:
luis daniel lucio quiroz
2013-12-18 02:04:32 +00:00
parent 342a3fc202
commit 5e75926f34
3 changed files with 6 additions and 5 deletions

View File

@@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <daniel.lucio@astraqom.com>
*/
include "root.php";
@@ -64,7 +65,7 @@ include "root.php";
}
$dial_string .= "}";
if (extension_exists($this->forward_all_destination)) {
$dial_string .= "\${sofia_contact(".$this->forward_all_destination."@".$_SESSION['domain_name'].")}";
$dial_string .= "user/".$this->forward_all_destination."@".$_SESSION['domain_name'];
}
else {
$bridge = outbound_route_to_bridge ($_SESSION['domain_uuid'], $this->forward_all_destination);
@@ -104,4 +105,4 @@ include "root.php";
} //function
} //class
?>
?>

View File

@@ -114,4 +114,4 @@ include "root.php";
} //function
} //class
?>
?>

View File

@@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
Luis Daniel Lucio Quiroz <daniel.lucio@astraqom.com>
*/
include "root.php";
@@ -333,8 +334,7 @@ include "root.php";
}
$dial_string .= "leg_delay_start=".$row["follow_me_delay"].",";
$dial_string .= "leg_timeout=".$row["follow_me_timeout"]."]";
$dial_string .= "\${sofia_contact(".$row["follow_me_destination"]."@".$_SESSION['domain_name'].")},";
$dial_string .= "user/".$row["follow_me_destination"]."@".$_SESSION['domain_name'].",";
}
else {