From 97a925ee393bd1e2b0a7a8315e2f36fa6035b4e9 Mon Sep 17 00:00:00 2001 From: Evangelos Ribeiro Tzaras Date: Wed, 3 Mar 2021 16:31:58 +0100 Subject: [PATCH] sip: handle i_outbound 404 errors --- plugins/sip/calls-sip-origin.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/sip/calls-sip-origin.c b/plugins/sip/calls-sip-origin.c index c711d23..1ba2159 100644 --- a/plugins/sip/calls-sip-origin.c +++ b/plugins/sip/calls-sip-origin.c @@ -374,6 +374,10 @@ sip_callback (nua_event_t event, case nua_i_outbound: g_debug ("status of outbound engine has changed: %03d %s", status, phrase); + + if (status == 404) + CALLS_EMIT_MESSAGE (origin, "contact not found", GTK_MESSAGE_ERROR); + break; case nua_i_state: