Commit d7e1a4e8 authored by Emmanuel Milou's avatar Emmanuel Milou

IAX2 register/unregister from the GUI works very well

parent eac99852
......@@ -430,7 +430,9 @@ IAXVoIPLink::sendUnregister()
_nextRefreshStamp = 0;
_debug("IAX2 send unregister\n");
setRegistrationState(Unregistered);
Manager::instance().unregistrationSucceed("");
return false;
}
......
......@@ -798,7 +798,6 @@ ManagerImpl::registrationSucceed(const AccountID& accountid)
{
Account* acc = getAccount(accountid);
if ( acc ) {
//acc->setState(true);
_debug("REGISTRATION SUCCEED\n");
if (_dbus) _dbus->getConfigurationManager()->accountsChanged();
}
......@@ -808,12 +807,8 @@ ManagerImpl::registrationSucceed(const AccountID& accountid)
void
ManagerImpl::unregistrationSucceed(const AccountID& accountid)
{
Account* acc = getAccount(accountid);
if ( acc ) {
//acc->setState(true);
_debug("UNREGISTRATION SUCCEED\n");
if (_dbus) _dbus->getConfigurationManager()->accountsChanged();
}
_debug("UNREGISTRATION SUCCEED\n");
if (_dbus) _dbus->getConfigurationManager()->accountsChanged();
}
//THREAD=VoIP
......@@ -1751,7 +1746,6 @@ ManagerImpl::getCallStatus(const std::string& sequenceId)
}
//THREAD=Main
/* Unused, Deprecated */
bool
ManagerImpl::getConfigAll(const std::string& sequenceId)
{
......
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