Initialize channels prior to loading "preload" modules.
authorMark Michelson <mmichelson@digium.com>
Mon, 22 Mar 2010 20:32:15 +0000 (20:32 +0000)
committerMark Michelson <mmichelson@digium.com>
Mon, 22 Mar 2010 20:32:15 +0000 (20:32 +0000)
commitf9e4d024c91387de1e189ed92675bb2193d9afb6
treed9c22ae49490491f68407c240db8a5d4c2a97892
parent8acef966ef835ecb7e7c1f55e08b8c062a78bd94
Initialize channels prior to loading "preload" modules.

We can have bad results when a module, upon being loaded, attempts
to reference the channels container if the container hasn't yet
been initialized. I saw this happen by trying to preload pbx_config.so
and having a hint defined which referenced a non-existent SIP peer.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@253872 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/asterisk.c