Skip to content
Snippets Groups Projects
Commit 2a19c4c0 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

IAX2: Registration authentification error added

parent 8b04424a
No related branches found
No related tags found
No related merge requests found
...@@ -432,7 +432,6 @@ IAXVoIPLink::sendUnregister() ...@@ -432,7 +432,6 @@ IAXVoIPLink::sendUnregister()
_debug("IAX2 send unregister\n"); _debug("IAX2 send unregister\n");
setRegistrationState(Unregistered); setRegistrationState(Unregistered);
Manager::instance().unregistrationSucceed("");
return false; return false;
} }
...@@ -819,7 +818,6 @@ IAXVoIPLink::iaxHandleVoiceEvent(iax_event* event, IAXCall* call) ...@@ -819,7 +818,6 @@ IAXVoIPLink::iaxHandleVoiceEvent(iax_event* event, IAXCall* call)
} }
/** /**
* Handle the registration process * Handle the registration process
*/ */
...@@ -832,10 +830,7 @@ IAXVoIPLink::iaxHandleRegReply(iax_event* event) ...@@ -832,10 +830,7 @@ IAXVoIPLink::iaxHandleRegReply(iax_event* event)
iax_destroy(_regSession); iax_destroy(_regSession);
_mutexIAX.leaveMutex(); _mutexIAX.leaveMutex();
_regSession = NULL; _regSession = NULL;
setRegistrationState(ErrorAuth);
setRegistrationState(Error);
//Manager::instance().registrationFailed(getAccountID());
} }
else if (event->etype == IAX_EVENT_REGACK) { else if (event->etype == IAX_EVENT_REGACK) {
/* Authentication succeeded */ /* Authentication succeeded */
...@@ -847,14 +842,10 @@ IAXVoIPLink::iaxHandleRegReply(iax_event* event) ...@@ -847,14 +842,10 @@ IAXVoIPLink::iaxHandleRegReply(iax_event* event)
// I mean, save the timestamp, so that we re-register again in the REFRESH time. // I mean, save the timestamp, so that we re-register again in the REFRESH time.
// Defaults to 60, as per draft-guy-iax-03. // Defaults to 60, as per draft-guy-iax-03.
_nextRefreshStamp = time(NULL) + (event->ies.refresh ? event->ies.refresh : 60); _nextRefreshStamp = time(NULL) + (event->ies.refresh ? event->ies.refresh : 60);
setRegistrationState(Registered); setRegistrationState(Registered);
//Manager::instance().registrationSucceed(getAccountID());
} }
} }
void void
IAXVoIPLink::iaxHandlePrecallEvent(iax_event* event) IAXVoIPLink::iaxHandlePrecallEvent(iax_event* event)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment