caller id fixed
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user