mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-23 17:08:27 +00:00
add Diversion Header to dail string (#1816)
* added Diversion Header to dail string * added Diversion Header to dail string
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user