diff --git a/daemon/src/sip/sipvoiplink.cpp b/daemon/src/sip/sipvoiplink.cpp index 2b7eccf334fe4ce16262c5b09387ae1e13f05b18..2d35990cbded8afc41bf8e04047349923181fc69 100644 --- a/daemon/src/sip/sipvoiplink.cpp +++ b/daemon/src/sip/sipvoiplink.cpp @@ -1673,11 +1673,10 @@ void lookForReceivedParameter(pjsip_regc_cbparam ¶m, SIPAccount &account) account.setRPort(param.rdata->msg_info.via->rport_param); } -void processRegistrationError(SIPAccount &account, RegistrationState /*state*/) +void processRegistrationError(SIPAccount &account, RegistrationState state) { account.stopKeepAliveTimer(); -#warning FIXME: We should be using the state parameter here - account.setRegistrationState(ErrorAuth); + account.setRegistrationState(state); account.setRegister(false); SIPVoIPLink::instance()->sipTransport.shutdownSipTransport(account); }