mirror of
https://github.com/RangeNetworks/openbts.git
synced 2025-11-02 04:43:16 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user