From 6a43a3d1b839c0d2a2b35933e11d968ef5e2b825 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Tue, 2 Apr 2013 23:02:43 +0000 Subject: [PATCH] Fix call prompt for follow me so that when its disabled that it doesn't prompt to accept the call. --- app/calls/resources/classes/switch_follow_me.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/calls/resources/classes/switch_follow_me.php b/app/calls/resources/classes/switch_follow_me.php index 94956ba439..2265101a26 100644 --- a/app/calls/resources/classes/switch_follow_me.php +++ b/app/calls/resources/classes/switch_follow_me.php @@ -270,7 +270,7 @@ include "root.php"; if (count($result) > 0) { foreach ($result as &$row) { //$cid_name_prefix = $row["cid_name_prefix"]; - $call_prompt = $row["call_prompt"]; + $this->call_prompt = $row["call_prompt"]; } } unset ($prep_statement); @@ -283,9 +283,9 @@ include "root.php"; $prep_statement_2 = $db->prepare(check_sql($sql)); $prep_statement_2->execute(); $result = $prep_statement_2->fetchAll(PDO::FETCH_NAMED); - $dial_string = "{group_confirm_key=exec,group_confirm_file=lua confirm.lua,instant_ringback=true,ignore_early_media=true,sip_invite_domain=".$_SESSION['domain_name']; + $dial_string = "{instant_ringback=true,ignore_early_media=true,sip_invite_domain=".$_SESSION['domain_name']; if ($this->call_prompt == "true") { - $dial_string .= ",call_prompt=true"; + $dial_string .= ",group_confirm_key=exec,group_confirm_file=lua confirm.lua"; } //if (strlen($this->cid_name_prefix) > 0) { // $dial_string .= ",effective_caller_id_name=".$this->cid_name_prefix."#123";