diff --git a/src/iaxvoiplink.cpp b/src/iaxvoiplink.cpp index 68f1cb2e167d436370e31fc8afb90f96ec6fd2e1..17607f4889c74e8652987ebf42e7589d7b43e930 100644 --- a/src/iaxvoiplink.cpp +++ b/src/iaxvoiplink.cpp @@ -432,7 +432,6 @@ IAXVoIPLink::sendUnregister() _debug("IAX2 send unregister\n"); setRegistrationState(Unregistered); - Manager::instance().unregistrationSucceed(""); return false; } @@ -819,7 +818,6 @@ IAXVoIPLink::iaxHandleVoiceEvent(iax_event* event, IAXCall* call) } - /** * Handle the registration process */ @@ -832,10 +830,7 @@ IAXVoIPLink::iaxHandleRegReply(iax_event* event) iax_destroy(_regSession); _mutexIAX.leaveMutex(); _regSession = NULL; - - setRegistrationState(Error); - //Manager::instance().registrationFailed(getAccountID()); - + setRegistrationState(ErrorAuth); } else if (event->etype == IAX_EVENT_REGACK) { /* Authentication succeeded */ @@ -847,14 +842,10 @@ IAXVoIPLink::iaxHandleRegReply(iax_event* event) // I mean, save the timestamp, so that we re-register again in the REFRESH time. // Defaults to 60, as per draft-guy-iax-03. _nextRefreshStamp = time(NULL) + (event->ies.refresh ? event->ies.refresh : 60); - setRegistrationState(Registered); - //Manager::instance().registrationSucceed(getAccountID()); } } - - void IAXVoIPLink::iaxHandlePrecallEvent(iax_event* event) {