Fix error in using ast_channel_snapshot_type before initialization
authorMatthew Jordan <mjordan@digium.com>
Fri, 23 Aug 2013 20:14:46 +0000 (20:14 +0000)
committerMatthew Jordan <mjordan@digium.com>
Fri, 23 Aug 2013 20:14:46 +0000 (20:14 +0000)
commit3d9c5e61af502ae166b2ed4333af9c263b98ef42
tree1dfc9a16bbadcced86629418f84e38a900461b59
parentc13d0b7bdc390d39e411cecb517957d975fb1cc2
Fix error in using ast_channel_snapshot_type before initialization

Starting Asterisk would kick back an ERROR message stating that the Stasis
message type ast_channel_snapshot_type was used prior to initialization.
This occurred due to the caching topic being created prior to the message
type that it depended on.

This patch re-orders the start up such that the message type is initialized
prior to the caching topic. It also checks the return value of the
initialization of the agent login/logoff types.

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