mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-19 01:51:46 +00:00
sip: origin: Don't treat DNS failures as errors
No need to g_warning() for this.
This commit is contained in:
parent
46ff807f6b
commit
4714aea068
1 changed files with 8 additions and 1 deletions
|
@ -466,7 +466,10 @@ sip_r_register (int status,
|
||||||
change_state (origin,
|
change_state (origin,
|
||||||
CALLS_ACCOUNT_STATE_OFFLINE,
|
CALLS_ACCOUNT_STATE_OFFLINE,
|
||||||
CALLS_ACCOUNT_STATE_REASON_AUTHENTICATION_FAILURE);
|
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) {
|
} else if (status == 904) {
|
||||||
g_warning ("REGISTER: unmatched challenge");
|
g_warning ("REGISTER: unmatched challenge");
|
||||||
change_state (origin,
|
change_state (origin,
|
||||||
|
@ -500,6 +503,10 @@ sip_r_unregister (int status,
|
||||||
CALLS_ACCOUNT_STATE_REASON_DISCONNECTED);
|
CALLS_ACCOUNT_STATE_REASON_DISCONNECTED);
|
||||||
} else if (status == 100) {
|
} else if (status == 100) {
|
||||||
/* nothing to do; request authorized by cache */
|
/* 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 {
|
} else {
|
||||||
g_warning ("Unregisterung unsuccessful: %03d %s", status, phrase);
|
g_warning ("Unregisterung unsuccessful: %03d %s", status, phrase);
|
||||||
change_state (origin,
|
change_state (origin,
|
||||||
|
|
Loading…
Reference in a new issue