Commit 0f2fc64d authored by Pierre-Luc Beaudoin's avatar Pierre-Luc Beaudoin

Account in ERROR

parent 45452cd5
......@@ -123,6 +123,9 @@ const gchar * account_state_name(account_state_t s)
case ACCOUNT_STATE_TRYING:
state = "Trying...";
break;
case ACCOUNT_STATE_ERROR:
state = "Error";
break;
default:
state = "Invalid";
break;
......
......@@ -50,7 +50,8 @@ typedef enum
ACCOUNT_STATE_INVALID = 0,
ACCOUNT_STATE_REGISTERED,
ACCOUNT_STATE_UNREGISTERED,
ACCOUNT_STATE_TRYING
ACCOUNT_STATE_TRYING,
ACCOUNT_STATE_ERROR
} account_state_t;
/** @struct account_t
......
......@@ -121,6 +121,10 @@ sflphone_fill_account_list()
{
a->state = ACCOUNT_STATE_TRYING;
}
else if(strcmp(status, "ERROR") == 0)
{
a->state = ACCOUNT_STATE_ERROR;
}
else
{
a->state = ACCOUNT_STATE_INVALID;
......
......@@ -1582,7 +1582,7 @@ ManagerImpl::getAccountDetails(const AccountID& accountID)
(state == VoIPLink::Registered ? "REGISTERED":
(state == VoIPLink::Unregistered ? "UNREGISTERED":
(state == VoIPLink::Trying ? "TRYING":
(state == VoIPLink::Error ? "ERROR": "UNKNOWN"))))
(state == VoIPLink::Error ? "ERROR": "ERROR"))))
)
);
a.insert(
......
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