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 849ad617cc
commit a6fcd8c34a
2 changed files with 2 additions and 0 deletions

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