Skip to content

Commit 40ee6f0

Browse files
move init after conf set.
1 parent c0f3d6c commit 40ee6f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

core.lua

+5-4
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
-- @copyright 2011-2015 Chad Phillips
1414

1515

16-
17-
1816
local _M = {}
1917

2018
--- Bootstrap the Jester environment.
@@ -31,8 +29,8 @@ local _M = {}
3129
-- core.bootstrap(conf, "someprofile", "somesequence", "arg1,arg2")
3230
function _M.bootstrap(config, profile, sequence, sequence_args)
3331

34-
-- Initialize the channel object.
35-
_M.init_channel()
32+
-- Use regular log here, debug_log needs config.
33+
_M.log("Bootstrapping Jester")
3634

3735
--- Global configuration table.
3836
--
@@ -46,6 +44,9 @@ function _M.bootstrap(config, profile, sequence, sequence_args)
4644
-- @field is_freeswitch
4745
_M.is_freeswitch = freeswitch and freeswitch.consoleLog
4846

47+
-- Initialize the channel object.
48+
_M.init_channel()
49+
4950
-- Initialize sequence loop stacks. Sequence stacks are initialized just
5051
-- prior to each sequence loop run.
5152
_M.init_stacks({"active", "exit", "hangup"})

0 commit comments

Comments
 (0)