Merge pull request #1461 from mafoo/BugFix-ring_groups
corrected function definition
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
-- if string.len(destination) == 0) then
|
-- if string.len(destination) == 0) then
|
||||||
-- destination = session:playAndGetDigits(1, 1, max_tries, digit_timeout, "#", "ivr/ivr-enter_destination_telephone_number.wav", "", "\\d+");
|
-- 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");
|
-- freeswitch.consoleLog("NOTICE", "[ring_group] destination: "..destination.."\n");
|
||||||
` -- end
|
-- end
|
||||||
--end
|
--end
|
||||||
|
|
||||||
--login or logout
|
--login or logout
|
||||||
|
|||||||
@@ -39,12 +39,12 @@
|
|||||||
|
|
||||||
--define uuid function
|
--define uuid function
|
||||||
local random = math.random;
|
local random = math.random;
|
||||||
local function uuid();
|
local function uuid()
|
||||||
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
|
local template ='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';
|
||||||
return string.gsub(template, '[xy]', function (c)
|
return string.gsub(template, '[xy]', function (c)
|
||||||
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb);
|
local v = (c == 'x') and random(0, 0xf) or random(8, 0xb);
|
||||||
return string.format('%x', v);
|
return string.format('%x', v);
|
||||||
end)
|
end)
|
||||||
end
|
end
|
||||||
|
|
||||||
--get session variables
|
--get session variables
|
||||||
|
|||||||
Reference in New Issue
Block a user