Skip to content
Snippets Groups Projects
Commit d577a1ae authored by Adrien Béraud's avatar Adrien Béraud
Browse files

logs: cleanup

Change-Id: Ibc45eb6228732b8163a6dd29b0bfbd2cc5cfaa46
parent 86b42510
No related branches found
No related tags found
No related merge requests found
......@@ -899,12 +899,13 @@ SIPAccount::onRegister(pjsip_regc_cbparam* param)
return;
if (param->status != PJ_SUCCESS) {
JAMI_ERROR("SIP registration error {:d}", param->status);
JAMI_ERROR("[Account {}] SIP registration error {:d}",
accountID_, param->status);
destroyRegistrationInfo();
setRegistrationState(RegistrationState::ERROR_GENERIC, param->code);
} else if (param->code < 0 || param->code >= 300) {
JAMI_ERR("SIP registration failed, status={:d} ({:s})",
param->code,
JAMI_ERROR("[Account {}] SIP registration failed, status={:d} ({:s})",
accountID_, param->code,
sip_utils::as_view(param->reason));
destroyRegistrationInfo();
switch (param->code) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment