Update follow_me.php

This commit is contained in:
FusionPBX
2016-11-01 13:45:51 -06:00
committed by GitHub
parent 305651724b
commit 86fc5c9f51
+6 -1
View File
@@ -329,13 +329,18 @@ include "root.php";
$dial_string .= ",origination_caller_id_number=$dial_string_caller_id_number"; $dial_string .= ",origination_caller_id_number=$dial_string_caller_id_number";
} }
if (strlen($this->accountcode) > 0) { if (strlen($this->accountcode) == 0) {
$dial_string .= ",sip_h_X-accountcode=\${accountcode}";
}
else {
$dial_string .= ",sip_h_X-accountcode=".$this->accountcode; $dial_string .= ",sip_h_X-accountcode=".$this->accountcode;
$dial_string .= ",accountcode=".$this->accountcode; $dial_string .= ",accountcode=".$this->accountcode;
} }
if ($this->toll_allow != '') { if ($this->toll_allow != '') {
$dial_string .= ",toll_allow='".$this->toll_allow."'"; $dial_string .= ",toll_allow='".$this->toll_allow."'";
} }
$dial_string .= "}"; $dial_string .= "}";
$x = 0; $x = 0;
if (is_array($result)) foreach ($result as &$row) { if (is_array($result)) foreach ($result as &$row) {