From 3eb33d50f1528089c0065f8856d7770274c1520d Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 9 Jul 2013 00:16:42 +0000 Subject: [PATCH] Move group confirm key and file to per leg. --- app/calls/resources/classes/follow_me.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/calls/resources/classes/follow_me.php b/app/calls/resources/classes/follow_me.php index cf98e7263c..15954ac02c 100644 --- a/app/calls/resources/classes/follow_me.php +++ b/app/calls/resources/classes/follow_me.php @@ -291,9 +291,6 @@ include "root.php"; $prep_statement_2->execute(); $result = $prep_statement_2->fetchAll(PDO::FETCH_NAMED); $dial_string = "{instant_ringback=true,ignore_early_media=true,sip_invite_domain=".$_SESSION['domain_name']; - if ($this->call_prompt == "true") { - $dial_string .= ",group_confirm_key=exec,group_confirm_file=lua confirm.lua"; - } if (strlen($this->cid_name_prefix) > 0) { $dial_string .= ",origination_caller_id_name=".$this->cid_name_prefix."#\${caller_id_name}"; } @@ -303,6 +300,9 @@ include "root.php"; $dial_string .= "}"; foreach ($result as &$row) { $dial_string .= "[presence_id=".$row["follow_me_destination"]."@".$_SESSION['domain_name'].","; + if ($this->call_prompt == "true") { + $dial_string .= ",group_confirm_key=exec,group_confirm_file=lua confirm.lua"; + } $dial_string .= "leg_delay_start=".$row["follow_me_delay"].","; $dial_string .= "leg_timeout=".$row["follow_me_timeout"]."]"; if (extension_exists($row["follow_me_destination"])) {