Skip to content
Snippets Groups Projects
Commit 8b23bf70 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3240] Handle 484 Invalid Address error

parent d6488379
Branches
Tags
No related merge requests found
...@@ -3121,7 +3121,7 @@ void call_on_state_changed (pjsip_inv_session *inv, pjsip_event *e) ...@@ -3121,7 +3121,7 @@ void call_on_state_changed (pjsip_inv_session *inv, pjsip_event *e)
} else if (inv->state == PJSIP_INV_STATE_DISCONNECTED) { } else if (inv->state == PJSIP_INV_STATE_DISCONNECTED) {
_debug ("State: %s. Cause: %.*s", invitationStateMap[inv->state], (int) inv->cause_text.slen, inv->cause_text.ptr); _debug ("UserAgent: State: %s. Cause: %.*s", invitationStateMap[inv->state], (int) inv->cause_text.slen, inv->cause_text.ptr);
accId = Manager::instance().getAccountFromCall (call->getCallId()); accId = Manager::instance().getAccountFromCall (call->getCallId());
link = dynamic_cast<SIPVoIPLink *> (Manager::instance().getAccountLink (accId)); link = dynamic_cast<SIPVoIPLink *> (Manager::instance().getAccountLink (accId));
...@@ -3151,11 +3151,13 @@ void call_on_state_changed (pjsip_inv_session *inv, pjsip_event *e) ...@@ -3151,11 +3151,13 @@ void call_on_state_changed (pjsip_inv_session *inv, pjsip_event *e)
case PJSIP_SC_UNAUTHORIZED: case PJSIP_SC_UNAUTHORIZED:
case PJSIP_SC_FORBIDDEN: case PJSIP_SC_FORBIDDEN:
case PJSIP_SC_REQUEST_PENDING: case PJSIP_SC_REQUEST_PENDING:
case PJSIP_SC_ADDRESS_INCOMPLETE:
link->SIPCallServerFailure (call); link->SIPCallServerFailure (call);
break; break;
default: default:
_debug ("sipvoiplink.cpp - line %d : Unhandled call state. This is probably a bug.", __LINE__); link->SIPCallServerFailure (call);
_error ("UserAgent: Unhandled call state. This is probably a bug.");
break; break;
} }
} }
...@@ -3390,15 +3392,12 @@ void regc_cb (struct pjsip_regc_cbparam *param) ...@@ -3390,15 +3392,12 @@ void regc_cb (struct pjsip_regc_cbparam *param)
break; break;
case 503: case 503:
case 408: case 408:
account->setRegistrationState (ErrorHost); account->setRegistrationState (ErrorHost);
break; break;
case 401: case 401:
case 403: case 403:
case 404: case 404:
account->setRegistrationState (ErrorAuth); account->setRegistrationState (ErrorAuth);
break; break;
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment