From 6681077886c6ad423521db6ccc9fede857a92674 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Thu, 25 Feb 2021 15:07:56 +0100 Subject: [PATCH] sip: origin: emit message on DNS error --- plugins/sip/calls-sip-origin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c index 4008c55..15c35f4 100644 --- a/plugins/sip/calls-sip-origin.c +++ b/plugins/sip/calls-sip-origin.c @@ -223,6 +223,9 @@ sip_i_state (int status, NUTAG_CALLSTATE_REF (call_state), TAG_END ()); + if (status == 503) { + CALLS_EMIT_MESSAGE (origin, "DNS error", GTK_MESSAGE_ERROR); + } /* XXX making some assumptions about the received SDP message here... * namely: that there is only the session wide connection c= line * and no individual connections per media stream.