Update call_forward.php
This commit is contained in:
parent
4d76a50e9c
commit
305651724b
|
|
@ -77,7 +77,10 @@ include "root.php";
|
|||
$dial_string .= ",extension_uuid=".$this->extension_uuid;
|
||||
$dial_string .= ",toll_allow='".$this->toll_allow."'";
|
||||
$dial_string .=",sip_h_Diversion=<sip:".$this->extension."@".$_SESSION['domain_name'].">;reason=unconditional";
|
||||
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 .= ",accountcode=".$this->accountcode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue