Brandon Creighton's patch: A lot of refactoring, but separates global object creation from initialization. Allows for logging of database initialization failures.

git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@3165 19bc5d8c-e614-43d4-8b26-e1612bc8e597
This commit is contained in:
Kurtis Heimerl
2012-02-10 01:45:41 +00:00
parent 2f2d75383c
commit a1609072d7
13 changed files with 53 additions and 26 deletions

View File

@@ -75,13 +75,13 @@ const char* gDateTime = __DATE__ " " __TIME__;
// be declared here.
// The TMSI Table.
Control::TMSITable gTMSITable(gConfig.getStr("Control.Reporting.TMSITable").c_str());
Control::TMSITable gTMSITable;
// The transaction table.
Control::TransactionTable gTransactionTable;
// Physical status reporting
GSM::PhysicalStatus gPhysStatus(gConfig.getStr("Control.Reporting.PhysStatusTable").c_str());
GSM::PhysicalStatus gPhysStatus;
// The global SIPInterface object.
SIP::SIPInterface gSIPInterface;
@@ -148,6 +148,13 @@ int main(int argc, char *argv[])
LOG(ALERT) << "OpenBTS starting, ver " << VERSION << " build date " << __DATE__;
COUT("\n\n" << gOpenBTSWelcome << "\n");
gTMSITable.open(gConfig.getStr("Control.Reporting.TMSITable").c_str());
gTransactionTable.init();
gPhysStatus.open(gConfig.getStr("Control.Reporting.PhysStatusTable").c_str());
gBTS.init();
gSubscriberRegistry.init();
gParser.addCommands();
COUT("\nStarting the system...");
Thread transceiverThread;