Set accountcode variable

Set the account code variable so it can be used in the dialplan after the pin_number.lua has run.
This commit is contained in:
FusionPBX
2022-08-02 09:00:55 -06:00
committed by GitHub
parent c12b03d31a
commit 7103adf98f

View File

@@ -119,6 +119,7 @@
--set the accountcode
if (accountcode ~= nil) then
session:setVariable("sip_h_X-accountcode", accountcode);
session:setVariable("accountcode", accountcode);
end
--set the authorized pin number that was used
session:setVariable("pin_number", digits);