caller id fixed

This commit is contained in:
luis daniel lucio quiroz
2015-06-24 16:49:07 +00:00
parent f2bbf183fa
commit 8e527ff817
2 changed files with 23 additions and 5 deletions
@@ -40,6 +40,8 @@ include "root.php";
private $dial_string;
public $accountcode;
public $forward_caller_id_uuid;
public $outbound_caller_id_name;
public $outbound_caller_id_number;
public function set() {
//set the global variable
@@ -56,6 +58,8 @@ include "root.php";
foreach ($result as &$row) {
$this->extension = $row["extension"];
$this->accountcode = $row["accountcode"];
$this->outbound_caller_id_name = $row["outbound_caller_id_name"];
$this->outbound_caller_id_number = $row["outbound_caller_id_number"];
}
}
unset ($prep_statement);
@@ -91,6 +95,12 @@ include "root.php";
}
}
}
else{
$dial_string .= ",outbound_caller_id_name=".$this->outbound_caller_id_name;
$dial_string .= ",outbound_caller_id_number=".$this->outbound_caller_id_number;
$dial_string .= ",origination_caller_id_name=".$this->outbound_caller_id_name;
$dial_string .= ",origination_caller_id_number=".$this->outbound_caller_id_number;
}
$dial_string .= "}";
if (extension_exists($this->forward_all_destination)) {