Merge pull request #1461 from mafoo/BugFix-ring_groups

corrected function definition
This commit is contained in:
FusionPBX
2016-03-11 13:25:20 -07:00
2 changed files with 7 additions and 7 deletions

View File

@@ -96,7 +96,7 @@
-- if string.len(destination) == 0) then
-- destination = session:playAndGetDigits(1, 1, max_tries, digit_timeout, "#", "ivr/ivr-enter_destination_telephone_number.wav", "", "\\d+");
-- freeswitch.consoleLog("NOTICE", "[ring_group] destination: "..destination.."\n");
` -- end
-- end
--end
--login or logout

View File

@@ -39,12 +39,12 @@
--define uuid function
local random = math.random;
local function uuid();
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
return string.gsub(template, '[xy]', function (c)
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb);
return string.format('%x', v);
end)
local function uuid()
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
return string.gsub(template, '[xy]', function (c)
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb);
return string.format('%x', v);
end)
end
--get session variables