From b296a02e47c17cac4c089a9e1032f6a1e0626d63 Mon Sep 17 00:00:00 2001
From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com>
Date: Fri, 5 Mar 2021 09:08:24 -0500
Subject: [PATCH] sip: use refuse function instead of hang-up when refusing a
 call

Gitlab: #325

Change-Id: I03b4352788df912074859e183090658cf27678f0
---
 src/mainview/components/CallStackView.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mainview/components/CallStackView.qml b/src/mainview/components/CallStackView.qml
index 990ad35bc..265948fd1 100644
--- a/src/mainview/components/CallStackView.qml
+++ b/src/mainview/components/CallStackView.qml
@@ -202,7 +202,7 @@ Rectangle {
         }
 
         onCallCancelButtonIsClicked: {
-            CallAdapter.hangUpACall(responsibleAccountId, responsibleConvUid)
+            CallAdapter.refuseACall(responsibleAccountId, responsibleConvUid)
         }
 
         visible: callStackMainView.currentItem.stackNumber === stackNumber
-- 
GitLab