Ensure that the follow me data is added to the db correctly.

This commit is contained in:
Mark Crane 2013-04-11 08:15:44 +00:00
parent fcad8599bb
commit 377dfb9d7e
1 changed files with 37 additions and 31 deletions

View File

@ -270,13 +270,19 @@ include "root.php";
if (count($result) > 0) { if (count($result) > 0) {
foreach ($result as &$row) { foreach ($result as &$row) {
//$cid_name_prefix = $row["cid_name_prefix"]; //$cid_name_prefix = $row["cid_name_prefix"];
$follow_me_uuid = $row["follow_me_uuid"];
$this->call_prompt = $row["call_prompt"]; $this->call_prompt = $row["call_prompt"];
} }
} }
unset ($prep_statement); unset ($prep_statement);
//update the extension //is follow me enabled
if ($this->follow_me_enabled == "true") { if ($this->follow_me_enabled == "true") {
//add follow me
if (strlen($follow_me_uuid) == 0) {
$this->follow_me_add();
}
//set the extension dial string
$sql = "select * from v_follow_me_destinations "; $sql = "select * from v_follow_me_destinations ";
$sql .= "where follow_me_uuid = '".$this->follow_me_uuid."' "; $sql .= "where follow_me_uuid = '".$this->follow_me_uuid."' ";
$sql .= "order by follow_me_order asc "; $sql .= "order by follow_me_order asc ";