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:
parent
c12b03d31a
commit
7103adf98f
|
|
@ -119,6 +119,7 @@
|
||||||
--set the accountcode
|
--set the accountcode
|
||||||
if (accountcode ~= nil) then
|
if (accountcode ~= nil) then
|
||||||
session:setVariable("sip_h_X-accountcode", accountcode);
|
session:setVariable("sip_h_X-accountcode", accountcode);
|
||||||
|
session:setVariable("accountcode", accountcode);
|
||||||
end
|
end
|
||||||
--set the authorized pin number that was used
|
--set the authorized pin number that was used
|
||||||
session:setVariable("pin_number", digits);
|
session:setVariable("pin_number", digits);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue