From cd364e46ceca6ac348fcf4574633d1476db0351f Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Wed, 17 Dec 2014 10:34:40 +0000 Subject: [PATCH] Fix the per leg variables in the follow me dial_string. --- app/calls/resources/classes/follow_me.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/calls/resources/classes/follow_me.php b/app/calls/resources/classes/follow_me.php index e8754236c0..a377045985 100644 --- a/app/calls/resources/classes/follow_me.php +++ b/app/calls/resources/classes/follow_me.php @@ -348,10 +348,10 @@ include "root.php"; if ($x > 0) { $dial_string .= ","; } - $dial_string .= "["; if (extension_exists($row["follow_me_destination"])) { //set the dial string if (strlen($_SESSION['domain']['dial_string']['text']) == 0) { + $dial_string .= "["; $dial_string .= "outbound_caller_id_number=\${caller_id_number},"; $dial_string .= "presence_id=".$row["follow_me_destination"]."@".$_SESSION['domain_name'].","; if ($row["follow_me_prompt"] == "1") { @@ -364,7 +364,7 @@ include "root.php"; else { $replace_value = $row["follow_me_destination"]; if ($row["follow_me_prompt"] == "1") { - $replace_value .= "group_confirm_key=exec,group_confirm_file=lua confirm.lua,confirm=true]"; + $replace_value .= "[group_confirm_key=exec,group_confirm_file=lua confirm.lua,confirm=true]"; } $local_dial_string = $_SESSION['domain']['dial_string']['text']; $local_dial_string = str_replace("\${dialed_user}", $replace_value, $local_dial_string); @@ -375,6 +375,7 @@ include "root.php"; } } else { + $dial_string .= "["; $dial_string .= "outbound_caller_id_number=\${outbound_caller_id_number},"; $dial_string .= "presence_id=".$this->extension."@".$_SESSION['domain_name'].","; if ($row["follow_me_prompt"] == "1") {