Commit 2a19c4c0 authored by Emmanuel Milou's avatar Emmanuel Milou

IAX2: Registration authentification error added

parent 8b04424a
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment