Commit f079eef7 authored by Emmanuel Milou's avatar Emmanuel Milou

Unregister successfully from the config window

parent e130b4b1
......@@ -232,10 +232,10 @@ SIPVoIPLink::getEvent()
break;
case EXOSIP_REGISTRATION_SUCCESS: /** 01 < user is successfully registred. */
_debugMid(" !EXOSIP_REGISTRATION_SUCCESS : %i\n", getRegistrationState());
//if(getRegistrationState() == Registered){
//setRegistrationState(Unregistered);
//}
//else
if(getRegistrationState() == VoIPLink::Registered){
setRegistrationState(Unregistered);
}
else
setRegistrationState(Registered);
//Manager::instance().registrationSucceed(getAccountID());
break;
......@@ -560,8 +560,6 @@ SIPVoIPLink::sendUnregister()
return false;
}
_debug("osip_message_t = %s\n" , reg);
eXosip_lock();
_debug("< Sending REGISTER (expire=0)\n");
eXosipErr = eXosip_register_send_register (_eXosipRegID, reg);
......
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