Fix the confirm dial string for follow me.

This commit is contained in:
Mark Crane
2013-09-18 04:06:59 +00:00
parent d1c75e4d4b
commit 97654672a9
+6 -3
View File
@@ -306,17 +306,20 @@ include "root.php";
$dial_string .= ",origination_caller_id_name=".$this->cid_name_prefix."#\${caller_id_name}"; $dial_string .= ",origination_caller_id_name=".$this->cid_name_prefix."#\${caller_id_name}";
} }
if (strlen($this->cid_number_prefix) > 0) { if (strlen($this->cid_number_prefix) > 0) {
$dial_string .= ",origination_caller_id_number=".$this->cid_number_prefix.""; //$dial_string .= ",origination_caller_id_number=".$this->cid_number_prefix."";
//$dial_string .= ",origination_caller_id_number=".$this->cid_number_prefix."#\${caller_id_number}"; $dial_string .= ",origination_caller_id_number=".$this->cid_number_prefix."#\${caller_id_number}";
} }
if (strlen($this->accountcode) > 0) { if (strlen($this->accountcode) > 0) {
$dial_string .= ",accountcode=".$this->accountcode; $dial_string .= ",accountcode=".$this->accountcode;
} }
//if ($this->call_prompt == "true") {
//$dial_string .= ",group_confirm_key=exec,group_confirm_file=lua confirm.lua";
//}
$dial_string .= "}"; $dial_string .= "}";
foreach ($result as &$row) { foreach ($result as &$row) {
$dial_string .= "[presence_id=".$row["follow_me_destination"]."@".$_SESSION['domain_name'].","; $dial_string .= "[presence_id=".$row["follow_me_destination"]."@".$_SESSION['domain_name'].",";
if ($this->call_prompt == "true") { if ($this->call_prompt == "true") {
$dial_string .= ",group_confirm_key=exec,group_confirm_file=lua confirm.lua"; $dial_string .= "group_confirm_key=exec,group_confirm_file=lua confirm.lua,";
} }
$dial_string .= "leg_delay_start=".$row["follow_me_delay"].","; $dial_string .= "leg_delay_start=".$row["follow_me_delay"].",";
$dial_string .= "leg_timeout=".$row["follow_me_timeout"]."]"; $dial_string .= "leg_timeout=".$row["follow_me_timeout"]."]";