From 7103adf98f058dfeba4b2bb39e8fa596884f3681 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Tue, 2 Aug 2022 09:00:55 -0600 Subject: [PATCH] Set accountcode variable Set the account code variable so it can be used in the dialplan after the pin_number.lua has run. --- app/scripts/resources/scripts/pin_number.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/resources/scripts/pin_number.lua b/app/scripts/resources/scripts/pin_number.lua index ac08191e0b..595dd38d1d 100644 --- a/app/scripts/resources/scripts/pin_number.lua +++ b/app/scripts/resources/scripts/pin_number.lua @@ -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);