add Diversion Header to dail string (#1816)

* added Diversion Header to dail string

* added Diversion Header to dail string
This commit is contained in:
de-jens
2016-08-15 17:20:02 +02:00
committed by FusionPBX
parent 7f3c47f0eb
commit 71bac37219
2 changed files with 2 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ include "root.php";
$dial_string .= ",domain=".$_SESSION['domain_name'];
$dial_string .= ",extension_uuid=".$this->extension_uuid;
$dial_string .= ",toll_allow='".$this->toll_allow."'";
$dial_string .=",sip_h_Diversion=<".$this->extension."@".$_SESSION['domain_name'].">;reason=unconditional";
if (strlen($this->accountcode) > 0) {
$dial_string .= ",sip_h_X-accountcode=".$this->accountcode;
$dial_string .= ",accountcode=".$this->accountcode;

View File

@@ -247,6 +247,7 @@
dial_string = dial_string .. ",domain_name="..domain_name;
dial_string = dial_string .. ",domain="..domain_name;
dial_string = dial_string .. ",toll_allow='"..toll_allow.."'";
dial_string = dial_string .. ,sip_h_Diversion=<"..extension.."@"..domain_name..">;reason=unconditional";
if (accountcode ~= nil) then
dial_string = dial_string .. ",accountcode="..accountcode;
end