--- smsdaemon/SmsDaemon.cpp 2008/12/06 15:13:34 128 +++ smsdaemon/SmsDaemon.cpp 2008/12/07 15:51:02 142 @@ -3,6 +3,8 @@ #include #include +#include + #include "common.h" #include "GsmModem.h" @@ -22,7 +24,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"; @@ -47,7 +49,7 @@ for (unsigned int i=0; ismsCounter.incomming++; } } @@ -97,6 +99,7 @@ { Common* cmn = Common::instance(); + srand(time(0)); cmn->daemonStart = time(0); _lastSmsCheck = Util::GetTimeOfDay();