From 000cf83b5cfcca18a2c275d5277f76cfdf115d7c Mon Sep 17 00:00:00 2001
From: "j.goderbauer" <j.goderbauer@jgoderbauer2.aditosoftware.local>
Date: Tue, 3 Dec 2019 11:54:54 +0100
Subject: [PATCH] =?UTF-8?q?[Projekt:=20Entwicklung=20-=20Neon][TicketNr.:?=
 =?UTF-8?q?=201048209][Telefonie:=20Ausgehender=20Anruf=20l=C3=B6st=20Bena?=
 =?UTF-8?q?chrichtigung=20f=C3=BCr=20eingehenden=20Anruf=20aus]?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 process/ctiServerEvents/process.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/process/ctiServerEvents/process.js b/process/ctiServerEvents/process.js
index f1d066d995..c96cf85a4a 100644
--- a/process/ctiServerEvents/process.js
+++ b/process/ctiServerEvents/process.js
@@ -99,6 +99,10 @@ var disconnectingHandlerFn = function()
     }
     db.updateData("AB_CTILOG", cols, null, vals, sqlCond.build());
 
+    //do not notify the user when the call is outgoing since the user knows when he/she does initiate a call
+    if (!this.callData.isIncomingCall)
+        return null;
+
     this.usersLocal.forEach(function _notify(userObj){
         var targetLocale = this.getLocaleFromUser(userObj);
             
-- 
GitLab