1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-06-30 15:49:31 +00:00

sip: origin: Don't treat DNS failures as errors

No need to g_warning() for this.
This commit is contained in:
Evangelos Ribeiro Tzaras 2022-05-19 20:32:50 +02:00
parent 46ff807f6b
commit 4714aea068

View file

@ -466,7 +466,10 @@ sip_r_register (int status,
change_state (origin,
CALLS_ACCOUNT_STATE_OFFLINE,
CALLS_ACCOUNT_STATE_REASON_AUTHENTICATION_FAILURE);
} else if (status == 503) {
change_state (origin,
CALLS_ACCOUNT_STATE_OFFLINE,
CALLS_ACCOUNT_STATE_REASON_CONNECTION_DNS_ERROR);
} else if (status == 904) {
g_warning ("REGISTER: unmatched challenge");
change_state (origin,
@ -500,6 +503,10 @@ sip_r_unregister (int status,
CALLS_ACCOUNT_STATE_REASON_DISCONNECTED);
} else if (status == 100) {
/* nothing to do; request authorized by cache */
} else if (status == 503) {
change_state (origin,
CALLS_ACCOUNT_STATE_OFFLINE,
CALLS_ACCOUNT_STATE_REASON_CONNECTION_DNS_ERROR);
} else {
g_warning ("Unregisterung unsuccessful: %03d %s", status, phrase);
change_state (origin,