From 5e75926f348b2ac2dec3da3e8a8a2d8ff79853f3 Mon Sep 17 00:00:00 2001 From: luis daniel lucio quiroz Date: Wed, 18 Dec 2013 02:04:32 +0000 Subject: [PATCH] follow me and forward now have balancing support --- app/calls/resources/classes/call_forward.php | 5 +++-- app/calls/resources/classes/do_not_disturb.php | 2 +- app/calls/resources/classes/follow_me.php | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/calls/resources/classes/call_forward.php b/app/calls/resources/classes/call_forward.php index 2bb1dff4af..8dd2f6fc40 100644 --- a/app/calls/resources/classes/call_forward.php +++ b/app/calls/resources/classes/call_forward.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + Luis Daniel Lucio Quiroz */ 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 -?> \ No newline at end of file +?> diff --git a/app/calls/resources/classes/do_not_disturb.php b/app/calls/resources/classes/do_not_disturb.php index 7f193aacf7..9b240b462d 100644 --- a/app/calls/resources/classes/do_not_disturb.php +++ b/app/calls/resources/classes/do_not_disturb.php @@ -114,4 +114,4 @@ include "root.php"; } //function } //class -?> \ No newline at end of file +?> diff --git a/app/calls/resources/classes/follow_me.php b/app/calls/resources/classes/follow_me.php index cafb55b3dc..055307f747 100644 --- a/app/calls/resources/classes/follow_me.php +++ b/app/calls/resources/classes/follow_me.php @@ -22,6 +22,7 @@ Contributor(s): Mark J Crane + Luis Daniel Lucio Quiroz */ 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 {