[calls] sip: origin: Reduce logspam from REGISTER keep-alives
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] sip: origin: Reduce logspam from REGISTER keep-alives
- Date: Mon, 20 Jun 2022 13:37:38 +0000 (UTC)
commit 709436389400404d000c07d2f5850f24bc93f1fa
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Fri Jun 17 08:14:39 2022 +0200
sip: origin: Reduce logspam from REGISTER keep-alives
plugins/sip/calls-sip-origin.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c
index ad961394..933422de 100644
--- a/plugins/sip/calls-sip-origin.c
+++ b/plugins/sip/calls-sip-origin.c
@@ -467,9 +467,10 @@ sip_r_register (int status,
sip_t const *sip,
tagi_t tags[])
{
- g_debug ("response to REGISTER: %03d %s", status, phrase);
-
if (status == 200) {
+ if (origin->state == CALLS_ACCOUNT_STATE_ONLINE)
+ return;
+
g_debug ("REGISTER successful");
change_state (origin,
CALLS_ACCOUNT_STATE_ONLINE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]