Commit f079eef7 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

Unregister successfully from the config window

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