From d66d0ddcf7485a3ee77a14bc1a595cd4297d3b42 Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 10 Jun 2016 10:54:07 -0500 Subject: [PATCH] Adds a check whether provider is registered in sip uri handler. If not checked, after starting jitsi with parameter and it registers we end up with two calls(to call windows). --- .../communicator/impl/protocol/sip/UriHandlerSipImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/impl/protocol/sip/UriHandlerSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/UriHandlerSipImpl.java index 885455a95..f62677ef4 100644 --- a/src/net/java/sip/communicator/impl/protocol/sip/UriHandlerSipImpl.java +++ b/src/net/java/sip/communicator/impl/protocol/sip/UriHandlerSipImpl.java @@ -351,7 +351,11 @@ public void run() // Even if not registered after the timeout, try the call // anyway and the error popup will appear to ask the // user if they want to register - handleUri(uri, provider); + if(provider.getRegistrationState() + != RegistrationState.REGISTERED) + { + handleUri(uri, provider); + } } }, initialRegistrationTimeout); }