[calls] sip: origin: Don't treat DNS failures as errors
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] sip: origin: Don't treat DNS failures as errors
- Date: Tue, 24 May 2022 13:16:01 +0000 (UTC)
commit 4714aea06842c45b49c4e5d8919ba6740772d522
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Thu May 19 20:32:50 2022 +0200
sip: origin: Don't treat DNS failures as errors
No need to g_warning() for this.
plugins/sip/calls-sip-origin.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index 48c7f2a7..c43f3635 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]