diff --git a/src/managerimpl.cpp b/src/managerimpl.cpp index 29ef4bd75b7402024338c8532fd559a475b25bd6..0ac9bd2d5a8c98e3d2c21292ca512522b92b5e97 100644 --- a/src/managerimpl.cpp +++ b/src/managerimpl.cpp @@ -551,7 +551,7 @@ ManagerImpl::playDtmf(char code, bool isTalking) if( CHECK_INTERFACE( layer , PULSEAUDIO )) { // Cache the samples on the sound server - (PulseLayer*)audiolayer->putInCache( code, _buf , size * sizeof(SFLDataFormat) ); + // (PulseLayer*)audiolayer->putInCache( code, _buf , size * sizeof(SFLDataFormat) ); } delete[] _buf; _buf = 0; @@ -2226,7 +2226,7 @@ ManagerImpl::loadAccountMap() TokenList::iterator iter = sections.begin(); while(iter != sections.end()) { // Check if it starts with "Account:" (SIP and IAX pour le moment) - if (iter->find("Account:") == -1) { + if ((int)(iter->find("Account:")) == -1) { iter++; continue; } diff --git a/src/useragent.cpp b/src/useragent.cpp index bc59c7426a93baefdea56e43afa90507a6b71faa..0d156f5c9027495dfc18bc4b36d3ff59148baafd 100644 --- a/src/useragent.cpp +++ b/src/useragent.cpp @@ -348,7 +348,7 @@ void UserAgent::busy_sleep(unsigned msec) #endif } -bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string& server, const std::string& user, const std::string& passwd, const int& timeout) { +bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string& server, const std::string& user, const std::string& passwd, const int& timeout UNUSED) { pj_status_t status; AccountID *currentId = new AccountID(id); char contactTmp[256]; @@ -693,7 +693,7 @@ pj_bool_t UserAgent::mod_on_rx_request(pjsip_rx_data *rdata) { // Retrieve all the message. Should contains only the method name but ... request = rdata->msg_info.msg->line.req.method.name.ptr; // Check if the message is a notification - if( request.find( method_name ) != -1 ) { + if( request.find( method_name ) != (size_t)-1 ) { set_voicemail_info( account_id, rdata->msg_info.msg->body ); } pjsip_endpt_respond_stateless(getInstance()->getEndPoint(), rdata, PJSIP_SC_OK, NULL, NULL, NULL);