--- smsdaemon/SmsDaemon.cpp 2008/12/07 00:59:05 132 +++ smsdaemon/SmsDaemon.cpp 2008/12/08 10:42:04 151 @@ -7,7 +7,7 @@ #include "common.h" -#include "GsmModem.h" +#include "ISmsTransceiver.h" #include "Plugin.h" #include "kbhit.h" @@ -16,6 +16,7 @@ #include "TaskManager.h" #include "PluginManager.h" +#include "ConfigFile.h" #include "version.h" @@ -24,7 +25,7 @@ void SmsDaemon::CreateLogMessage(SMS& sms,bool hasPlugin) { ostringstream os; - os << "Recieved sms from " << sms.sender << " ; command=" << GetSmsCommand(sms); + os << "Recieved sms from " << sms.GetSender() << " ; command=" << sms.ExtractCommand(); if (!hasPlugin) os << " -- PLUGIN NOT FOUND"; @@ -49,7 +50,7 @@ for (unsigned int i=0; ismsCounter.incomming++; } } @@ -98,6 +99,7 @@ void SmsDaemon::Start() { Common* cmn = Common::instance(); + string transceiver = cmn->GetConfigfile()->GetValue("smsdaemon","transceiver"); srand(time(0)); @@ -107,6 +109,7 @@ cmn->logMessage("--------------------------------"); cmn->logMessage( VERSION ); cmn->logMessage( SVNVERSION ); + cmn->logMessage( string("Transceiver: ") + transceiver ); cmn->GetTaskManager()->LoadTasks(); cmn->GetPluginManager()->LoadPlugins();